wix3

How do you use WiX to deploy VSTO 3.0 addins?

二次信任 提交于 2019-12-02 14:43:23
I want to deploy a VSTO 3 Application Level Word 2007 addin that I've written with Visual Studio 2008. I see that WiX has an extension named WixOfficeExtension that looks like it might have this functionality, but I can't find any documentation for it, and I can't discern it's purpose from the source code. Has anyone attempted this before, and were you able to pull it off successfully? This is the code I ended up using. I basically ported the examples from MSDN to use WiX. Note: This specific solution is only for a Word 2007 addin, but the case for Excel is very similar. Simply modify the

Failed to open XML file - Wix unable to update appsettings.json

别来无恙 提交于 2019-12-02 12:20:12
I am using Wix to create MSI installers. My requirement is to pass parameters while installing msi from the command line and update' the appsettings.json` with the values passed. To achieve this, I have added below property and component. <Property Id="ApplicationLog.pathFormat" /> <Component Id="config" Guid="*"> <File Id="appconfig" Source="$(var.BasePath)\appsettings.json" KeyPath="yes" Vital="yes"/> <util:XmlFile Id="_pathFormat_" File="$(var.BasePath)\appsettings.json" Action="setValue" Name="pathFormat" Value="[pathFormat]" ElementPath="/ApplicationLog/Serilog/WriteTo/Args/" Sequence='1'

WIX Toolset include multiple files

江枫思渺然 提交于 2019-12-02 08:13:21
We have a file structure with multiple files and folders. I a ma total newb to the wix toolset and not quite sure, how to include all of these files and keep the directory structure. I know, that I can add files like this: <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER"> <Component Id="ProductComponent"> <File Id="FILE_InstallMeTXT" Source="InstallMe.txt" KeyPath="yes"/> </Component> </ComponentGroup> But do I have to do this for every single file (we have > 200 files). Kind regards! Take a look at the heat tool here . For first time setup this does a great job of getting all

Wix: how to uninstall previously installed application that is installed using different installer

点点圈 提交于 2019-12-02 07:25:59
Suppose that you have an installer (not a wix installer) that you downloaded from somewhere. How can you know UpgradeCode of that installer so that you can fill it in in the UpgradeCode section in the new installer that you prepare? Can I learn it from registry somehow? So the question is basically, how to know the UpgradeCode of a program that is installed in the computer. Actually my problem is that my product has been installed with another installer and I am now trying to move it to wix installer. However, I can't find upgrade code in previous installer and I want to find it from installed

Set Wix property only if certain condition is met

霸气de小男生 提交于 2019-12-01 18:13:47
What I would like to do is this: <Property Id="LICENSEKEYPATH"> REMOVE~="ALL" AND NOT UPGRADINGPRODUCTCODE <DirectorySearch Id="ProgramDataSearch" AssignToProperty="yes" Depth="4" Path="[#ProductDirInAppData]"> <FileSearch Id="LicenseFileSearch" Name="lic-conf.enp"/> </DirectorySearch> </Property> When my application is being uninstalled, only then, do I want to search for the license file and get its path. Currently, although the code doesnt give any errors, it still searches for the license file path even when I am installing the file. Because of this, the setup gets delayed by a long time.

wix service dependencies

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 17:56:22
My product has several features including two services. Let's call them ServiceA and ServiceB. Both of these service features are optional. However if both ServiceA and ServiceB is selected during install I want to create a service dependency between them so that ServiceB will depend on ServiceA (in other words ServiceB must always start before ServiceA is launched). How do I achieve this in WIX 3.6? Natalie Carr <ServiceInstall Id="ServiceA" DisplayName="ServiceA" Name="ServiceA" Account="LocalSystem" Start="auto" ErrorControl="normal" Type="ownProcess"> <ServiceDependency Id="ServiceB"/> <

wix service dependencies

a 夏天 提交于 2019-12-01 17:55:40
问题 My product has several features including two services. Let's call them ServiceA and ServiceB. Both of these service features are optional. However if both ServiceA and ServiceB is selected during install I want to create a service dependency between them so that ServiceB will depend on ServiceA (in other words ServiceB must always start before ServiceA is launched). How do I achieve this in WIX 3.6? 回答1: <ServiceInstall Id="ServiceA" DisplayName="ServiceA" Name="ServiceA" Account=

WiX3 major upgrade not working

不问归期 提交于 2019-12-01 17:30:59
问题 I have a major upgrade that I am trying to do, but it just doesn't work. It simply installs the new program along side the old one. They are in different directories (as I changed the directory structure with the new version) so there are no conflicts, but the old one NEEDS to be erased in order for my product to function properly. <Property Id="UPGRADE_NEEDED" Secure="yes" /> <Property Id="SAME_OR_NEWER_VERSION" Secure="yes" /> <InstallExecuteSequence> <RemoveExistingProducts After=

Registry issue when upgrading

自闭症网瘾萝莉.ら 提交于 2019-12-01 12:34:51
问题 The old version of the setup was created with InstallScope="PerMachine" . The new version is intended to have InstallScope="PerUser" ; it also needs to use the same registry keys as the old version creates. The problem is that whatever values are stored under these registry keys during the upgrade will be overwritten at the end with the initial values stored by the old version. Even deleting these keys manually before the installation will make them reappear (with the wrong values) after the

WiX Toolset: Creating a simple WiX project breaks in VS2017: The “CreateProjectReferenceDefineConstants” task was not found

谁说我不能喝 提交于 2019-12-01 10:57:12
问题 I'm new to using Wix, and tried to make a simple installation for my App. I did the following: Downloaded and installed the Extension for Visual Studio 2017 from here. Download and installed WiX Toolset v3.11.1 Created a Setup Project for WiX v3 Added a reference to my App in the project, and added the block in Product.wxs : <Component Id="ProductComponent"> <File Source="$(var.MyApplication.TargetPath)" /> </Component> When I compile the Wix setup project, I get the following error: The