Without seeing the code, I’d have to guess. But I think that private properties can’t be set or changed, only public. Public properties are always in all caps. Maybe the ProgramFilesFolder is taking precedent because it’s initially defined in TARGETDIR? As a test, compile and try the installer using a different variable (other than TARGETDIR) with a fixed local path that doesn’t use a system folder. Or change TARGETDIR to not include ProgramFilesFolder in it’s path. Then try to pass in “c:\temp” and see what happens.

 

 

-Matt

 


From: Jeff MacDuff [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 28, 2006 4:26 PM
To: Matthew Janulewicz; wix-users@lists.sourceforge.net
Subject: RE: [WiX-users] Error setting target through command line

 

Ok so that worked, if I do that syntax with the “” I see in the log file where the targetdir get’s set… however it still installs to the program files directory.

 

I then tried setting the ProgramFilesFolder to c:\temp.. again the logfile shows it being set but it still resolves the real one.

 

Is there a trick to making this work?

 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthew Janulewicz
Sent: Thursday, September 28, 2006 4:06 PM
To: Jeff MacDuff; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Error setting target through command line

 

Try this:

 

TARGETDIR=”c:\temp”

 

I can’t find any documentation to corroborate it, but all the auto-deployment scripts I have set public properties with quotes, even when there are no spaces or odd characters in it. I must have done that for some reason when I wrote them months and months ago, no?

 

 

-Matt

 


From: Jeff MacDuff [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 28, 2006 3:22 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Error setting target through command line

 

I am trying to the TARGETDIR through the cmd line when running my MSI but it get’s completely ignored…. Some customers might need to overwrite the default value so they have requested this msiexec function to work.

 

The syntax I am using is msiexec /I foo.msi TARGETDIR=c:\temp

 

Is there any trick to getting this to work?

 

Thanks for the help,

Jeff

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to