wix

Wix: Set permission of a folder within the installfolder using permissionEx

邮差的信 提交于 2019-12-23 20:34:02
问题 I'm creating an installer for an ASP.NET MVC web app using Wix, and I need to set a write permissions for the IIS_WPG on a particular folder in the site. I found an example (I think, still haven't got it working) of how to do this with cacls.exe: <CustomAction Id="PermissionAppData" Directory="TARGETDIR" ExeCommand=""[SystemFolder]cacls.exe" "[INSTALLDIR]\Content\uploads" /T /E /G IIS_WPG:M" Return="check" /> However, I've heard that PermissionEx is better as it modifies ACLs instead of

How to determine if a registry key exists in Wix

旧巷老猫 提交于 2019-12-23 19:28:12
问题 I want to determine if a Registry key exists in Wix. I cannot make any assumptions about value names in that key, but at least one exists. Default value is not set. Is it possible to check if the key exists (and optionally, if it has any values) without using custom actions? 回答1: Have a look at the RegistrySearch Sample of use: <Property Id="MYRegSearch" Value="AVaLue" Secure="yes"> <RegistrySearch Id="RegSearch" Root="HKLM" Key="Software\!(wix.Manufacturer)\!(wix.ShortProduct)" Name="Values"

Linux equivalent of WIX Installer needed [closed]

折月煮酒 提交于 2019-12-23 19:23:17
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I have been using Windows Installer XMl V3 in ant scripts for developing Installers(exe or msi). As of now our Build Server is Windows Server 2008 and we are in a process of Moving Build server to RHELv6.3. That's where problem arises:- Is their anything equivalent to WIX Installer in Linux from where I can make

How to check an installed version of a product from MSI

冷暖自知 提交于 2019-12-23 19:19:00
问题 After review a lot of posts in this site finally I decide to put mine. I am preparing an MSI file with Wix. I need to check if a particular version of an enterprise product is installed, before to install my system. I have the GUID of that product (which is the same for all versions), but I need to check if 1.10.0 version is installed. Any idea, please. Thanks in advance. PD: I am newbie in Wix, so at this moment I am just using the wxs file created by default with the Setup Project.

How can I make sure a downgraded library is installed by my MSI?

放肆的年华 提交于 2019-12-23 17:53:06
问题 I have an MSI that setups my application. It has a single component and installs only to %PROGRAMFILES% (no shared binaries). Simplified, it looks like this Msi file, Monday build: Program.exe (v1.0.0) ThirdPartyLibrary.dll (v2.0.1) Now, if I discover a bug in the program caused by my upgrade of the ThirdPartyLibrary dll from v2.0.0 to v2.0.1, and thus revert the reference to v2.0.0, it seems my MSI doesn't automatically replace the file in the installation directory? Msi file, Tuesday build:

No Debug Info in WiX Managed Custom Action using Visual Studio integration

独自空忆成欢 提交于 2019-12-23 17:36:31
问题 I have managed to create a custom action in C# using MakeSfxCA which is mostly working. However, there is some kinks which needs debugging to sort out. (The "printf-debugging" just is not enough.) However all debug info is lost. When MakeSfxCA is called from the Visual Studio project the .pdb-file is not passed as an argument, so no debug-info is included in the created CA-dll. If I manually run MakeSfxCA MakeSfxCA MyDLL.CA.dll SfxCa.dll MyDLL.dll MyDLL.pdb CustomAction.config then the debug

Setting directory of ComponentGroupRef in Wix?

微笑、不失礼 提交于 2019-12-23 17:33:45
问题 I have used the Heat tool to generate a wxs file based on a folder whose contents I want to install. This gives me a large file like this: <?xml version="1.0" encoding="utf-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Fragment> <DirectoryRef Id="TARGETDIR"> <Directory Id="dir1FC8A0605F7DF8B33E3EECB0A1270FA2" Name="DirectoryName" /> </DirectoryRef> </Fragment> <Fragment> <ComponentGroup Id="ComponentGroupId"> <Component Id="cmp1FB67A60B41F3170889B7E5739A23560" Directory=

How to avoid 'Win64' attribute is invalid when using variables in a WiX installer script?

跟風遠走 提交于 2019-12-23 17:26:55
问题 I have a WiX installer and I am following wix-tricks-and-tips My variables all work fine, but I am flooded with 100's of warnings due to this: <Component Id="C.Content.2011.1.414" DiskId="1" Guid="MYGUID" Win64="$(var.Win64)" KeyPath="yes"> I receive the warning: Warning 1 The 'Win64' attribute is invalid - The value '$(var.Win64)' is invalid according to its datatype 'http://schemas.microsoft.com/wix/2006/wi:YesNoType' - The '$' character, hexadecimal value 0x24, cannot be included in a name

Wix installer - how to run change with administrative privileges when run from Uninstall or change program in Control Panel

柔情痞子 提交于 2019-12-23 17:13:48
问题 My installer has a custom action which contacts a windows service and set some parameters. In order to successfully use the service, it must be run with the elevated privileges. In the first time install when a user clicks on the Install button, it is presented with the UAC prompt and install completes successfully. However, when a user decides to change the product(add new feature), call to the service will fail! This happens because installer is not run in the privileged mode. When I start

Is setting “ASP.NET Impersonation” possible using WiX 3.x with IISExtension?

我是研究僧i 提交于 2019-12-23 17:10:30
问题 I have this component in my .wxs file: <Component Id="Component.IisConfiguration" Guid="[COMPONENT_GUID_IISSITE]"> <iis:WebAppPool Id="IIS.AppPool" Name="[WEB_APP_POOL_NAME]" Identity="networkService" ManagedRuntimeVersion="v4.0" /> <iis:WebSite Id="IIS.WebSite" Description="[WEB_APP_NAME]" SiteId="[WEB_APP_SITEID]" Directory="TARGETDIR" > <iis:WebApplication Id="IIS.WebSite.Application" Name="[WEB_APP_POOL_NAME]" WebAppPool="IIS.AppPool" /> <iis:WebAddress Id="IIS.WebSite.WebAddress.Port"