> 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

Reply via email to