wix3.10

IISMAJORVERSION and IISMINORVERSION are set despite IIS being removed

不羁的心 提交于 2019-12-12 21:01:30
问题 I'm creating an installer that has a dependency on IIS being installed. To test I'm using a virtual machine running Windows Server 2008 R2 which has the web server role installed. My installer checks whether IIS is installed using this conditional; <PropertyRef Id="IISMAJORVERSION" /> <PropertyRef Id="IISMINORVERSION" /> <Condition Message="Install requires IIS version 7.5 or later"> <![CDATA[Installed OR (IISMAJORVERSION AND ((IISMAJORVERSION = "#7" AND IISMINORVERSION >= "#5") OR

WIX msi with large number of files takes before welcome dialog is published

末鹿安然 提交于 2019-12-11 09:32:46
问题 We have an MSI developed using Wix 3.10, it contains around 33,200 components associated with one particular feature. The issue is that when the MSI is launched, the welcome dialog takes a long time to be enabled, roughly around 3-4 minutes on the development environment. The same issue occurs when the particular feature is deselected and selected back for usage. I suspect the delay seems to be due to standard Custom action such as CostInitialise, FileCost, and CostFinalise. This behavior

Wix - ICE 64 error: Link external componentgroups

青春壹個敷衍的年華 提交于 2019-12-11 06:15:52
问题 i use heat to harvest my files i need as components in my Setup and write them to a separate wxs file, which works perfect. Example of generated file: <?xml version="1.0" encoding="utf-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Fragment> <DirectoryRef Id="AppData_dir_ref"> <Directory Id="GUID" Name="C" /> <Directory Id="GUID" Name="OLD" /> </DirectoryRef> </Fragment> <Fragment> <ComponentGroup Id="AppData_ComponentGroupId"> <Component Id="GUID" Directory="GUID" Guid="{GUID}"

WiX Custom Bootstrapper Application and .NET 4.5

北战南征 提交于 2019-12-10 18:32:19
问题 I am having difficulties getting a WiX Custom Bootstrapper Application that targets .NET 4.5 to work. I have the following line in my Bundle.wxs. <PackageGroupRef Id="NetFx45Web" /> My BootstrapperCore.config is as follows. <configuration> <configSections> <sectionGroup name="wix.bootstrapper" type="Microsoft.Tools.WindowsInstallerXml.Bootstrapper.BootstrapperSectionGroup, BootstrapperCore"> <section name="host" type="Microsoft.Tools.WindowsInstallerXml.Bootstrapper.HostSection,

Update and retain web.config file during upgrade in wix installer

时光总嘲笑我的痴心妄想 提交于 2019-12-02 14:13:31
问题 What is the standard way to handle web.config files during major upgrade.I'm aware how the unversioned files are handled during upgrade,the file will not be replaced if the file has been modified by the user. Is there a way to deal with the scenario where in there are new entries added to config file bundled with the latest installer that needs to be installed,and also retain the existing entries modified by the user during major upgrade in Wix. 回答1: The simple solution that a lot of my

Run Wix Custom action only during uninstall and not during Major upgrade

自作多情 提交于 2019-11-27 09:50:27
I am trying to delete a file using a custom action scheduled between InstallInitialise and InstallFinalize standard action. MajorUpgrade element is used to design upgrades. However, I want the custom action to run only during uninstall and not during the Major upgrade(this includes uninstall and install). I have used the following conditions to execute the CUstom action: (NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL") REMOVE AND NOT WIX_UPGRADE_DETECTED Is there a way to uniquely detect the Major Upgrade using properties in Wix? It's not obvious whether you want to do this in the older installed

Wix, custom dialog when previous version exists

烂漫一生 提交于 2019-11-27 05:41:55
I'm making installation for my application with WiX toolset. I want to show custom dialog if previous version found. Now I don't know how to check if there is previous version and show this dialog only in that case? Here is my code. CustomDialogUI.wxs : <?xml version="1.0" encoding="utf-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Fragment> <UI> <Dialog Id="OldVersionDlg" Width="260" Height="85" Title="[ProductName] Setup" NoMinimize="yes"> <Control Id="No" Type="PushButton" X="132" Y="57" Width="56" Height="17" Default="yes" Cancel="yes" Text="No"> <Publish Event="EndDialog"

Registering a CPP dll into COM after installation using Wix Msi installer

可紊 提交于 2019-11-26 16:49:14
I am trying to register a CPP library into COM during the Msi installation. I have searched a lot and found many solutions in here, but nothing is working in my code. I don't know is there any direct method for this. I have tried using Custom Action with direct ExeCommand and with a batch script. Here is the code with batch script. <SetProperty Id="Register" Value=""[INSTALLDIR]Scripts\Register.bat"" After="CostFinalize"/> <CustomAction Id="Register" BinaryKey="WixCA" DllEntry="CAQuietExec" Execute="deferred" Return="check" Impersonate="no"/> <SetProperty Id="Unregister" Value=""[INSTALLDIR

Wix, custom dialog when previous version exists

假如想象 提交于 2019-11-26 11:37:23
问题 I\'m making installation for my application with WiX toolset. I want to show custom dialog if previous version found. Now I don\'t know how to check if there is previous version and show this dialog only in that case? Here is my code. CustomDialogUI.wxs : <?xml version=\"1.0\" encoding=\"utf-8\"?> <Wix xmlns=\"http://schemas.microsoft.com/wix/2006/wi\"> <Fragment> <UI> <Dialog Id=\"OldVersionDlg\" Width=\"260\" Height=\"85\" Title=\"[ProductName] Setup\" NoMinimize=\"yes\"> <Control Id=\"No\"