[CMake] CPack WiX patch

Tim St. Clair timothysc at gmail.com
Mon Feb 1 13:09:20 EST 2010


Inline...

On Mon, Feb 1, 2010 at 11:43 AM, Bill Hoffman <bill.hoffman at kitware.com> wrote:
> 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.

That should be easy enough to auto-gen a .xsl by default.  It would go
into CPackWIX.cmake which should not affect the mainline src.  If I
get some time this week I will try to update.

>>
>> 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
>



-- 
Cheers,
Timothy St. Clair


More information about the CMake mailing list