wix

Is it possible to include “source” files in a wixlib?

こ雲淡風輕ζ 提交于 2019-12-23 17:08:15
问题 Is it possible to include "source" files in a wixlib? I have a number of c++ solutions, each containing a project or projects, and a wixlib, with a fragment containing entries such as: <File Id="MY_ID" KeyPath="yes" Source="$(var.my_path)\foo.exe" /> I would like to collect "foo.exe" and include it in the wixlib, then create a WiX project that links together several such wixlibs and produces an MSI. The reading I have done seems to suggest WiX3 and later supports this, and the technique is

Wix Installer - Resize fatal error dialog or use custom dialog in place of fatal error dialog

妖精的绣舞 提交于 2019-12-23 17:02:36
问题 In WiX installer - How can I customize or override Fatal Error Dialog ()? I would like to show a detailed error message instead of default setup failure message. Options: Is it possible to resize fatal error dialog in WiX? If not, how can I use my own dialog in place of fatal error dialog? 回答1: To resize or otherwise modify any existing dialog in essence you need to replace it. Luckily you can download original sources from git repository and modify them as you like. Firstly to be able to

WiX Search and Replace on a configuration file

回眸只為那壹抹淺笑 提交于 2019-12-23 16:53:21
问题 I'm trying to make an install using WiX and I need to modify a configuration file (not XML or INI) with entries that a customized WiX dialog. Is there a good way to do this? Do I need to make a VB script custom action, perhaps? Below is the relevant bits of the wxs file: <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder"> <Directory Id="INSTALLLOCATION" Name="MyApp"> <Component Id="ap_cfg" KeyPath="yes" Guid="..."> <File Id="CONFIGFILE" Source="myConfig.cfg" /> <

How to reference File element inside wxs file generated by heat.exe in Wix

我与影子孤独终老i 提交于 2019-12-23 16:28:07
问题 I am going to create setup for my web project. I use http://blog.bartdemeyer.be/2013/10/create-an-installer-for-website-with-wix-part-1/ as my reference. In the middle of article, author create a file called WebSiteContent.wxs using heat.exe: <Target Name="Harvest"> <!-- Harvest all content of published result --> <Exec Command='$(WixPath)heat dir $(Publish) -dr INSTALLFOLDER -ke -srd -cg MyWebWebComponents -var var.publishDir -gg -out $(WebSiteContentCode)' ContinueOnError="false"

wix installer / Create web-site and assign the new or exisiting web app pool

这一生的挚爱 提交于 2019-12-23 13:32:05
问题 i try create a new web-site using wix installation. it's ok there is no problem but i cannot assign a new or existing web app pool to new web-site. iis:website tag does not contains WebAppPool attribute. How can i assign web app pool to web-site. You can see my code bellow. thanks for helping. <Component Id="WEB_SITE_CONFIGURE_COMPONENT" Guid="{35087032-D049-48C8-BCAD-1FEFD0C06A25}" NeverOverwrite="yes" Shared="yes" Permanent="yes" Transitive="yes"> <Condition><![CDATA[WEBSITE_INSTALLTYPE<>2]

WiX - Install the same file at two different locations

梦想的初衷 提交于 2019-12-23 13:22:12
问题 In my installer, I have two optional features, which are plugins for versions 5 and 6 of the same software. They install the same file (same name, same binary content) into the "plugins" folder of the applications. But I have the following error: C:\Users\FooBar\Documents\project\project.wxs(281) : error LGHT0204 : ICE30: The target file '0egx-0x3.dll|appv5plugin.dll' is installed in '[TARGETDIR]\plugins\' by two different components on an LFN system: 'Comp_ThisAppV5_plugin' and 'Comp

wix - Copy an entire directory and all of its contents

坚强是说给别人听的谎言 提交于 2019-12-23 12:34:27
问题 My wix installer needs the contents of a directory to be copied to a destination folder. I understand that the Directory element has a FileSource attrib. I tried something like this: <DirectoryRef Id="DIRECTORY" FileSource="{var.Dir}"> <Component Id="Dir" Guid="*" > <CreateFolder/> </Component> </DirectoryRef> This is not picking up the files or sub-directories from the preprocessor variable. Are there any alternate ways to achieve this? 回答1: No, not unless you use a custom action. WiX likes

Unresolved reference to symbol “ ” in section 'Fragment'

孤人 提交于 2019-12-23 11:58:03
问题 I have added InstallDemo.wxs file and copied the code from WixUI_InstallDir src/ext/wixlib/, Then i have added UIRef into product.wxs file after that when i built the solution i got this 50 error "Unresolved reference to symbol 'Dialog:BrowseDlg' in section 'Fragment' so, Help me to resolve this issue.. please tell me how to create a simple dialog screen in 'WIX' please help, Thank you.! 回答1: Have you referenced the WixUIExtension in your WIX Installation project? You need this to give you

WIX util:xmlfile File name is Source attribute

耗尽温柔 提交于 2019-12-23 10:41:12
问题 I am moving from a Wise Installer to WIX and am using the util:xmlfile to update a configuration xml file. This works. <Component Id="config" Guid="*"> <File Id="config" Source="..\Source\Desktop\prodconfig.xml" KeyPath="yes" Vital="yes" /> <util:XmlFile Id="_PORT_" File="[INSTALLDIR]prodconfig.xml" Action="setValue" Name="Port" Value="[PORT]" ElementPath="//Configuration/CommConnectionPools/CommConnectionPool" Sequence='1' /> </File> </Component> This does not work. <Component Id="config"

WiX custom license file: setup shows links with < >

丶灬走出姿态 提交于 2019-12-23 10:17:10
问题 I created a WiX 3.5 setup with a custom license file by putting this into the .wxs file: <WixVariable Id="WixUILicenseRtf" Value="License.rtf" /> This works perfectly and the link is displayed when I run the created .msi file. (I'm using the WixUI_InstallDir Dialog Set) Now I want to put a hyperlink into the license file. I just put the link into the file by opening it in WordPad and pasting http://mylink.com (WordPad turns it into a hyperlink automatically). When I compile that in WiX, the