wix3.5

WIX - How to use RemoveFiles

余生颓废 提交于 2019-12-10 18:57:51
问题 We have multiple configuration files. Based on the environment selected, right file gets copied and the rest of the files should get deleted. I am using RemoveFile but that doesn't delete anything or may be I am not using it right. Can someone give an example to delete *.config from [INSTALLDIR] during the install, after all files have been copied. 回答1: In the example below RemoveFile is used to delete all icons ( .lnk extension) on uninstallation, also the parent folder will be removed by

Running CustomAction in wix as elevated user

泄露秘密 提交于 2019-12-10 17:47:57
问题 As I see it - WiX supports two kinds of CustomActions: Deferred - The user running this action is (by default) elevated, but it is not the user who ran the install (for example, LocalSystem, or some user like that). Immediate - The user running this action is (by default) not elevated - it's the user who ran the installer in the first place. I need something quite in the middle - I want the elevated form (UAC) of the user who ran the installer. The reason I need this is to access databases

WiX service installer and custom install events

守給你的承諾、 提交于 2019-12-10 15:40:04
问题 I have an existing (C# based) windows service that is derived from the Installer class and I currently use the MS supplied, command line InstallUtil to install it and uninstall it. This works fine and as part of my system I have attached event handlers to the AfterUninstallEventHandler and CommittedEventHandler events. In my case I simply use them to log messages to a custom event log - showing the install and uninstall dates and times and program versions. At the moment I am experimenting

Conditional choose between two exit dialog when using WIX's InstallDir UI extension

◇◆丶佛笑我妖孽 提交于 2019-12-10 15:28:14
问题 I would like to have two different exit dialogs based on the version of the VersionMsi property in order to utilize the hyperlink control for the exit dialog. More information here. I'm using a customized version of WIX's InstallDir_UI extension for my install process. Since I would like to optionally support the hyperlink control if available, I have created two different dialogs: <Dialog Id="NonHyperlinkExit" Width="370" Height="270" Title="!(loc.ExitDialog_Title)"> <Control Id="Finish"

WiX not rendering images correctly

风格不统一 提交于 2019-12-10 13:29:22
问题 I'm trying to write a custom WiX dialog which, as part of its workflow, shows an error image in response to certain conditions. However, WiX appears to be ignoring my dimensions and displaying as it feels fit. Here's my code: <Binary Id="WixUI_FailureImg" SourceFile="$(sys.SOURCEFILEDIR)..\Resources\Failure.ico" /> <Control Id="TestResult_Failure" Type="Icon" IconSize="16" X="15" Y="206" Width="16" Height="16" Text="WixUI_FailureImg"> <Condition Action="hide">LOGON_VALID = "1"</Condition>

Preventing Wix from installing All Features in my Product?

戏子无情 提交于 2019-12-10 11:49:41
问题 After installing a MSP patch, Windows Installer decides to install ALL Features provided in the initial MSI. How can i prevent MSP patch from installing All available Features? Features requests show like this: Installed: Absent Request: local Action : local Why is it requesting to install all? 回答1: I found out that the ADDLOCAL property was being set to all the Uninstalled Features. This caused a "Request: local" for each one. What i did to solve the issue was to use a small custom action

Wix heat for per machine installer

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 10:03:09
问题 I use the following command to create a wxs file for class registry, using heat : "C:\Program Files\Windows Installer XML v3.5\bin\heat.exe" file MyAddin.dll -ag -template fragment -out MyAddin.wxs The result is registry entries per user. In the following lines from the created wxs file you can see HKCU -- for HKEY_CURRENT_USER : <Class Id="{1AF5E2B9-CC02-368F-A879-1DF3F538D71A}" Context="InprocServer32" Description="AdminAddins.MyClass" ThreadingModel="both" ForeignServer="mscoree.dll">

WiX patching not updating files correctly

微笑、不失礼 提交于 2019-12-10 05:21:03
问题 My "admin-image" style WiX test patches are failing to update the existing installation correctly. When using msiexec /lx, I get the following information related to patching "fi_executable.exe": MSI (s) (88:E0) [12:32:41:716]: Baseline: Patch {E244BAC8-7E62-4406-889B-4B67A4EA7369} modified fi_executable.exe with full-file update. MSI (s) (88:E0) [12:32:41:716]: Baseline: First patch for fi_executable.exe, saving native info. MSI (s) (88:E0) [12:32:41:716]: Baseline: fi_executable.exe version

Add a folder to installer in wix not files?

旧时模样 提交于 2019-12-09 13:05:34
问题 My installer has to copy files into installdir... My application has around 2000 files and it is not possible for me to write the script to add each and every file to the installer. Is there any option in wix so that I can add all the files or the entire folder consisting the files at once? I am new to wix and i didnt find any option in any tutorial for this... Please do assist me and thanks in advance..... 回答1: Heat is the WiX harvest tool. You can run it on a directory to generate the

view MSI strings in binary

只愿长相守 提交于 2019-12-09 07:16:13
问题 I wanted to view the strings/text that are/is displayed on the UI when MSI is run in binary mode. basically i have the localized wxl files and the localized msi. wanted to compare the text. So my approach is to view the binary content of the strings to compare. Can anyone please suggest me what tools i can use? Using orca I am able to see the strings. But I would like to see the binary/hex value for those. Thanks a lot Best Regards, Marc 回答1: I don't know tools which export strings as binary