wix3

Question regarding PermissionEx (WIX)

一个人想着一个人 提交于 2019-12-12 16:35:46
问题 I am new to WIX. I am using util:PermissionEx for creating ACLs. I can successfully set rights like read, write, read & execute but I am unable to find any information about setting Modify Permission. I have tried using "Append" attribute to achieve this functionality (this seems to be the only attribute that may do the desired) But using this, the following compilation error appears: "error CNDL0004: The util:PermissionEx element contains an unexpected attribute 'Append'." Could you please

How to register a COM dll on condition based in WIX Installer

女生的网名这么多〃 提交于 2019-12-11 17:47:27
问题 Am running a Command to register a dll using the below code in WIX installer <CustomAction Id='comReg' Directory='INSTALLLOCATION' Impersonate='no' Execute='deferred' ExeCommand='"[NETFRAMEWORK40CLIENTINSTALLROOTDIR]regasm.exe" "[INSTALLLOCATION]myProduct.dll" /codebase' Return='check' /> <CustomAction Id='comUnreg' Directory='INSTALLLOCATION' Impersonate='no' Execute='deferred' ExeCommand='"[NETFRAMEWORK40CLIENTINSTALLROOTDIR]regasm.exe" /u "[INSTALLLOCATION]myProduct.dll" /codebase' Return=

WiX: CustomAction based on the outcome of another CustomAction

孤人 提交于 2019-12-11 15:15:32
问题 I am fairly new to WiX so may be I am asking something very straight forward but I couldn't find much help googling it. I want to perform 2 customActions, say, ca1 and ca2, where execution of ca2 depends on outcome of ca1, something like below: if ( ca1 == SUCCESS ) { Perform ca2 } So ca2 should only be executed if my ca1 returns success (doesnt fails). What is the easiest way to do this in WiX ? 回答1: What you describe is the default. If a custom action fails, the installation aborts, and

error LGHT0094 : The identifier 'CustomAction:WixUIPrintEula' could not be found

那年仲夏 提交于 2019-12-11 14:58:25
问题 When I run the below command from the command line for the WIx installer after migrated from version 2.0 to 4.0: E:\Code\PCPE\builder>ant -v -f Build.xml -Dlabel =.001 install I am getting the below error. [exec] E:\Code\EMR\Wix\src\ui\LicenseAgreementDlg.wxs(34) : error LGHT0094 : The identifier 'CustomAction:WixUIPrintEula' could not be found. Ensure you have typed the reference correctly and that all the necessary inputs are provided to the linker. [ant] Exiting E:\Code\EMR\builder

how to omit a component when we try to build .msi using wix

☆樱花仙子☆ 提交于 2019-12-11 08:58:54
问题 I have an .exe file and .dll ( IE add-on ) in a single MSI. When user installs it for the first time both the files will installs and in the program files under specified folder it will create .exe and .dll . Now I want to provide an update for the .dll ( IE add-on ) only. When I generate the MSI again with updated file of .dll how to omit the .exe file not to load in the MSI. Because .exe file size is very large it will take user lot of time to update the MSI. Is there a way to omit .exe

wix unexpected child element 'Website'

强颜欢笑 提交于 2019-12-11 04:19:09
问题 With the code below, everything compiles without any error. But when I run the resulting MSI, I don't see any site created in IIS: <Wix xmlns='http://schemas.microsoft.com/wix/2006/wi' xmlns:iis='http://schemas.microsoft.com/wix/IIsExtension'> <iis:WebSite Id='dp_service_site' Description='Default Web Site'> <iis:WebAddress Id="AllUnassigned" Port="80" /> </iis:WebSite> . . <DirectoryRef Id='DPDIR'> <Component Id='dservice' DiskId='1' Guid ='21e0c49d-e9a6-4de6-894c-d0632ea45f5a'> <iis

WiX Installer: getting version of the product being upgraded

对着背影说爱祢 提交于 2019-12-11 02:49:39
问题 During a major upgrade from version X to version Y, I need to have a property/variable stating that version X is being upgraded. When performing a Major Upgrade of a product with a setup built by WiX Installer, is there a way to get the version number being upgraded? 回答1: Assuming you're using a WiX majorupgrade element, when an upgrade is detected the value of the WIX_UPGRADE_DETECTED property is set to the productcode of the product being upgraded. You could pass that into the C++ Win32 API

How can I use an update condition to set variables in Wix?

偶尔善良 提交于 2019-12-11 02:02:29
问题 We are using Wix V3.11 to build an msi setup for our C#-Application. We have a 32 Bit and an 64 Bit build for each version: The preallocated installation path for the 32 Bit build is: 'C:\Program Files (x86)'. The preallocated installation path for the 64 Bit setup is: 'C:\Program Files'. We use the following declaration to set the paths: <?define bitness = $(var.Platform) ?> <?if $(var.Platform) = "x86" ?> <?define ProgramFilesPath = ProgramFilesFolder?> <?define Win64 = no?> <?else?> <

In Wix, why can I not get XmlConfig, uninstall, delete to work?

℡╲_俬逩灬. 提交于 2019-12-11 01:45:18
问题 I need to remove elements from an existing config file on uninstall. Here is the relevant Wix: <Component Id="Dynamics.exe.config" DiskId="1" Permanent="yes"> <File Id="AppConfig" Name="Dynamics.exe.config" Source="$(var.ProgramFilesDir)\Microsoft Dynamics\GP2010\Dynamics.exe.config" KeyPath="yes" /> <util:XmlConfig Id="AppSettings" Action="create" ElementPath="//configuration" Name="appSettings" File="[#AppConfig]" Sequence="1" VerifyPath="appSettings" Node="element" On="install"/> <util

Wix:Disallowing installation of component: since the same component with higher versioned keyfile exists

微笑、不失礼 提交于 2019-12-10 18:19:38
问题 I am doing a compatibility check of MSI in the OPS environment before deploying to Production environment. A part of this i am deploying first the latest MSI say "MSIv2 to OPS environment on top of MSIv1 and the MSIv2 automatically uninstall the MSIv1 and install MSIv2 without any issues. Now when i am installing MSIv1 on top of MSIv2. MSIv1 is installed and it is showing in control pannel as installed.But when i see the directory path no .dll files are there in the bin folder. i am logging