wix

File Browse Dialog in Wix Installer

风流意气都作罢 提交于 2020-01-27 08:30:28
问题 I am using Wix Installer v3.9 to create a setup. I want to pop a File Browse dialog after the Installation gets completed. User can select multiple files from a directory. Then those file paths have to pass as command line arguments to an exe. How can I do this? The Wix BrowseDlg lets select directory only. Any help is appreciated. 回答1: As far as I know,wix toolset doesn`t have any file browse control. So I normally use c# Custom Action to do this job. Try this sample and customize it

WIX Installer: Prevent installation on Windows Server 2012 R2

五迷三道 提交于 2020-01-27 04:28:19
问题 I have a WIX project that must only be installed on Windows Server 2016 (or newer). Looking at Microsoft documentation, VersionNT for: Windows Server 2016 is 603, Windows Server 2012 is 602. The VersionNT for Windows Server 2012R2 has never been mentioned. When I use below line of code: <Condition Message="!(loc.RequireServer2016)"><![CDATA[INSTALLED OR (VersionNT >= 603)]]></Condition> it still lets me install on Windows Server 2012R2. How can I limit the installation of my software to only

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

Using a WiX property from a browse dialog

可紊 提交于 2020-01-25 19:03:07
问题 I'm developing a setup project using WiX, and I have the following problem. I get a directory path from the user using the Browse dialog, and I need to put this path in web.config . The problem is that in web.config that puts the value in "WWWMain" and not the path chosen by the user. This is my code: Product.wxs <Property Id="IISLOGDIRECTORY" Value="WWWMain" /> Dialog.wxs <Control Id="IISLogDirectoryEdit" Type="PathEdit" X="45" Y="100" Width="220" Height="18" Disabled="yes" Property=

Using a WiX property from a browse dialog

别等时光非礼了梦想. 提交于 2020-01-25 19:02:27
问题 I'm developing a setup project using WiX, and I have the following problem. I get a directory path from the user using the Browse dialog, and I need to put this path in web.config . The problem is that in web.config that puts the value in "WWWMain" and not the path chosen by the user. This is my code: Product.wxs <Property Id="IISLOGDIRECTORY" Value="WWWMain" /> Dialog.wxs <Control Id="IISLogDirectoryEdit" Type="PathEdit" X="45" Y="100" Width="220" Height="18" Disabled="yes" Property=

Wix Bootstrapper Update UI (XAML) from CustomAction

风流意气都作罢 提交于 2020-01-25 11:52:33
问题 I have implemented a custom bootstrapper application (based on this tutorial http://bryanpjohnston.com/2012/09/28/custom-wix-managed-bootstrapper-application/ to install several MSI-files . The UI consists of several XAML-files . I use the ExecuteMsiMessage-event to show the user the current actions: private void OnExecuteMsiMessage(object sender, ExecuteMsiMessageEventArgs e) { lock (this) { this.currentAction = (string)e.Data[0]; } } In the bootstrapper I use a CustomAction to update a VFP

Wix Toolset - Cannot create/install patch with fewer files/components than the original msi package

会有一股神秘感。 提交于 2020-01-25 07:31:26
问题 I have few locations on the field for which the initial .msi is same having about 2000 files (of multiple file types). However, I will have to send patches to few of the locations depending on the need so the patch should consist of fewer files (sometimes only 1 file as a fix). I am unable to create a patch (.msp) with just one single file or few files that I want to add/update but have to include all the original set of files as well. Can this be accomplished by any means? Please help !!

Install two mutually-exclusive files with the same name to the same directory

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-25 00:19:04
问题 My program deploys with a configuration option that I've chosen to expose as a feature. This option can be one of two values. Each configuration changes a set of settings files. They have different input file names (for the sake of example, let's call it option1-config20-lv80.xml), but should be installed to the configuration directory as config20-lv80.xml. Each option has a prefix that should be stripped like that, which also means only one of these options can be selected for install at a

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

CustomAction succeeds on development computer, fails on deployment computer

依然范特西╮ 提交于 2020-01-24 23:43:04
问题 I'm creating a WiX installer to install a program which connects to a database. To help with this, I've created a C dll which checks to see if a certain instance of SQL exists on a server: extern "C" UINT __stdcall DBConTest(MSIHANDLE hInstaller) { FILE *fp; fp = fopen("dbcontestdll.txt", "w"); _ConnectionPtr pCon; int iErrCode; HRESULT hr; UINT rc; //init COM fwprintf(fp, L"entering dbcontest\n"); if(FAILED(hr = CoInitializeEx(NULL,tagCOINIT::COINIT_APARTMENTTHREADED))) return ERROR_INVALID