wix3.7

WIX: Change install directory from c# class parameter?

拟墨画扇 提交于 2019-12-13 04:29:32
问题 I'm creating an install wizard and i have a page where you can choose where you want to install the program. In my c# class i have InstallPath that keeps the exact directory i want to install the program. By default it's c:\Program Files. In my WiX setup file i have that: <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder"> <Directory Id ="Folder" Name="SomeFolder"/> </Directory> </Directory> My problem is that i don't know how to tell this Wix setup to install in

Register an ole server exe during wix installion

喜欢而已 提交于 2019-12-12 20:36:38
问题 <CustomAction Id="RegisterEXE" Directory="INSTALLDIR" ExeCommand=""[INSTALLDIR]MyApp.exe" /Register" Execute="immediate" Return="ignore" /> <InstallExecuteSequence> <Custom Action='RegisterEXE' After='InstallFinalize' /> </InstallExecuteSequence> The exe should be registered as ole server. but it does not register. 回答1: The CustomAction Attibute Impersonate has default value of yes . You need to set it to no to run the executable with Elevated permission (The permission which installer have

Wix v3.7 - Error Writing Registry Values

不打扰是莪最后的温柔 提交于 2019-12-12 02:34:41
问题 I'm creating an installer using wix and I'm having problems writing to the registry. Here is my RegistryValue element: <Component Id="CMP_odbcreg" Guid="{115B002E-F4C9-48CD-8E1C-E8803B16AE69}"> <RegistryValue Id="rg_psql" Root="HKLM" Key="SOFTWARE\ODBC\ODBCINST.INI\ODBC Drivers" Name="PostgreSQL" Value="Installed" Type="string" KeyPath="yes" Action="write"/> </Component> Nothing is being written to the registry. This component is in my main install feature, so it should always write to the

WIX Change the default Install Path

人走茶凉 提交于 2019-12-12 02:33:44
问题 I am trying to change the default install path to User's Home directory/ProductName. Below is my code(its not the entire code) <Package InstallerVersion="200" Compressed="yes" InstallScope="perUser" Description="desc" Comments="View Violations in APD" InstallPrivileges="elevated"/> <Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER"/> <Property Id="ENVIRONMENT" Secure="yes" /> <UIRef Id="WixUI_InstallDir" /> <UIRef Id="WixUI_ErrorProgressText" /> <Fragment> <DirectoryRef Id="INSTALLFOLDER">

WiX 3.7: How to add or update a dialog during uninstall?

不想你离开。 提交于 2019-12-11 22:31:31
问题 I need to add a dialog box that would pop up during complete uninstall (not major upgrade) right after the confirmation ("Are you sure you want to uninstall this product?") dialog. This dialog would prompt the user to answer a question and based on the response, set up a property that would be used in the condition for the RemoveRegistryKey element (i.e. it will remove a registry key only if the user selects an option to delete the key). I have an idea how to add a dialog to the install

Close a systemtray app before uninstalling using wix

非 Y 不嫁゛ 提交于 2019-12-11 18:07:37
问题 I know similar questions have been asked in the past but I still haven't managed to find a solution to my problem as of yet. I've got a system tray app that's running and I want to close it before uninstall begins and displays the "FileInUse" dialog but whatever I'm doing doesn't appear to work. In order to close my system tray app, I need to create a file in the folder where it is installed. The app then deletes the file and closes itself. I'm getting the following issues depending on what I

WiX 3.7 IIS Setup

与世无争的帅哥 提交于 2019-12-11 15:05:01
问题 When running our installer, we have it configured to setup 3 websites in IIS, before the upgrade this worked as expected, even if the default website (or any site listening on the same port) was still present. If the website listening to Port 80 was already started, WiX would create the website from our installer, and just not start it (which is what I'd expect). Since upgrade to 3.7, however, what I've found is that the installer does not create the website if there is any other site

error LGHT0094 : The identifier 'CustomAction:WixUIPrintEula' could not be found

那年仲夏 提交于 2019-12-11 14:58:25
问题 When I run the below command from the command line for the WIx installer after migrated from version 2.0 to 4.0: E:\Code\PCPE\builder>ant -v -f Build.xml -Dlabel =.001 install I am getting the below error. [exec] E:\Code\EMR\Wix\src\ui\LicenseAgreementDlg.wxs(34) : error LGHT0094 : The identifier 'CustomAction:WixUIPrintEula' could not be found. Ensure you have typed the reference correctly and that all the necessary inputs are provided to the linker. [ant] Exiting E:\Code\EMR\builder

File missing after upgrade

99封情书 提交于 2019-12-11 11:16:42
问题 I have installation of version 1.1. I created upgrade with version 1.2. In both products I have 2 files: <Component Win64="yes" Id="cmpFILE1" Guid="*"> <File Id="filFILE1" KeyPath="yes" Source="$(var.BasePathCMP)\Performance.dll" /> </Component> <Component Win64="yes" Id="cmpFILE2" Guid="*"> <File Id="filFILE2" KeyPath="yes" Source="$(var.BasePathCMP)\LockLib.dll" /> </Component> During the upgrade LockLib.dll is removed and not being replaced. In clean installation of 1.2 it is present. What

Suppressing ARP Entry for WIX Burn Bundle

无人久伴 提交于 2019-12-11 11:10:58
问题 I am creating a WIX Bootstrapper using WIX Burn. The resultant bundle "exe" will be consumed by another application or rather a MetaInstaller. Now the application executes the bundle as a process with arguments but we don't want to make any entry in ARP for the bundle. Is there any way to achieve that? 回答1: Yes. In the Bundle element, set these attributes <Bundle DisableRemove="yes" DisableModify="yes" DisableRemove If the " DisableModify " attribute is also "yes" or "button" then the bundle