[CMake] CPack WiX patch

Bill Hoffman bill.hoffman at kitware.com
Mon Feb 1 12:43:22 EST 2010


Tim St. Clair wrote:

>> Do you think we could use configure_file to create the .xml file like we do
>> with the NSIS generator?
> 
> That is exactly what I do, but I do it prior to cpack running, but in
> this case it would have to be a .xsl.
> 
> It would be best if this installer could use the
>> standards set of CPACK_* variables to create an installer.  I maybe reading
>> your code wrong, but I think the only thing that it is used is the list of
>> sources.
>>
> 
> I had planned on letting the user control their .xsl and minimizing
> the number of variables, as you can only automate so much, but I will
> let others decide.

It should just "work" by default with the usual CPACK variables.  The 
variables are sufficient to get a basic NSIS installer working.  They 
should be enough for WiX.  If people want to do further customization 
they can always override the template file used by CPack.
> 
> Right now it's a first start and should be able to get folks rolling.
> 
>> For example, what to you get if you try to package Tutorial/Step7 with the
>> WiX CPack generator?
>>
> 
> I may take a look later, I have to finish my installer ;-)
> 

OK.

-Bill


More information about the CMake mailing list