wix

Add Remove program Icon

二次信任 提交于 2020-01-11 09:59:07
问题 I have a WIX Installer project, which installs my product. The code was not written by me. It shows an Icon in the Add/Remove programs. I want to know where is in the source code is it specified. That icon is of the main executable of my product. I tried searching the code but could not find any ARPPRODUCTICON word in the whole code. From where is the icon getting displayed in Add/Remove Programs? 回答1: The icon is set automatically by Windows Installer. If you want to use a custom one, you

Add Remove program Icon

 ̄綄美尐妖づ 提交于 2020-01-11 09:59:01
问题 I have a WIX Installer project, which installs my product. The code was not written by me. It shows an Icon in the Add/Remove programs. I want to know where is in the source code is it specified. That icon is of the main executable of my product. I tried searching the code but could not find any ARPPRODUCTICON word in the whole code. From where is the icon getting displayed in Add/Remove Programs? 回答1: The icon is set automatically by Windows Installer. If you want to use a custom one, you

Trying to use EnsureTable in Wix to fix Validation Errors

允我心安 提交于 2020-01-11 06:15:12
问题 I hit numerous errors in Wix 3.0 when I tried to use the msvbvm60.msm merge module: C:\[...]: error LGHT0204 : ICE03: Table: Registry Column: Registry Missing specifications in _Validation Table (or Old Database) C:\[...]: error LGHT0204 : ICE03: Table: Registry Column: Root Missing specifications in _Validation Table (or Old Database) C:\[...]: error LGHT0204 : ICE03: Table: Registry Column: Key Missing specifications in _Validation Table (or Old Database) C:\[...]: error LGHT0204 : ICE03:

Running SQL Script file through Wix using <sql:SqlScript> element

筅森魡賤 提交于 2020-01-11 05:34:47
问题 I am new to Wix Installer. I have a requirement where I have to provide credentials for SQL Server login and run a script from a specific path. I am not getting what's going wrong.The project is build successfully and .msi is created. After running it I get the following Error: Error 26204. Error -2147217900: failed to execute SQL string, error detail: Incorrect syntax near '»'., SQL key: CreateUpsizingDatabase SQL string: print convert(varchar(25),GetDate(),121) + ' Executing file:

Custom action before MSI uninstallation with Wix

假如想象 提交于 2020-01-11 03:34:07
问题 I'm using Wix to code my own MSI installer. I need to run the custom action only before uninstallation of the product, but before any registry values or files are removed. I did the following (just to try): <Property Id='CALC'>Calc.exe</Property> <CustomAction Id='BeforeUninstall01' Property='CALC' ExeCommand='' Return='check' /> <InstallExecuteSequence> <Custom Action='BeforeUninstall01' After='InstallInitialize'>Installed</Custom> </InstallExecuteSequence> It works if I choose to uninstall

Switching from InstallShield to WiX

随声附和 提交于 2020-01-10 17:44:05
问题 I am looking for a replacement for InstallShield. Unfortunately we only have 1 license for InstallShield and it was installed on a developer's machine. I'm considering switching over to WiX, but after reading the documentation there is a Product ID GUID, Upgrade Code GUID and a Package GUID. I also know GUID's were created by InstallShield. If I switch over to WiX can I start using new GUID's or do I have use some of the GUID's created by InstallShield? If an upgrade to a product is released

Getting Display Name from PackageID

时间秒杀一切 提交于 2020-01-10 08:28:53
问题 Looking through the source of the Wix Standard Bootstrapper application, it appears that each package has a DisplayName property: pPackage->sczDisplayName However, the BootstrapperCore dll that is used in the WiX Setup project does not have this property. Is there any way to extract this property from the bundles in managed code? 回答1: I ported the Bal code into C#, trying to make it work exactly like the C++ code: using System; using System.Collections.Generic; using System.IO; using System

Getting Display Name from PackageID

不打扰是莪最后的温柔 提交于 2020-01-10 08:28:07
问题 Looking through the source of the Wix Standard Bootstrapper application, it appears that each package has a DisplayName property: pPackage->sczDisplayName However, the BootstrapperCore dll that is used in the WiX Setup project does not have this property. Is there any way to extract this property from the bundles in managed code? 回答1: I ported the Bal code into C#, trying to make it work exactly like the C++ code: using System; using System.Collections.Generic; using System.IO; using System

Detecting the presence of a directory at install time

狂风中的少年 提交于 2020-01-10 05:00:06
问题 In WiX DirectorySearch can be used to determine if a specific directory exists on the target computer. But I don't understand if there's a consistent way to determine that a directory does not exist. For example: <Property Id="INSTALLDIR" Secure="yes"> <RegistrySearch Id='InstallDir' Type='directory' Root='HKLM' Key='Software\Company\Product\Install' Name='InstallPath'/> </Property> <Property Id='IS_INSTALLED' Secure='yes'> <DirectorySearch Id='IsInstalled' Path='[INSTALLDIR]' /> </Property>

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