wix3

WiX: How to register application to start when Windows launches?

假装没事ソ 提交于 2020-01-09 16:50:08
问题 I'm exploring distribution of .NET desktop applications with MSI generated by WiX. So far it works great. But I've got a few questions, googling can't help out with. What's the advised way of registering application to start when windows launches (in WiX)? What WixUI could I use and how? Notes: The application is not a Windows Service and should not be registered as such. It would be nice to let user to disable that option in the setup process. Thanks in advance! 回答1: I found this using

WiX ServiceInstall Service referencing a .EXE from wixlib?

 ̄綄美尐妖づ 提交于 2020-01-06 04:51:33
问题 I use WIX for the first time and I'm trying to create a MSI to install a service. I have one project that generates a myLib.wixlib that have : <Component Id="TestExecutable" Directory="TESTAPIFOLDER" Guid="*" > <File Source="$(var.BasePath)/TEST.exe" Id="TESTAPIServiceEXE"></File> </Component> To generate the .wixlib, I use -bf flags to embed the files into the .wixlib. How can I refer the TEST.exe file from the .wixlib in the code below? I have to set the source to use the file TEST.EXE

When migrating Wix 3.0 to Wix 4.0 getting error : WXCP0006 : The whitespace preceding this node is incorrect (WhitespacePrecedingNodeWrong)

爷,独闯天下 提交于 2020-01-06 01:35:48
问题 When I am migrating Wix 3.0 to Wix 4.0 using WixCOP I am getting the error WXCP0006 : The whitespace preceding this node is incorrect (WhitespacePrecedingNodeWrong) I am running the below command WixCop.exe -f E:\Test\Wix\src\UI*.wxs. When i run the same command to migrate from Wix 2.0 to Wix 3.0 i didn't get any errors. UPDATE : Thank you for the detailed information. 1) I run the below command multiple times and getting the same errors. WixCop.exe -f E:\Test\Wix\src\UI*.wxs. 2) I am seeing

Wix Installer app won't install when run twice and uninstalls the app

梦想的初衷 提交于 2020-01-05 04:33:27
问题 I wrote a simple wix installer with gui, which installs well. But when I run the same .msi file a second time, it takes me through the normal installation process in the gui, but uninstalls my app at the end. Then if I run this same .msi file a third time, the installer still does through the installation gui normally, but ends up doing "uninstallation". I don't understand why it doesn't behave like every other installer and handle installation and uninstallation gracefully. here is part of

Is there any way to create symbolic link in WIX installer?

心不动则不痛 提交于 2020-01-04 02:56:08
问题 I need to create a symbolic-link for a particular folder; that folder is created by a WIX installer. Is there any way to create a symbolic-link from WIX installer? I have read about mklink , but I do not know how to use that in WIX (v3)? 回答1: You can use Custom actions to run the mklink. Run the custom actions after InstallFinalize. Or you can use Short cut instead of symbolic links. In Custom Action file: [CustomAction] public static ActionResult symboliclink(Session session) { string

Add a summary information to WiX generated MSI

☆樱花仙子☆ 提交于 2020-01-02 04:56:22
问题 How to add (or change a default values) a summary page information to a WiX-generated MSI file? Summary page is the tab page which is visible if you right click on the MSI file in the Windows Explorer and includes following text fields: Title, Subject, Author, Category, Keywords, Comments alt text http://img151.imagevenue.com/img.php?image=13824_msi_summary_122_495lo.jpg 回答1: Further to @Stefan answer, here's a mapping of Wix items to msi details properties. have not found a way to set

Get INI file value with WiX

£可爱£侵袭症+ 提交于 2019-12-30 10:32:39
问题 I'd like to read a value from an INI file in a WiX installer. I've just tried to use IniFileSearch, but this looks for an INI file or a path specified in an INI file (the documentation isn't clear), it doesn't read a value from an INI file. Do I need a customaction to do this? And if so, what would people suggest? Seems very strange if WiX doesn't have this, though! Code I'm using: <Property Id="SP"> <IniFileSearch Id="SearchSPVersion" Name="sp.ini" Section="ServicePack" Key="Version" Type=

Get INI file value with WiX

删除回忆录丶 提交于 2019-12-30 10:31:41
问题 I'd like to read a value from an INI file in a WiX installer. I've just tried to use IniFileSearch, but this looks for an INI file or a path specified in an INI file (the documentation isn't clear), it doesn't read a value from an INI file. Do I need a customaction to do this? And if so, what would people suggest? Seems very strange if WiX doesn't have this, though! Code I'm using: <Property Id="SP"> <IniFileSearch Id="SearchSPVersion" Name="sp.ini" Section="ServicePack" Key="Version" Type=

WiX CustomAction ExeCommand failing?

早过忘川 提交于 2019-12-30 07:05:13
问题 I have a command line I want to run during the install of a merge module (created by WiX) with the below code. <CustomAction Id='SetWebsiteProtocols' Execute='commit' Return='ignore' Impersonate="yes" FileKey='Web.config' ExeCommand='c:\windows\system32\inetsrv\appcmd.exe set app "Default Web Site/My Website" /enabledProtocols:http,net.tcp,net.pipe' /> <InstallExecuteSequence> <Custom Action="SetWebsiteProtocols" After="InstallFiles"/> </InstallExecuteSequence> When I run the command on the

How do I populate a ComboBox at install time in WiX?

谁说我不能喝 提交于 2019-12-30 04:56:07
问题 Edit: I've updated the code below so that it now works, thanks to Rob's answer. I've found a couple of pages that show how to do this (http://www.cmcrossroads.com/content/view/13160/120/, http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg05103.html) and looked through the source code for WAI (http://wai.codeplex.com/), but I can't seem to get it to work in my installer no matter what I try. If anyone can spot what I'm doing wrong I'd be very grateful. My WiX fragment for the