开发者

how to update product.wxs file dynamic

i want to make an application which includes dynamic screensaver. User can select multiple images from their PC and generate swf file. so i want to include swf file and images in th开发者_JAVA技巧e wix project dynamically. and want to generate an MSI file.is there any way to add images path and swf file dynamically

reply me soon

Samir


A wxs file is just XML. You can edit it in your application with any XML API. In .NET, you can do this by loading the file in a System.Xml.XmlDocument or System.Xml.Linq.XDocument.

Alternatively, you can use the heat.exe tool included in wix to "harvest" (i.e. generate a wxs file for) individual files or an entire folder. This doesn't allow you to edit a wxs file exactly, but that is not a problem because a wix setup can consist of multiple wxs files.

From the heat.exe documentation:

Harvest a file

heat file -ag -template:fragment -out file.wxs ".\My Files\File.dll"

This will harvest the file "File.dll" as a single fragment to the file file.wxs. The component guid will be set to "*".

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜