It still does not work for me. In my case MyVariable has ";" in it:
MyBariable=Name1=Value1%3bName2=value2 -----Original Message----- From: John Hall [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 15, 2008 03:29 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Build from command line > Let me rephrase. How do I specify preprocessor variables when > I build from command line with MSBuild? > > msbuild myinstall.wixproj /p:??????????? I've modified by wixproj file to take parameters from the commandline and pass them into WiX: You need to add something like this to the BeforeBuild target: <CreateProperty Value="MyVariable=$(MyVariable);$(DefineConstants)"> <Output TaskParameter="Value" PropertyName="DefineConstants" /> </CreateProperty> And then you can do: msbuild myinstall.wixproj /p:MyVariable=???? Regards, John ------------------------------------------------------------------------ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users