wix3.7

Including .NET installer in WiX Bundle not detecting if already installed

大城市里の小女人 提交于 2019-12-09 12:35:32
问题 I'm on WiX 3.7, and I can't get the simple <PackageGroupRef Id="NetFx40Web"/> bundle element to work, as it doesn't bring across the Net FX installer package, or embed it in the setup.exe. I've resorted to creating my own package for this in my Bundle.wxs file, but I am still having trouble. It seems to always try to install .NET 4, even if the machine already has .NET installed. I'm not quite sure of the difference between InstallCondition and DetectCondition . I think InstallCondition is

WIX Heat.exe command parameter -var does not accept spaces?

你。 提交于 2019-12-08 19:32:28
问题 I have this WIX command that uses all invariant paths and it doesn't need a system environment (unlike this example http://weblogs.sqlteam.com/mladenp/archive/2010/02/23/WiX-3-Tutorial-Generating-filedirectory-fragments-with-Heat.exe.aspx): "%wix%bin\heat.exe" dir "$(SolutionDir)Web\obj\$(Configuration)\Package" -cg PACKAGEFILES -gg -g1 -sreg -srd -dr DEPLOYFOLDER -var wix.PackageSource="$(SolutionDir)Web\obj\$(Configuration)\Package" -out "$(SolutionDir)WebInstaller\PackageFragment.wxs" It

Dynamically assigning name to shortcut at run time in WIX

时光总嘲笑我的痴心妄想 提交于 2019-12-06 10:44:38
问题 I want to assign different names to a shortcut based on user input. Is this feasible using the WiX toolset? I have tried assigning value of property to Name attribute of Shortcut element but it does not work. 回答1: The Name column of the Shortcut Table isn't of type Formatted therefore it isn't possible to use [PROPERTY] to mutate it at runtime. The only ways I know how to do it are: Skip the shortcut table and write a custom action to handle it yourself. Write a custom action to dynamically

Install a folder to ALLUSERS (not a shortcut!) using WiX

拥有回忆 提交于 2019-12-06 06:15:58
问题 I have an MSI file that is installing a folder with a bunch of files inside it. I have a location that I am putting the files in: Windows XP: C:\Documents and Settings\All Users\Documents\MyFolder Windows 7: C:\Users\Public\Documents\MyFolder The issue is that I do not want to hardcode these paths, but no matter where I look I cannot find out how to do this, because everywhere I look they are talking about making shortcuts for all users and that is not what I am trying to do. How can one

What is the proper way to download setup packages in a WiX custom managed bootstrapper application?

你。 提交于 2019-12-06 06:14:25
问题 I wrote a WiX custom MBA that I have been using which embeds all of the setup packages (msis, cabs and exes) I need for my installation. However I would now like to make a lightweight web bootstrapper which will download the packages that need to be installed. I thought you would get that for free with the underlying WiX bootstrapper engine, but I guess I was wrong. I tried subscribing to the ResolveSource event to get a package's download url and download it to the local source location, but

Add more than one checkbox when install with Wix is over

隐身守侯 提交于 2019-12-06 05:29:17
I have an setup for my C# application. At the end of setup I added a checkbox proposing to launch application. It works good. But i'm unable to add a second checkbox proposing to launch an optional installer. There is my code: <?xml version="1.0" encoding="UTF-8"?> <?define compagny = "myCompagny"?> <?define product = "myProduct"?> <?define version = "!(bind.FileVersion.MyProject.exe)"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"> <Product Id="*" Name="$(var.product)" Language="1033" Version="$(var.version)" Manufacturer="$

Prevent services from losing settings on major upgrade in WiX

淺唱寂寞╮ 提交于 2019-12-05 20:14:38
问题 I'm trying to prevent my services from losing their settings (credentials and other options) on major upgrades in my WiX installer. I followed the advice here, and I'm trying to use <InstallExecuteSequence> <DeleteServices>NOT UPGRADINGPRODUCTCODE</DeleteServices> </InstallExecuteSequence> But my services are still being reinstalled on upgrades, losing my credentials and other service settings on each upgrade. In the log, it looks like my condition is being honored only once. I see MSI (s)

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

蹲街弑〆低调 提交于 2019-12-05 11:17:34
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 happening? The CustomAction/@Value attribute has a limit of 255 characters in the Windows Installer. So, if

Complete WiX sample *.wxs to download and install a specific version of .NET Framework if it's not available

青春壹個敷衍的年華 提交于 2019-12-04 22:11:05
问题 There are many incomplete questions and answers about how to download and install .NET Framework(s) if they are not available but none complete code seems to be available on Internet. Can you provide a minimal compilable code or a link to a clear example that generates a setup.exe/MSI? I don't think RTFM applies to this question since MSI and bootstrap installers has a lot of idiosyncrasies that are not easily deductible. 回答1: Note, this information is available in full in the manual. It can

What is the proper way to download setup packages in a WiX custom managed bootstrapper application?

谁都会走 提交于 2019-12-04 12:33:20
I wrote a WiX custom MBA that I have been using which embeds all of the setup packages (msis, cabs and exes) I need for my installation. However I would now like to make a lightweight web bootstrapper which will download the packages that need to be installed. I thought you would get that for free with the underlying WiX bootstrapper engine, but I guess I was wrong. I tried subscribing to the ResolveSource event to get a package's download url and download it to the local source location, but it seems like at that point it's too late in the process as my installation fails with an error