windows-installer

How can I perform a custom action in WiX that only executes on install or uninstall?

蹲街弑〆低调 提交于 2020-01-12 12:53:48
问题 I have two custom actions, one of which I'd like to execute when my product is installed and the other when it is uninstalled. My custom action is currently called from a merge module after the "InstallFinalize", but this happens for both install and uninstall. I've tried adding the "NOT INSTALLED AND NOT UPGRADINGPRODUCTCODE" condition, but that gave me an error: Error 2762. Cannot write script record. Transaction not started. I've also tried attaching to other actions (for example,

Create Custom Action to Start Application and Exit Installer

只愿长相守 提交于 2020-01-12 05:44:07
问题 Thanks to StackOverflow I found out yesterday how to add a custom action to the Visual Studio Installer to start my program after an update. The problem I now face is that at the end of the installer the program does open but the installer never finishes until I exit my app. Is there a way to ensure the app starts only after the user clicks finish on the MSI package? Or the program starts at finish of installer but installer completes and exits? I am running Visual Studio 2010 in case it

Wix how to hide feature options

爱⌒轻易说出口 提交于 2020-01-12 03:41:23
问题 I'm using Wix 3.5 to build a MSI installer. I want to know if there is any way to hide some options from the "Features Custom Setup dialog" (in which you select from the Feature tree what to install). I want to only have the options for "Will be installed on local hard drive" and "Entire feature will be unavailable" Currently, apart from those two options i have these options: "Entire feature will be installed on local hard drive" "Will be installed to run from network" "Entire feature will

msiexec parameters via setup.exe to create log not working

被刻印的时光 ゝ 提交于 2020-01-11 11:28:07
问题 I'm trying to get a log from my install that uses a setup.exe. I can get a log with just setup.exe /V"/l*v c:\temp\installlog.txt", but I want to pass the "x" parameter as well to get "Extra debugging information" and when I try setup.exe /V"/l*vx c:\temp\installlog.txt" I get: 1629: Invalid command line. Any idea what I'm doing wrong? I have msiexec version 5 installed. 回答1: Ancient setup.exe : I tried with an ancient version of Installshield and the setup.exe for a Basic MSI worked as

how to create custom UI for MSI in Wix?

若如初见. 提交于 2020-01-11 11:09:25
问题 I want to enhance my UI dialog of MSI using Wix. Can you point out me the best tool which provides an option to create such UI? Also, is there possible to show animated GIF image in MSI wizard 回答1: You want to look into "Embedded UI" (also sometimes called "External UI"). But once you go down this path, you have to provide the entire UI, and nothing in InstallUISequence gets run (like Costing). There is a sample Embedded UI in Wix that demos a WPF UI and a prgress bar that reacts to what is

how to create custom UI for MSI in Wix?

谁都会走 提交于 2020-01-11 11:09:11
问题 I want to enhance my UI dialog of MSI using Wix. Can you point out me the best tool which provides an option to create such UI? Also, is there possible to show animated GIF image in MSI wizard 回答1: You want to look into "Embedded UI" (also sometimes called "External UI"). But once you go down this path, you have to provide the entire UI, and nothing in InstallUISequence gets run (like Costing). There is a sample Embedded UI in Wix that demos a WPF UI and a prgress bar that reacts to what is

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:

Adding a help button to an InnoSetup wizard page

核能气质少年 提交于 2020-01-11 04:02:05
问题 I have a setup script with a custom wizard page to get a choice from the user. It would be nice to have a help button and to supply a small CHM file with the installable so that I can provide a detailed explanation of what the choices are. Anyone know whether there is an easy way to do this? 回答1: See this post for details on how to include a file with the installation package and reference that file before installation has started. To add a button to the install wizard, I included the

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

Creating a self-extracting zip archive on a linux box

二次信任 提交于 2020-01-10 19:26:10
问题 Due to a number of constraints that I won't get into, I have to create a self-extracting ZIP archive on a linux box. The resulting archive should be executable on Windows only. Is this at all possible? If so, what tools would do the job? Background: when the user downloads a setup package from my linux box, I need that setup package to be pre-populated with a certain key. I only know that key at runtime; my idea was to write a simple .xml file with that key, then zip up the .msi installer