wix3.5

Getting Location path Wix installation

你。 提交于 2020-01-17 07:54:11
问题 How to get location path if i want to access mylocation.txt file, this file currently is in E:drive. [CustomAction] public static ActionResult FillList(Session xiSession) { //Can i get store mylocation.txt into application root instead of E location string path = "Mylocation.txt"; // Open the file to read from. string[] readText = File.ReadAllLines(path); foreach (string s in readText) { //Console.WriteLine(s); FillComboBox(xiSession, s, s); } xiSession["COUNTRIES"] = "--Select Location--";

WiX EmbeddedChainer Examples?

半腔热情 提交于 2020-01-14 11:29:52
问题 With Windows Installer 4.5, there was a new table added for MsiEmbeddedChainer Table. This table was supposed to allow multiple-package installation. WiX added support for the table by creating the EmbeddedChainer element. I've read the wiki, but are there any examples on how to use the element? I'm attempting to install a JRE before my program. 回答1: Embedded chainers only work after the installer that contained them is installed, and can only install raw .msi files (.msi files with their own

WiX EmbeddedChainer Examples?

主宰稳场 提交于 2020-01-14 11:27:07
问题 With Windows Installer 4.5, there was a new table added for MsiEmbeddedChainer Table. This table was supposed to allow multiple-package installation. WiX added support for the table by creating the EmbeddedChainer element. I've read the wiki, but are there any examples on how to use the element? I'm attempting to install a JRE before my program. 回答1: Embedded chainers only work after the installer that contained them is installed, and can only install raw .msi files (.msi files with their own

Call command line after installation in Wix

喜夏-厌秋 提交于 2020-01-14 10:42:43
问题 I am using wix and want to call command line after installation. How can I do this? My command line is here "bcdedit.exe /set {current} nx AlwaysOff" // this makes dep off Yes, I've read about custom actions, but I didn't see any example with command line. P.S. bcdedit is usual exe in Win 7 and higher. P.S. currently I have next script and it does not work: Directory ="INSTALLLOCATION" ExeCommand ='echo hello> echo_test.txt' Execute ="immediate" Return ="asyncNoWait" /> 回答1: echo is not an

why two shortcuts after Major upgrade (migration)?

末鹿安然 提交于 2020-01-14 09:42:10
问题 We are using WiX for our windows installation. We were supporting major upgrade without any issues until recently. I was asked to change the shortcut name as we changed our product name. So i changed it. After a major upgrade, 2 shortcuts are being displayed instead of one. The beauty is while we are installing all the feature migrated in same machine ,it deleted the old shortcut properly it seems. But when we are installing one of the features (webserver feature ) in (webserver) machine, 2

Wix how to hide feature options

爱⌒轻易说出口 提交于 2020-01-12 03:41:23
问题 I'm using Wix 3.5 to build a MSI installer. I want to know if there is any way to hide some options from the "Features Custom Setup dialog" (in which you select from the Feature tree what to install). I want to only have the options for "Will be installed on local hard drive" and "Entire feature will be unavailable" Currently, apart from those two options i have these options: "Entire feature will be installed on local hard drive" "Will be installed to run from network" "Entire feature will

When migrating Wix 3.0 to Wix 4.0 getting error : WXCP0006 : The whitespace preceding this node is incorrect (WhitespacePrecedingNodeWrong)

爷,独闯天下 提交于 2020-01-06 01:35:48
问题 When I am migrating Wix 3.0 to Wix 4.0 using WixCOP I am getting the error WXCP0006 : The whitespace preceding this node is incorrect (WhitespacePrecedingNodeWrong) I am running the below command WixCop.exe -f E:\Test\Wix\src\UI*.wxs. When i run the same command to migrate from Wix 2.0 to Wix 3.0 i didn't get any errors. UPDATE : Thank you for the detailed information. 1) I run the below command multiple times and getting the same errors. WixCop.exe -f E:\Test\Wix\src\UI*.wxs. 2) I am seeing

How to extract and run a file during installation

心不动则不痛 提交于 2020-01-05 08:47:08
问题 I have created a Custom Action (DTF) with C#. In that CA, I would like to extract a file from the msi (declared as Binary in wix) and run it with some arguments. I haven't found any samples or help about that.. I have to execute a request on the msi, but I would like to have a sample. Thanks! 回答1: The DTF.chm has a sample how to update the Binary table. It's in "Working with MSI Databases" topic. And you can guess how to do the opposite operation. The code might look like this: using (var db

Wix Installer app won't install when run twice and uninstalls the app

梦想的初衷 提交于 2020-01-05 04:33:27
问题 I wrote a simple wix installer with gui, which installs well. But when I run the same .msi file a second time, it takes me through the normal installation process in the gui, but uninstalls my app at the end. Then if I run this same .msi file a third time, the installer still does through the installation gui normally, but ends up doing "uninstallation". I don't understand why it doesn't behave like every other installer and handle installation and uninstallation gracefully. here is part of

Running devenve.exe /setup after uninstall in Wix

[亡魂溺海] 提交于 2020-01-02 02:35:11
问题 I am working on an installer (MSI, Wix) for MVVM Light and have an issue. I need to run devenv.exe /setup on install and on uninstall to add/remove templates to the New Project menu. While we nailed the syntax on install, we are unable to find the correct syntax to run this on uninstall. This is what we have: <InstallExecuteSequence> <Custom Action='UpdateVS2010Templates' After='InstallFiles'>VS2010EXISTS</Custom> <Custom Action='UpdateVS2010TemplatesUninstall' After='RemoveFiles'>REMOVE =