wix3.6

WiX - Set Installdirectory dynamically over CustomAction [C#]

 ̄綄美尐妖づ 提交于 2019-12-22 20:53:09
问题 I'm about to create an installer, now i have to set the install-directory depending on the operation-system. My directory-tree: <Property Id="TARGETDIR" Value="C:\" /> <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="TARGETDIRECTORY" Name="MyApplication"> <Directory Id="CONFIG" Name="Config"> <Directory Id="FOLDER2" Name="Folder2" /> </Directory> </Directory> </Directory> if i set the TARGETDIRECTORY in the c#-custom-action, the targetdirectory gets set correct, but the CONFIG

Bootstrapping sequence validation issue using WiX 3.6 and Burn

本小妞迷上赌 提交于 2019-12-22 13:30:30
问题 <?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"> <Bundle Name="My Test Program" Version="1.0.0.0" Manufacturer="Microsoft" UpgradeCode="cc7cfeae-c3a4-4430-841e-f927de3f9f95"> <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" /> <util:RegistrySearch Id="FindDotNet35SP1InstallRegValue" Root="HKLM" Key="SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5" Value="SP"

Can we localize WIX msi and bundle using language selection UI at runtime?

本小妞迷上赌 提交于 2019-12-21 20:36:57
问题 We have an MSI and Bundle created in Wix. I need to localize both of these in such a way that language selection GUI will be popped-up and language can be selected by the user at run time. Would be really appreciated if anybody can help me on this. For MSI, i am working on creating another bootstapper for bringing-up with language selection combobox and invoke the tranfomed MSI with the required transform(using command shell). I am still not sure about the feasibilty of this approach. I am

Remove registry keys under HKCU on a per machine installation

吃可爱长大的小学妹 提交于 2019-12-21 07:30:49
问题 I build a perMachine installer using WiX 3.6 to install a software I had not developed. Unfortunately the software creates some registry keys under HKCU during execution. On uninstall, the self created keys should also be removed. It seems not so easy to remove these keys. I am "fighting" with ICE57 and/or ICE38. Both complaining the mix between perUser and perMachine data. Hopefully you can point me in the right direction on fixing this issue. 回答1: To overcome ICEs you should move Per-User

Start application after installation using WiX/Burn

别说谁变了你拦得住时间么 提交于 2019-12-21 03:19:16
问题 I'm aware of similar questions in WiX MSI, but I'm having issues starting an application within a bootstrapper EXE file created with Burn after the installation. My full bundle is below. If it makes any difference to the scenario, the bootstrapper is started in passive mode, so the user shouldn't need to press anything. <?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:bal="http://schemas.microsoft.com/wix/BalExtension" xmlns:util="http:/

WiX: How to override “C:\Program Files (x86)” on x64 machine in WixUI_Advanced sequence?

依然范特西╮ 提交于 2019-12-20 10:36:17
问题 I'm using WixUI_Advanced sequence to allow users pick per-machine or per-user installation and change destination folder. My WiX project is intended to produce both x86 and x64 MSIs (I'm using WiX Tips and Tricks recommendations). I also keep the app installation folder in the registry for major upgrades (I use APPLICATIONFOLDER property and directory ID -- instead of INSTALLLOCATION -- per WixUI_Advanced requirements). There is a bug in WixUI_Advanced sequence that causes the Destination

How to rename the base file element name under component during hotfix using windows installer?

橙三吉。 提交于 2019-12-20 04:18:59
问题 In base version of my setup, by mistakenly i added the same name for two files like: <component id="x" GUID="guid value"> <file id="x" source="c:\files\x.dll" name="x.dll"> </component> <component id="y" GUID="another guid value"> <file id="y" source="c:\files\y.dll" name="x.dll"> </component> Now I want to change the name to "y.dll" for the file with id="y" using HotFix. If we change the name directly, the compiler error has been thrown "Component "y" has a changed keypath in the transform

How can I continue the installation from the point it left due to reboot?

旧时模样 提交于 2019-12-19 10:49:27
问题 How can I continue my installer after it reboots during installation of some package? Actually, I have build an installer package of a project using WiX bundles (having different packages to install in a chain). But when it installs Microsoft Windows Installer 4.5 (.msi) it goes to reboot the PC. After it reboots, I want my installation to continue after that. How can I do that? I guess we can do it with the use of the exit code, but I don't know how to use it in WiX bundles. 回答1: Yes, you

How to set or get all logs in a custom bootstrapper application

一个人想着一个人 提交于 2019-12-19 03:55:16
问题 In my custom Burn managed bootstrapper application, I want a way to set the default log directory of the installer so that customers can easily find the installation logs. If this can't be done, I would like a suitable way to copy the log files after installation. I tried unsuccessfully at setting the WixBundleLog variable in my setup project (i.e. Bundle.wxs) and in my managed bootstrapper application. Also, my bootstrapper applicaton is generic enough so that it my be used with a variety of

How to do major upgrades when using burn / WiX 3.6

人盡茶涼 提交于 2019-12-18 19:03:17
问题 I have one MSI setup like this: <Product Id="*" ... UpgradeCode="4207FF3B-5E0D-4311-9DFC-B41AA8DE2965" /> <MajorUpgrade DowngradeErrorMessage="Can't downgrade" /> It works as expected: Install product Recompile (effectively generating a new Id) Starting the new msi file brings up the change view and I can repair or uninstall the product. Good. But then comes burn. I have created the most simplistic Bundle one can thing of. I use the standard bootrapper and just add one single MsiPackage: