wix3.6

Wix UI customization: Adding InstallScopeDlg to WixUI_Minimal

淺唱寂寞╮ 提交于 2021-01-29 20:27:30
问题 I am trying to add the InstallScopeDlg to my installer using Wix. Because InstallScopeDlg is only available in WixUI_Advanced but I don't need the other dialogs from that UI, I decided to create my own UI by copying WixUI_Minimal code and renaming to WixUI_MyMinimal . Then I changed some of the sequences and button names so I could put InstallScopeDlg after the WelcomeEulaDlg and before ProgressDlg . I also copied the other required dialogs to my Wix project in visual studio. The interface is

WIX Installer UI: Tooltip for Icon/Bitmap

不羁岁月 提交于 2021-01-05 12:49:14
问题 I'm using WIX toolset to build an installer for my product. I would like to place the question mark icon next to Edit to show the tooltip with the explanation of why this value is needed. I've tried to do it with Icon, Bitmap, and Text, but hovering mouse on them doing nothing. My code is: <Control Id="EditToBeExplained" Type="Edit" X="40" Y="65" Width="220" Height="15" Property="IMPORTANT_PROPERTY" Text="{80}" ToolTip="Used for very important stuff."></Control> <Control Id="ExplanationIcon"

WIX Custom Action modify file in INSTALLFOLDER after InstallFinalize

不羁岁月 提交于 2021-01-04 06:36:52
问题 I have written a C# custom action for my WIX V3 Installer which is supposed to modify my appsettings.json in the INSTALLFOLDER . The action´s Execute-attribute is set to immediate and Impersonate="no",it is called after InstallFinalize but it encounters a problem within this action which is the missing admin permission. The action modifies appsettings.json in the INSTALLFOLDER which is Program File (x86). The custom action reads, deserializes, modifies, and serializes the data normally with

How can i identify the current logon user in Wix toolset?

拟墨画扇 提交于 2020-07-10 07:57:09
问题 I'm trying to build an installer with Wix and i have to put a file in the Startup folder. I already found out how to build the path to the startup folder but i can't find any variabile that can identify the current user. That's what i have done for now and it works but the part with the name of the user just creates a new directory with that name 回答1: Run on Startup Normally you would put a shortcut to a file in the startup folder, and not an actual file. You do so by refering to the built-in

Setting Wix shortcut with environment variable workingdirectory

时间秒杀一切 提交于 2020-02-05 04:42:07
问题 I'm trying to create a shortcut in WIX with teh following WorkingDirectory: <Shortcut Id="PowerShellShortcut" Name="$(var.PRODUCTNAME) Powershell Prompt" Description="$(var.PRODUCTNAME) Powershell Prompt" WorkingDirectory="%HOMEDRIVE%%HOMEPATH%" Target="[POWERSHELLEXE]" Arguments='-noexit -command "Import-Module [APPLICATIONFOLDER]Binaries\MA.dll | Out-Null"' /> When I try to build I get the following error: Error 1 The Shortcut/@WorkingDirectory attribute's value, '%HOMEDRIVE%%HOMEPATH%', is

Stop setup error inside Custom Action With WIX installer

主宰稳场 提交于 2020-01-30 02:58:31
问题 Can i able to stop the setup if any error display inside CustomAction. As i can able display error message inside custom Action and it's dispaly the error message but as soon as i click on ok button my next UI sequence form is appearing.How i will force user to finish button? Adding my source code: <Binary Id="BIN_CustomAction" SourceFile="CustomAction.CA.dll" /> <CustomAction Id="CA_CheckList" BinaryKey="BIN_CustomAction" DllEntry="CA_CheckList" Execute="immediate" Impersonate="yes" Return=

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--";

Getting Display Name from PackageID

时间秒杀一切 提交于 2020-01-10 08:28:53
问题 Looking through the source of the Wix Standard Bootstrapper application, it appears that each package has a DisplayName property: pPackage->sczDisplayName However, the BootstrapperCore dll that is used in the WiX Setup project does not have this property. Is there any way to extract this property from the bundles in managed code? 回答1: I ported the Bal code into C#, trying to make it work exactly like the C++ code: using System; using System.Collections.Generic; using System.IO; using System