wix3.6

Getting Display Name from PackageID

不打扰是莪最后的温柔 提交于 2020-01-10 08:28:07
问题 Looking through the source of the Wix Standard Bootstrapper application, it appears that each package has a DisplayName property: pPackage->sczDisplayName However, the BootstrapperCore dll that is used in the WiX Setup project does not have this property. Is there any way to extract this property from the bundles in managed code? 回答1: I ported the Bal code into C#, trying to make it work exactly like the C++ code: using System; using System.Collections.Generic; using System.IO; using System

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

VS2012 and Wix 3.6 - Installing .Net 4.5 with my application

二次信任 提交于 2020-01-04 07:17:31
问题 I am very new to the installer world. I have successfully made an .msi for my application and it is building with short-cuts and also uninstalls correctly. My next goal is to package .Net 4.5 with the installer and have it be installed prior to the installation of my application. I also have a third party application that needs to be installed. It is packaged as an msi. From what I can gather I need to develop a Bootstraper solution to have these applications install in sequence. Can anyone

WiX: how to pack exe or dll to use only during installation

妖精的绣舞 提交于 2019-12-25 07:19:43
问题 I need to include a dll/exe in the resulting MSI (created through a WiX project), but I do not want to deploy them during installation: I only want to use them in some CustomAction my purpose is to include an existing exe/dll and call it during installation from wxs code (not from a CustomAction dll). Is it possible to include files which are not deployed during installation? I mean, only pack them inside the resulting MSI, and call them for some task while they are unpacked inside %temp%

Writing Data to MSI Database

 ̄綄美尐妖づ 提交于 2019-12-25 05:23:11
问题 I need to be able to update a binary table and i do it like so: View v = session.Database.OpenView("SELECT `Data` FROM `Binary` WHERE `Name` = '{0}'", binaryKeyName); v.Execute(); var IsReadOnly = session.Database.IsReadOnly; Record r = v.Fetch(); StreamReader reader = new StreamReader(r.GetStream("Data")); string text = reader.ReadToEnd(); text = text.Replace(@"Test12345", "TTTest"); byte[] byteArray = Encoding.ASCII.GetBytes(text); MemoryStream stream = new MemoryStream(byteArray); Once I

WiX XmlConfig: Elements not removed on uninstall

自闭症网瘾萝莉.ら 提交于 2019-12-24 07:55:15
问题 I'm having difficulty removing on uninstall the elements that I add to an XML file on install. Here's my setup: The XML file already exists on the machine before install and can't be remove after install because this installer is for an "add-in" to an application. I do add some elements to the XML file on install, but only want to remove some of those elements on uninstall. I've been searching online for answers and can't find any that fit my situation. I've tried copying the syntax of this

Wix Installer - Resize fatal error dialog or use custom dialog in place of fatal error dialog

妖精的绣舞 提交于 2019-12-23 17:02:36
问题 In WiX installer - How can I customize or override Fatal Error Dialog ()? I would like to show a detailed error message instead of default setup failure message. Options: Is it possible to resize fatal error dialog in WiX? If not, how can I use my own dialog in place of fatal error dialog? 回答1: To resize or otherwise modify any existing dialog in essence you need to replace it. Luckily you can download original sources from git repository and modify them as you like. Firstly to be able to

WIX Installer for a INF based printer Driver

你说的曾经没有我的故事 提交于 2019-12-23 09:31:29
问题 I am trying to make a installer for a printer driver, Using WIX I have some Dlls a *.cat file a *.gdp file an *.inf file I was thinking about using the INF to deploy the driver but don't know how to implement it. I sow this Question too,(possibly duplicates) but as a beginner i could't completely understand how to do it. Am i need to copy those DLLs and other files to the relevant folders by my self and Write Registry. Or is their any easy way to use INF file to do the task by WIX's engine?

Wix non-admin installer tutorial?

末鹿安然 提交于 2019-12-23 07:26:54
问题 We're evaluating if the Wix installer will be suitable for us in a project. The end user need to be able to install our software without admin rights. The installer needs to work with at least XP/Vista/Windows 7 without admin rights or UAC. I have a hard time finding good documentation and tutorials how this can be done. I have found a couple of old ones but they don't compile with candle/light with the latest Wix version. Does anyone have good examples or tutorials that might help? Thanks in

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