wix3.5

WiX custom license file: setup shows links with < >

丶灬走出姿态 提交于 2019-12-23 10:17:10
问题 I created a WiX 3.5 setup with a custom license file by putting this into the .wxs file: <WixVariable Id="WixUILicenseRtf" Value="License.rtf" /> This works perfectly and the link is displayed when I run the created .msi file. (I'm using the WixUI_InstallDir Dialog Set) Now I want to put a hyperlink into the license file. I just put the link into the file by opening it in WordPad and pasting http://mylink.com (WordPad turns it into a hyperlink automatically). When I compile that in WiX, the

Wix installer blanks out registry setting when repairing

◇◆丶佛笑我妖孽 提交于 2019-12-23 08:28:38
问题 Currently I have customised the Wix_InstallDirDlg to enable the user to set a registry key on install. There is a custom dialog that is shown after both the InstallDirDlg and the MaintenanceTypeDlg so that it caters for both install and repair scenarios. The custom dialog has a single textbox that is linked to a property. This property has a registry search so that if the user repairs or upgrades the previous value is preserved and therefore shown in the custom dialog for the user to validate

WiX register assemblies for COM Interop

拜拜、爱过 提交于 2019-12-23 04:43:33
问题 I'm really struggling with WiX. I have .NET assemblies to install that require registration for COM Interop, AND they must be registered with another framework that requires calling a Register() method in a .NET assembly that's in the GAC. This registration method is a 'black box' with a hidden storage mechanism so I can't perform this operation declaratively. I get that the declaritive approach is best for COM registration, but I have two problems with using heat.exe: RegAsm works, but Heat

Wix, show custom status message in ProgressDlg

為{幸葍}努か 提交于 2019-12-23 03:32:27
问题 I'm trying to show a custom status message in default wix's ProgressDlg, following this answer: WiX: dynamically changing the status text during CustomAction So far, I got this code in my custom action: public class CustomActions { [CustomAction] public static ActionResult CustomAction1(Session session) { Debugger.Launch(); session.Log("Begin CustomAction1"); MessageTest(session); return ActionResult.Success; } private static void MessageTest(Session session) { for (int i = 0; i < 10; i++) {

WiX - Set Installdirectory dynamically over CustomAction [C#]

烈酒焚心 提交于 2019-12-22 20:57:01
问题 I'm about to create an installer, now i have to set the install-directory depending on the operation-system. My directory-tree: <Property Id="TARGETDIR" Value="C:\" /> <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="TARGETDIRECTORY" Name="MyApplication"> <Directory Id="CONFIG" Name="Config"> <Directory Id="FOLDER2" Name="Folder2" /> </Directory> </Directory> </Directory> if i set the TARGETDIRECTORY in the c#-custom-action, the targetdirectory gets set correct, but the CONFIG

WiX - Set Installdirectory dynamically over CustomAction [C#]

 ̄綄美尐妖づ 提交于 2019-12-22 20:53:09
问题 I'm about to create an installer, now i have to set the install-directory depending on the operation-system. My directory-tree: <Property Id="TARGETDIR" Value="C:\" /> <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="TARGETDIRECTORY" Name="MyApplication"> <Directory Id="CONFIG" Name="Config"> <Directory Id="FOLDER2" Name="Folder2" /> </Directory> </Directory> </Directory> if i set the TARGETDIRECTORY in the c#-custom-action, the targetdirectory gets set correct, but the CONFIG

CAQuietExec Command string must begin with quoted application name

无人久伴 提交于 2019-12-22 18:48:19
问题 Ok I believe I'm following the online example in Wix3.5 for doing quiet commands yet I cannot seem to get my command to be executed quoted. <Component Id="MapObjectsRuntime' Guid='*'> <File Id = 'Mo23rtEXE' Name='Mo23rt.exe' Source='....' KeyPath="yes"/> <Component> <Property Id = "QtExecCmdLine" Value="Mo23rt.exe" /> // I've tried single & double quotes, and double double quotes around Mo23. <CustomAction Id = "InstallMapObjects" BinaryKey="WixCA" DllEntry="CAQuietExec" Execute="immediate"

How do I get a shortname for a folder in WiX for a Windows Installer property?

只谈情不闲聊 提交于 2019-12-22 07:44:06
问题 I am trying to register an out-of-process COM file (.exe) through WiX after extracting the COM registration from regspy.exe, and am running into the problem that the registry key I need to write is: <RegistryValue Value="C:\PROGRA~1\COMMON~1\file.exe /Automation" Type="String" /> Now I would like to use the Windows Installer property [CommonFilesFolder] as not everyone installs to C:\ For an in-process (.dll) the long name is acceptable: <RegistryValue Value="[CommonFilesFolder]file.dll" Type

Wix HeatFile Task Locks Dll

二次信任 提交于 2019-12-22 05:17:30
问题 I'm using the Wix HeatFile task in a post build step <HeatFile OutputFile="Interop.dll.wxs" File="..\Interop\bin\x86\$(Configuration)\Interop.dll" DirectoryRefId="INSTALLDIR" ComponentGroupName="Interop_Dll" AutogenerateGuids="true" SuppressFragments="true" SuppressRootDirectory="true" ToolPath="$(WixToolPath)" PreprocessorVariable="var.InteropBinDir" /> Once I do a build, it locks my dll and subsequent builds fail with: Error 6 Unable to copy file "obj\x86\Debug\Interop.dll" to "bin\x86

How to execute Custom Action before RemoveExistingProducts with After=“InstallValidate” in WiX

倾然丶 夕夏残阳落幕 提交于 2019-12-21 02:42:52
问题 I have something like this: <InstallExecuteSequence> <RemoveExistingProducts After="InstallValidate"/> </InstallExecuteSequence> Since one of the uninstallation fails i need to execute a Custom Action to solve the problem BEFORE RemoveExistingProducts. Something in the lines of: <CustomAction Id="FixStuff" .. /> <InstallExecuteSequence> <Custom Action="FixStuff" Before="RemoveExistingProducts" /> <RemoveExistingProducts After="InstallValidate"/> </InstallExecuteSequence> This of course doesn