wix

Disable registry redirection in WiX

柔情痞子 提交于 2020-01-04 04:34:10
问题 I'm using WiX to deploy my application. This application uses a registry key which is shared between x64 and x86 processes. Thus it must not use the Wow64Node. The application uses the KEY_WOW64_64KEY flag to achieve this. But how can this be done using an MSI build with WiX? Currently I use an x86 and an x64 version of the installer, but that gives me a large overhead. Is it possible to disable registry redirection in WiX? I found the DisableRegistryReflection attribute, but that does not

Determine if SqlLocalDB is installed

守給你的承諾、 提交于 2020-01-04 04:11:22
问题 I am searching for a way to determine in WiX if SQLLocalDB is installed or not. How can I do this? - Can I check a registry-key? - When yes, which key? 回答1: A RegistrySearch should do it: <Property Id="LOCALDB"> <RegistrySearch Id="SearchForLocalDB" Root="HKLM" Key="SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL11E.LOCALDB\MSSQLServer\CurrentVersion" Name="CurrentVersion" Type="raw" /> </Property> That would get you the version. 回答2: Checking from the registry may not work all the time becasue

Invalid DefaultDir when running light in WiX

走远了吗. 提交于 2020-01-04 03:50:35
问题 I simply want to do an installer that will move some files into Program Files, set up a start menu link, and appear in the add/remove program to be uninstalled. For the time being I'm happy to punt on the start-menu link as that seems relatively straight forward The caveat is that I specifically want this to be build-able from a script without any sort of global installs. That means no Visual Studio extension nor any global installation of the WiX toolkit. I was able to find WiX on nuget

Is there any way to create symbolic link in WIX installer?

心不动则不痛 提交于 2020-01-04 02:56:08
问题 I need to create a symbolic-link for a particular folder; that folder is created by a WIX installer. Is there any way to create a symbolic-link from WIX installer? I have read about mklink , but I do not know how to use that in WIX (v3)? 回答1: You can use Custom actions to run the mklink. Run the custom actions after InstallFinalize. Or you can use Short cut instead of symbolic links. In Custom Action file: [CustomAction] public static ActionResult symboliclink(Session session) { string

ProgramFiles64Folder is installing to \Program Files (x86)\ in WIX Installer

末鹿安然 提交于 2020-01-04 02:55:11
问题 I currently have two WIX projects - one for creating an x86 installer and one for creating an x64 installer. I would like to combine these two projects into just one project which uses variables to control program flow. I have the following: <?if $(var.Platform) = x64 ?> <?define ProductName = "CableSolve Web (64 bit)" ?> <?define Win64 = "yes" ?> <?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?> <?else ?> <?define ProductName = "CableSolve Web" ?> <?define Win64 = "no" ?> <

Wix: How can I set, at runtime, the text to be displayed in VerifyReadyDlg?

一曲冷凌霜 提交于 2020-01-04 02:38:48
问题 After the user goes through the Setup Wizard, and makes a few choices, the usual thing is to display the VerifyReadyDlg to say "Are you ready to install?" The built-in VerifyReadyDlg is static. It does not present a summary of the choices he made previously. I'd like to modify it so that it does. How can I do that? Example "Static" text: Intelligent text: I don't believe I can modify the Control table in the MSI, because mods during the installation process are not allowed. I found

Setting a value XmlConfig

柔情痞子 提交于 2020-01-03 14:18:41
问题 Hi I am trying to change a value setting in a config file using the following: <Component Id="Enable32BitAppPoolComponent" Guid="*" Directory="INSTALLLOCATION"> <CreateFolder/> <util:XmlConfig Id="Enable32BitAppPool" Node="value" ElementPath="//configuration/system.applicationHost/applicationPools/add[\[]@name='DefaultAppPool'[\]]/@enable32BitAppOnWin64" File="[inetsrv]\config\applicationHost.config" Value="true" On="install"/> </Component> This code does not change the value in the

WIX run vcredist_x64.exe on install

百般思念 提交于 2020-01-03 08:46:05
问题 I have an application compiled in VS 2015 and requires the VC++ Redistributable package in order to run properly. Prior to this latest build, we were using an older version of VS and simply used a merge module to handle the installation of the appropriate redist files. However, I noticed that when using the latest version of the merge modules for 2015 (Microsoft_VC140_CRT_x64.msm) that my application still wouldn't work out of the box. I did some digging and it appears that some things have

WiX Check File Exists before Install

给你一囗甜甜゛ 提交于 2020-01-03 08:21:06
问题 I have seen this question asked many times but none of the answers seem to work for me. I'm obviously missing something elementary, but I can't seem to find out what it is! I've only been using WiX for a couple of days so I'm still very new to it. Basically, I've built a plug in to an existing product, and I want to check that the product is installed before allowing my plug in to install. I think the simplest way is to check the main executable is in the correct directory. My relevant code

Wix Installer: One feature with condition to decide which ComponentGroupRef to use

▼魔方 西西 提交于 2020-01-03 04:24:06
问题 My installer has a Feature called "Tools" What is installed by this feature is dependent on which version of SQL Server the client is running. How can I have one feature with a condition that says "If SQL 2008 do ComponentGroupRef ID=SQL2008 otherwise ComponentGroupRef ID=SQL2012" I'm creating 2 properties to hold the directory for SQL2008 and SQL2012, so those are the properties I'm using to make my determination. This is close, but shows "Tools" feature twice. <Feature Id="SQL2008Tools"