wix3.5

How to include fragments in Wix?

ε祈祈猫儿з 提交于 2019-12-18 19:06:15
问题 I have created a wixlib to share fragments in some wix projects. I can reference fragments which have Property in my main wix file with a PropertyRef, but how can I reference fragments where I want a bulk copy of its content?? For example I have a fragment which tests if .net framework is installed and I want to include that fragment in my main wix file in the project tag... Here's the fragment located in my wixlib that I want to include in several wix project: <Fragment Id="fm35">

How to create a .NET event log source using WiX

痞子三分冷 提交于 2019-12-17 19:15:58
问题 This is an intentional semi-duplicate of How do you create an event log source using WiX and WIX: Create EventSource using .NET message file. My first question is, does it really have to be so complicated? Isn't there some way to simply specify to WiX, "my program is a .Net program, and it needs to write to the event log - please do the necessary setup"? OK, assuming that isn't possible, I'd like to receive any recommendations for the necessary WiX statements to make it work, irrespective of

Windows service not getting installed on major upgrade-WIX

て烟熏妆下的殇ゞ 提交于 2019-12-13 21:03:37
问题 I have my service installed on the machine by an msi package(WIX). But when an major upgrade is done,service gets uninstalled but it doesnt get installed. This is my code: <Component Id="abc" Guid="{E64A8CDD-816F-4544-9ACD-A2E367F7758A}"> <File Id="EventTraceService.exe" Source="..\..\..\..\Products\abc.exe" Vital="yes" KeyPath ="yes"/> <File Source="..\..\..\..\Products\abc.exe.config" Vital="yes" /> <ServiceInstall Id="ServiceInstaller" Type="ownProcess" Vital="yes" Name="abc" DisplayName=

XSLT: Add Attribute to parent based on child attribute value containing a specific string

…衆ロ難τιáo~ 提交于 2019-12-13 19:19:43
问题 I am using an xslt transform on the harvested files file in a WIX installation. I am trying to mark all files in certain directories as permanent. In order to do this I have to do a contains to see if the folder name is in the source attribute. Below is one of the Nodes and then the transform. Any help would be greatly appreciated. <Component Id="cmpE4293ADC65367393D7A7630023A43F89" Directory="dirAFEA15D2A28EA2E6080FAD1EE1935E0A" Guid="{691DB98F-E5F4-4979-B2E5-63E14AF8A328}"> <File Id=

InstallScopeDlg in Custom Wix UI not working

ε祈祈猫儿з 提交于 2019-12-13 07:28:40
问题 Hi i have developed an setup with wix and now i need to ask users wether its AllUser or perUser.After a long research i found that InstallScopeDLg can make it possible.But I have added custom UI with my wix and i wasn't able to add InstallScopeDlg with this custom UI in WIX. <Publish Dialog="LicenseAgreementDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg">1</Publish> <Publish Dialog="LicenseAgreementDlg" Control="Next" Event="NewDialog" Value="ReadmeDlg" Order="2">LicenseAccepted = "1

Reference custom table in WiX fragment file

一个人想着一个人 提交于 2019-12-13 05:25:25
问题 I want to create a fragment file that will only contain a CustomTable in the file. This is easy enough, but I do not know how to link/include it back into the main product.wxs file. The fragment file is in the same project as the product file, and I have also tried adding an include tag for the file without success, and even putting the custom table into a WiX include file. Is there a way to do this? Or is it going to have to live in the product file? 回答1: The WiX toolset compiles and links

Installed program not visible to all users

戏子无情 提交于 2019-12-13 00:36:05
问题 I am using wix setup to install some package. When I install it, it appears in "Programs and Features" in control panel. It is visible to some users not all, and they can uninstall it as well. Problem is when the other user who can not see what I installed in control panel, when he installs something I can't see it. I can install the same package again and it won't complain that it already exists. 回答1: MSI packages are installed per-user or per-machine. Only per-machine products are

Simple WiX Custom Action in Custom UI Ends Prematurely with Windows 7

一个人想着一个人 提交于 2019-12-13 00:19:59
问题 My WiX installer UI is getting error while using the Custom Action. Interesting part is, the installer is working fine in Windows 10 but while launching it on Windows 7, installer is getting interrupted. From the installer logs, the error code is displayed 2896 . Googling further the error code, pointed me that it could be the mismatch of .net framework version. So I modified my CustomAction.config as follows : <startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v4

Wix - Create a mock installer that requires a reboot (returns 3010)

萝らか妹 提交于 2019-12-12 11:27:43
问题 I'm interested in creating a mock wix installer which can be used to simulate an installation that returns error code 3010. Is there a way to get a wix installation to easily return a specific error code. Would simply returning 3010 from a custom action work? or would that just be a failed custom action? Any suggestions welcome! Thanks Ben 回答1: Despite searching on SO before posting, I have subsequently found this answer. Is it possible to prompt for restart machine after installation using

MSI WIX: Creating minor upgrade patch by using 2 MSI's

你。 提交于 2019-12-12 11:25:15
问题 Is there any way to create minor upgrade (patch file i.e. .msp) or msi based on the old MSI installer and new MSi installer. we want to give the customer to minor upgraded patch (.msp or .msi0, which contains the changes only. 1) I have created (old) Test.msi, based on the 4 .wxs files. these 4 wxs files helps the installation wizard steps. Below are example. Welcome.wxs file : where we mentioned just welcome message with reference of our project image Main.wxs file : which contains the