wix3.7

Obtaining generated ProductCode as a variable in Wix

旧巷老猫 提交于 2019-12-24 03:30:00
问题 In our product we use Product Id="*" in Wix to tell it to generate a new product code for every new build. We now have a requirement during install time to record the product code of the MSI being installed into one of our registry keys. We could infer the product code at runtime by looping through entries in the "Uninstall" registry keys looking for our product name and version, but it would be cleaner to directly record this information at install time. Is there a way for Wix to tell me

Add more than one checkbox when install with Wix is over

血红的双手。 提交于 2019-12-22 16:44:09
问题 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

WiX - Does Burn support dual-purpose msi packages?

泪湿孤枕 提交于 2019-12-22 09:37:36
问题 Does Burn support dual-purpose (per-user or per-machine) MSI packages which were prepared according to these Microsoft guidelines? I tried to prepare such a package, but it looks like bootstrapper created with Burn doesn't uninstall MSI package, which was installed per-machine after raising UAC privileges by End-User. The source code for Burn is: <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension" xmlns:bal="http://schemas

Wix installer bundle produces corrupt “msi”

匆匆过客 提交于 2019-12-20 05:29:10
问题 Using very simple code almost same as in examples: <?xml version="1.0" encoding="utf-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Bundle Version="1.0" Manufacturer="ACME" UpgradeCode="6AF8AF7D-3B44-4496-9E64-56206DF66C55"> <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense"/> <Chain> <MsiPackage SourceFile="wpftoolkit.msi"/> </Chain> </Bundle> </Wix> I get a setup.msi file that produced error imidiatly in start: msiexec /i setup.msi /l*v log.txt log

Warning in Wix Setup

这一生的挚爱 提交于 2019-12-20 04:16:35
问题 I am new to Wix toolkit. I am creating one setup using Wix Toolkit for my Application. But when I try to build it using Wix. It shows this warning. C:\Users\BNK\Desktop\wix - popup\setup.wxs(60) : warning LGHT1076 : ICE69: Mismatched component reference. Entry 'FCONStartMenuShortcut' of the Shortcut table b elongs to component 'FCONShortcut'. However, the formatted string in column 'Tar get' references file 'FCONUCClient.exe' which belongs to component 'FCONUCClient .exe'. Components are in

WiX - How to uninstall the bundle when uninstall the msi

孤者浪人 提交于 2019-12-19 21:34:47
问题 Im using WiX to install my .msi, I´m generating a WiX Bundle using the Bundle Element. I try to not show the Bundle on "Add/Remove programs" so i set the properties of the Bundle element like this: <Bundle Name="$(var.ProductName)" Version="!(bind.packageVersion.MSIPackage)" Manufacturer="$(var.ProductManufacturer)" UpgradeCode="$(var.UpgradeCode)" DisableRemove="yes" DisableModify="yes" DisableRepair="yes"> DisableRemove, DisableModify and DisableRepair to "yes" made the Bundle be hidden

How to create a bootstrapper application without a license agreement step

喜夏-厌秋 提交于 2019-12-18 10:37:40
问题 I have created a WiX Bootstrapper project. When the installation runs, it presents a license agreement. I want to create a bootstrapper without this step as I don't want it to show any license agreement. Is it possible to do it? If yes, how? 回答1: Assuming that you are using the WiX Standard Bootstrapper Application, your current BootstrapperApplicationRef might look like this: <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" /> WixStandardBootstrapperApplication

Wix custom uninstallation action - how to run before msi removing files

淺唱寂寞╮ 提交于 2019-12-17 21:32:12
问题 I have a custom action that adds files to the installation directory. When the program is being uninstalled, another custom action tries to remove those files, so that the installation directory can be deleted. The problem is that my custom uninstallation action runs after the removal of standard install files, so the installation directory is left there, although it's empty. The config looks similar to this: <CustomAction Id="AddFilesAction" BinaryKey="installerActions" DllEntry="AddFiles"

How to set InstallCondition for ExePackage in Chain based on file contents?

*爱你&永不变心* 提交于 2019-12-13 06:12:54
问题 I have a Chain with following setup: ExePackage1->MsiPackage1->ExePackage2->MsiPackage2 MsiPackage1 writes some values to file File1. ExePackage2 has an InstallCondition which should be based on the contents of File1. How can I read the contents of File1 and set a property to be tested in InstallCondition? I thought of util:FileSearch but it does help me with contents. Reading the contents in ExePackage2 with a custom action might be another approach but I would like to not even execute

Sample application for WiX bootstrapper for beginners

我是研究僧i 提交于 2019-12-13 05:16:15
问题 I'm very new to WiX based applications, and I need to create an MSI file where it has to check for .NET Framework 4.0 and SQL Server 2008. If they are not installed, I have to get them installed first and then have to install my application's EXE file and one more VBScript agent. It must be done like when you install WiX 3.7 setup (if we double click the setup file, it will show a UI as shown below! Where do I start? Is there any step-by-step guide to develop this kind of application? 回答1: