wix3.7

wix generating new upgrade code

匆匆过客 提交于 2019-12-11 08:25:20
问题 My project needs to have the ability to install 2 versions or more simultaneously. as far as i can find, the solution i have found is changing the upgrade code for each build of the installer. however i want to do this automatically. in regular GUID i just use "*" but this won't work for upgradecode. is there a way to generate new upgradecode in every wix prebuild or any other solution? <?xml version="1.0" encoding="utf-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util=

Connection String in a WIX Custom Action Parameter

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 02:39:30
问题 Using WIX 3.7, I want to pass a connection string into a custom action. However, since the connection string contains ';' the custom action data is not being parsed correctly. <CustomAction Id="PopulateActionPrep" Property="PopulateAction" Execute="immediate" Value="CONNECTIONSTRING="[CONNECTIONSTRING]";PRODUCTVERSION=[ProductVersion]" /> I tried using quotes to escape the connection string but that did not work. When I read the CONNECTIONSTRING property from CustomActionData it comes back

Safely resolving duplicate component GUIDs in Wix

怎甘沉沦 提交于 2019-12-11 02:29:56
问题 Recently we discovered that we have a duplicate component GUID in our Wix script. The common GUID is used for 2 files with different names but in the same directory. I did some searching on the net found that, this can lead to problems later on, but cannot find any satisfactory resolutions of the same problem. Is there a safe way of resolving this issue? Thanks. 回答1: Can you rename the files and give them both a new guid each ? This is the safest approach - it decouples all reference count

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?> <

Wix Burn: Basic UI handling if No Net Framework is there

こ雲淡風輕ζ 提交于 2019-12-10 21:49:50
问题 I wrote a Boostrapper UI in C# for Net Framework 2.0 using Win-Forms. It started working fine and designed forms are responding as expected. Here is my Wix Bundle Code: <?define TargetFile=$(var.MyBA.TargetDir)$(var.MyBA.TargetFileName)?> <?define BootstrapConfigFile=$(var.MyBA.ProjectDir)BootstrapperCore.config?> <Bundle Name="Bootstrapper1" Version="1.0.0.0" Manufacturer="Farrukh" UpgradeCode="54c4a4a4-dca8-4ae4-b2f4-5e3f3fd8cb92"> <BootstrapperApplicationRef Id=

Can we upgrade 1.0.0.0 to 1.0.0.1 while changing product code?

让人想犯罪 __ 提交于 2019-12-10 19:27:16
问题 I'm asked to upgrade ver 1.0.0.0 to 1.0.0.1. By default, when I tested with a dummy installer, if we change the product code, both 1.0.0.0 and 1.0.0.1 would install side by side. But if we do the ver 1.0.1.0 (while changing product code), it would do the upgrade. Here is my upgrade segment: <Upgrade Id="{354E9DAE-EB70-4BCC-BD93-AC20ACE3F370}"> <UpgradeVersion Maximum="$(var.ver)" Property="DOMAJORUPGRADE" MigrateFeatures="yes" IncludeMinimum="yes"/> </Upgrade> Question: Is there any method to

Uunable to see WIX project type in Visual studio 2008/2010

南笙酒味 提交于 2019-12-10 17:59:48
问题 I have Visual Studio 2008, 2010, and WIX37.msi (WIX 3.7) installed on my machine. However, I am unable to see WIX project type in Visual studio 2008/2010. Do I need to install additional tool/plugin? 回答1: I have Visual Studio 2008 and Visual Studio 2010 installed on my machine and I installed WiX v3.7 RTM from Codeplex. Things work okay for me. There is a known issue in VS2008 that requires you to set an MSBuild property called RunWixToolsOutOfProc to true . This occurred because parts of WiX

Setup Project versus Bootstrapper Project for checking and installing prerequisites

杀马特。学长 韩版系。学妹 提交于 2019-12-10 17:20:06
问题 Here is my situation: I create a normal WiX Setup project. Then I try to check some prerequisites like if the .NET framework is installed or not. It seems that I am not able to do this from a WiX Setup project. So I create WiX Bootstrapper project and am able to check for and install those prerequisites. I try to use the WiX Bootstrapper in the WiX Setup project but can not. The examples I see was, the WiX Bootstrapper project uses the Setup project with the MsiPackage tag. It seems strange

Getting the file version of a native exe in MSBuild

冷暖自知 提交于 2019-12-10 10:12:22
问题 I have a number of Visual C++ projects in a Visual Studio 2010 solution. Also in this solution is a WiX project that builds the installer for the executable that is the product of one of the C++ projects. The executable has a resource file in its project which writes the version of the program to the executable. Now I'd like to version the WiX-built installer with the same number as the one written to the executable by the resource file. I've searched the WiX related posts on StackOverflow

ICE03: String overflow (greater than length permitted in column); Table: CustomAction

此生再无相见时 提交于 2019-12-10 06:28:30
问题 I am getting an ICE03: String overflow warning for the following code: <CustomAction Id="CustomActionID" Return="check" Property="SomeProperty" Value="VERY LONG STRING COMES HERE" Execute="immediate"/> This code is included in a separate .wxs file in a fragment. If I include this directly within the "Product" tag then the warning disappears. This also happens with the following code: <Binary Id="SomeBinaryWithAVeryLongName" SourceFile="SOURCEFILE" /> I would like to find out why is this