wix3.7

Problem with Wix uninstall using CustomAction

戏子无情 提交于 2021-02-16 20:24:31
问题 I've created a very simple MSI which copies some files to the ProgramFiles directory and while installing calling to custom actions found in a binary written in C#. While installing, I can easily call any custom action I want. For example I've created an installation step where the user should enter a license, and after confirming the license it is checked against a server using logic written inside C# custom action. But, when uninstalling, every time I add a custom action (even if it does

Problem with Wix uninstall using CustomAction

本秂侑毒 提交于 2021-02-16 20:24:08
问题 I've created a very simple MSI which copies some files to the ProgramFiles directory and while installing calling to custom actions found in a binary written in C#. While installing, I can easily call any custom action I want. For example I've created an installation step where the user should enter a license, and after confirming the license it is checked against a server using logic written inside C# custom action. But, when uninstalling, every time I add a custom action (even if it does

How to hide the value of customactiondata in logs of MSI?

六眼飞鱼酱① 提交于 2021-02-10 17:44:22
问题 I have a deferred custom action which fetches a property using Customactiondata, it contains the value of password that should not be displayed in the log . Packaging tool used: WIX Custom action written in C++ I have tried the below workarounds nothing seems to be working. Marked the property and CA name as hidden Hidetarget = yes in CA definition what needs to be done? Code: <CustomAction Id="CASETLOGINFORRCSERVICES" Return="check" HideTarget="yes" Execute="deferred" Impersonate="no"

Resume installing after restart in WiX

放肆的年华 提交于 2020-08-23 08:02:28
问题 I'm trying to create a bootstrap application using WixStandardBootstrapperApplication. It does everything I need it to do really well except handling a restart. I need to install a group of EXE files. Only the first one is .NET 4.5 and that requires a restart. I would delay the restart, but I can't because one of the other programs is dependent on it. I've tried using an exit code to forcereboot, but when the computer starts back up the bootstrapper gets stuck at that exit code every time,

Install multiple exe with wix toolset

旧街凉风 提交于 2020-06-16 17:59:26
问题 I have three products which have their installers in .exe files. Let us say the installers for the three three products are Product_A.exe Product_B.exe Product_C.exe I want to create a msi file using wix toolset which will install these three exe installers. What is the best way to do this? I am new to these so please help. Any example would be highly appreciated I also plan to uninstall these products once I uninstall my msi. Thanks in advance for any help 回答1: Tools : There are a number of

Uninstallation condition for WIX

北慕城南 提交于 2020-01-25 20:19:07
问题 For installation, we have a property " Install " which we can use in conditions to execute if its undergoing installation. Do we have a similar property for Uninstallation ? 回答1: You can use REMOVE~="ALL" to detect a full uninstallation . An uninstall performed as part of a major upgrade can be detected via the UPGRADINGPRODUCTCODE property. Here is some further advice and some help resources : here is a "MSI Conditions Cheat Sheet" to help you get the complicated MSI conditions for custom

WixUI_Mondo and WixUI_InstallDir

被刻印的时光 ゝ 提交于 2020-01-25 00:05:06
问题 Is it possible to combine WixUI_Mondo and WixUI_InstallDir? I need a dialog where the user is able to change the destination folder then proceed to selecting instalation type. Please help, I am new to Wix toolset. Thanks! 回答1: Mondo : I might be missing something essential you need here, but the Mondo dialog set does have a dialog like that - 3rd in sequence, select "Custom" . Maybe this is all you need?: For the Browse... button to be work (not be grayed out) you must set the feature

Getting Location path Wix installation

你。 提交于 2020-01-17 07:54:11
问题 How to get location path if i want to access mylocation.txt file, this file currently is in E:drive. [CustomAction] public static ActionResult FillList(Session xiSession) { //Can i get store mylocation.txt into application root instead of E location string path = "Mylocation.txt"; // Open the file to read from. string[] readText = File.ReadAllLines(path); foreach (string s in readText) { //Console.WriteLine(s); FillComboBox(xiSession, s, s); } xiSession["COUNTRIES"] = "--Select Location--";

Wix: Write register entries under HKCU\Software\Classes\Wow6432Node

主宰稳场 提交于 2020-01-16 14:07:03
问题 I have a super simple installer to test if a installer can write register entries under HKCU\Software\Classes\Wow6432Node (the msi is target x86 and I'm testing it on a Win7 x64 machine). The problem is: it just does not want to write anything under Wow6432Node at all. Following is the code: <?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Product Id="f671ee4d-dd0a-4f7f-a4d1-1d181d2f3002" Name="TestWow" Language="1033" Version="1.0.0.0"

Merging two msi using wix toolset

久未见 提交于 2020-01-15 03:50:26
问题 How to merge two msi using wixedit, presently they are having 4.0 version of wixtoolset. In the documentation they have mentioned that merging two msi in windows is possible using bundles and chain tags. But whenver I try to do it, it always show some error. Please let me know any example of wix tool set to merge two msi using bundle and chain tags. I am following Bootstrapper method as provided in pdf of wix 3.6. To bundle two msi using chain element. 回答1: <?xml version="1.0" encoding="utf-8