wix3.9

How can I stop an .exe on repair, update and delete in wix?

早过忘川 提交于 2019-12-11 02:38:45
问题 In my wix I use the following declaration: <ComponentGroup Id="BinComponents" Directory="BIN"> <Component Id="BinComponent" Guid="23D229D0-06EE-49f4-80B4-6D7136500721"> <File Id="MyProjectOutput" Name="MyProject.exe" Source="MyProject\bin\MyProject.exe"/> <ServiceControl Id="RemoveService" Stop="both" Remove="both" Name="MyProject.exe" Wait="yes" /> <!-- Stop running MyProject instances --> </Component> </ComponentGroup> My Repro: At first, I run my installation as usual. After the

Wix how to hide feature options (no subfeatures)

落花浮王杯 提交于 2019-12-10 20:12:21
问题 There is a similar question Edit context menu (selectiontree) in customize dialog? but the link in the accepted answer states: "You cannot remove Entire feature will be installed on local hard drive from the options. It is displayed only when there are subfeatures and enables installation of the subfeatures as well as the feature itself as opposed from Will be installed on local hard drive which installs only the selected features and does not affect subfeatures." However, I have no

Unresolved reference to symbol 'Property:NETFRAMEWORK45' in section 'Product:*'

情到浓时终转凉″ 提交于 2019-12-05 00:41:07
I am getting an error when building an app in TFS 2010. Unresolved reference to symbol 'Property:NETFRAMEWORK45' in section 'Product:*'. This is for Wix 3.9 The Wix package has NetFxExtension referenced. I can build the wix on my local machine fine, but when I go to build it through TFS I get the error. Can anyone help me figure this out? I have the below code that is causing the error. <PropertyRef Id="NETFRAMEWORK45"/> <Condition Message="This application requires .NET Framework 4.5. Please install the .NET Framework 4.5 then run this installer again."> <![CDATA[Installed OR NETFRAMEWORK45]]

How do I install drivers using Burn and DPInst after MSI installation?

痞子三分冷 提交于 2019-12-04 05:28:55
问题 I have a setup MSI for our application, and I also have signed FTDI drivers that need to be installed as well. I'd like for them to be installed with Burn rather than the WiX MSI to keep CustomActions out of the MSI (however, I've tried the CA route as well). I've tried putting the instruction in an ExePackage, but the SourceFile attribute asks for the file location during build, not runtime (e.g. <ExePackage Id="InstallDrivers" DisplayName="Installing Drivers" SourceFile="[InstallFolder

How do I install drivers using Burn and DPInst after MSI installation?

耗尽温柔 提交于 2019-12-02 07:23:39
I have a setup MSI for our application, and I also have signed FTDI drivers that need to be installed as well. I'd like for them to be installed with Burn rather than the WiX MSI to keep CustomActions out of the MSI (however, I've tried the CA route as well). I've tried putting the instruction in an ExePackage , but the SourceFile attribute asks for the file location during build, not runtime (e.g. <ExePackage Id="InstallDrivers" DisplayName="Installing Drivers" SourceFile="[InstallFolder]Drivers\DPInst.exe" InstallCommand="/SA /SW" PerMachine="yes" After="MyMSISetup" Description="Installing

How can I delete generated folders and files via Wix on uninstall?

核能气质少年 提交于 2019-12-01 06:20:30
After an installation, I have the following folder structure in the folder C:\Program Files (x86) : The Path to the folder generated is: C:\Program Files (x86)\CompanyName\AppName\generated The folder generated contains subfolders and files they will be created by the application during the runtime via C# code: var lPathToDir = Path.Combine(lFileService.GetFilePath, pSamAccountName); if (!Directory.Exists(lPathToDir)) { Directory.CreateDirectory(lPathToDir); } The variable lPathToDir could have the values: C:\Program Files (x86)\CompanyName\AppName\generated\user1 // or C:\Program Files (x86)

How can I delete generated folders and files via Wix on uninstall?

帅比萌擦擦* 提交于 2019-12-01 03:01:15
问题 After an installation, I have the following folder structure in the folder C:\Program Files (x86) : The Path to the folder generated is: C:\Program Files (x86)\CompanyName\AppName\generated The folder generated contains subfolders and files they will be created by the application during the runtime via C# code: var lPathToDir = Path.Combine(lFileService.GetFilePath, pSamAccountName); if (!Directory.Exists(lPathToDir)) { Directory.CreateDirectory(lPathToDir); } The variable lPathToDir could