wix

Test for Windows Features

白昼怎懂夜的黑 提交于 2020-01-14 05:57:08
问题 I have an installer that runs a CustomAction which runs an embedded powershell script to test for the installed status of various required windows features. This works correctly but it is terribly slow to complete. Is there an alternative method to test for such features? I expect there to be something along the lines of registry keys for each feature and sub-feature but I have not found any documentation on the subject. 回答1: In one of the installation projects we used dism.exe to enable

What is the maximum length of a string?

喜你入骨 提交于 2020-01-13 10:53:28
问题 When I light my project, I get the following warning: C:\Users\me\wix\service.wxs(105) : warning LGHT1076 : ICE03: String overflow (greater than length permitted in column); Table: ServiceInstall, Column: Description, Key(s): ServiceRegister My Description is quite long, but before I set out to trim it down, what is the maximum length permitted? 回答1: The Description column in ServiceInstall table has the Formatted type, so technically it doesn't have a limit. You can use any length you want.

hide textboxes on checkbox checked in WiX

喜欢而已 提交于 2020-01-13 10:46:27
问题 Is it possible to hide textboxes on checkbox checked in WiX? 回答1: Thanks for your comments, the first comment helped me. It is done like this: <Control Id="LoginTextBox" Type="Edit" Text="CM2" Height="17" Width="200" X="150" Y="198" Property="Login"> <Condition Action="hide" >CreateDBUsers&lt;&gt;1</Condition> <Condition Action="show" >CreateDBUsers=1</Condition> </Control> 来源: https://stackoverflow.com/questions/5500786/hide-textboxes-on-checkbox-checked-in-wix

How do I require a value in a textbox in a Wix custom dialog?

一个人想着一个人 提交于 2020-01-13 08:22:08
问题 I have a Wix dialog with a control of type edit (which is a uri of a server the service depends on). How can I disable the Next button until a value has been input? 回答1: Here's an excerpt from some (old) production code we used to use: <Dialog Id="MyDlg_Error" Width="260" Height="85" NoMinimize="yes" Title="!(loc.MyDlg_Title)"> <Control Id="MyDlgSkipDesc" Type="Text" Width="194" X="48" Y="15" Height="30" Text="!(loc.MyDlg_ErrorMsg)" /> <Control Id="Ok" Type="PushButton" X="97" Y="57" Width=

Remove file and folders on uninstall

谁说我不能喝 提交于 2020-01-13 05:16:08
问题 I am learning WIX to build installer for my app but I am stuck with removing files. My question is how can I remove files and folders on uninstall. When I click on remove button, all the files and folders which the installer created doesn't remove on uninstall. 回答1: The answer is in the comments above but for future reference there are two things to check first when files are not being removed: Ensure that you do not have Component/@Guid="". In Specifically setting to an empty string (Guid=""

Removing a pinned app's icon from the Windows 7 taskbar on the application's major upgrade with WiX

孤人 提交于 2020-01-13 02:50:50
问题 After removing a WPF application which were installed with WiX, the app's icon, previously pinned to the Windows 7 taskbar, have not been removed automatically. It remains orphaned and needs to be removed manually. Is it a supposed, typical behaviour? The problem is that after a major upgrade of the application, the pinned icon remains inactive and needs to be manually deleted and repinned. It confuses some users. Is there a possibility to delete or reactivate the app's icon, pinned to the

How can I perform a custom action in WiX that only executes on install or uninstall?

蹲街弑〆低调 提交于 2020-01-12 12:53:48
问题 I have two custom actions, one of which I'd like to execute when my product is installed and the other when it is uninstalled. My custom action is currently called from a merge module after the "InstallFinalize", but this happens for both install and uninstall. I've tried adding the "NOT INSTALLED AND NOT UPGRADINGPRODUCTCODE" condition, but that gave me an error: Error 2762. Cannot write script record. Transaction not started. I've also tried attaching to other actions (for example,

Wix how to hide feature options

爱⌒轻易说出口 提交于 2020-01-12 03:41:23
问题 I'm using Wix 3.5 to build a MSI installer. I want to know if there is any way to hide some options from the "Features Custom Setup dialog" (in which you select from the Feature tree what to install). I want to only have the options for "Will be installed on local hard drive" and "Entire feature will be unavailable" Currently, apart from those two options i have these options: "Entire feature will be installed on local hard drive" "Will be installed to run from network" "Entire feature will

how to create custom UI for MSI in Wix?

若如初见. 提交于 2020-01-11 11:09:25
问题 I want to enhance my UI dialog of MSI using Wix. Can you point out me the best tool which provides an option to create such UI? Also, is there possible to show animated GIF image in MSI wizard 回答1: You want to look into "Embedded UI" (also sometimes called "External UI"). But once you go down this path, you have to provide the entire UI, and nothing in InstallUISequence gets run (like Costing). There is a sample Embedded UI in Wix that demos a WPF UI and a prgress bar that reacts to what is

how to create custom UI for MSI in Wix?

谁都会走 提交于 2020-01-11 11:09:11
问题 I want to enhance my UI dialog of MSI using Wix. Can you point out me the best tool which provides an option to create such UI? Also, is there possible to show animated GIF image in MSI wizard 回答1: You want to look into "Embedded UI" (also sometimes called "External UI"). But once you go down this path, you have to provide the entire UI, and nothing in InstallUISequence gets run (like Costing). There is a sample Embedded UI in Wix that demos a WPF UI and a prgress bar that reacts to what is