wix

Getting CustomActionData from C++

拥有回忆 提交于 2019-12-25 05:43:40
问题 I have a Wix file where I am creating a Deferred Custom Action . I have written a C# program, which is, for now, looping over the CustomActionData and printing the Key and Values . Consider the snippet given below: <Binary Id="myAction" SourceFile="..\Type51CA\bin\Release\Type51CA.CA.dll" /> <CustomAction Id="CustomAction1" Property="CustomAction2" Value="SomePropertyOne=[INSTALLFOLDER];SomePropertyTwo=[IPADDRESS];" /> <CustomAction Id="CustomAction2" BinaryKey="myAction" DllEntry=

Wix installer registry keys not getting created in Wow64 node

江枫思渺然 提交于 2019-12-25 05:25:09
问题 I have a 64 bit machine in which I need to install a Windows service. This service was created using Apache procrun, therefore I need to create certain registry keys. These should go into the wow64 node as I expect them to, but they get created in HKLM/SOFTWARES instread of HKLM/SOFTWARE/Wow64 node. Below is my Product.wxs file. <?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Product Id="*" Name="DummyInstaller" Language="1033" Version="1.0.0.0"

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

Unable to delete deployed file during installation with WIX installer

廉价感情. 提交于 2019-12-25 05:18:38
问题 In our WIX installer project, we need to generate a new file, let's call it FileB, based on a deployed file, called FileA in a managed custom action function. In another word, in the component declaration, I declare the FileA. While in a custom action (which happens at commit phase), I need to generate FileB based on FileA. After that, since FileA is no use anymore, I want to delete it in the same custom action. And here comes the problem: with the default installation folder, which is

WiX: application installed can only work when runas administrator in windows7

守給你的承諾、 提交于 2019-12-25 04:35:11
问题 I am a beginner of Wix, I make a msi, and install it in windows7,but the application only work correctly when runas administrator. Can somebody give me some suggest? 回答1: You need to generate a verbose log file (see the command line options topic in the MSI SDK) and see what the actual install error is. 回答2: Does it run on Vista? For installation it is common to be run by administrator - the application itself should be able to run without admin privileges and this requires dedicated work. 来源

How to create a login to a SQL Server instance?

自古美人都是妖i 提交于 2019-12-25 04:22:47
问题 I have made a bootstrapper-project with WiX 3.8. As a prerequisite SQL Server Express 2012 is installed, setting "SQLExpress" as name of the new SQL Server instance. Then in the MSI i want to create a new SQL user login. I tried this with the User-element, but it doesn't seem to work. When i take a look to the logins in the SQL Server Management tool, i can't see my new user, but the log from my MSI tells me, that he was created. Is there something wrong with my version of the User-element or

Unable to launch .exe in Wix setup

走远了吗. 提交于 2019-12-25 04:17:14
问题 I have a C# application with a wix setup. I have customized the ExitDialog with 2 checkboxes (following this), on used to run my application, the other one to run an optional install (for uEye camera). The first checkbox is : <!-- Set checkbox for launch my application --> <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Launch $(var.product)"/> <CustomAction Id="SetExecVR3" Property="WixShellExecTarget" Value="[#MyApplication.exe]"/> <CustomAction Id="DoExec" BinaryKey="WixCA"

Uninstall error if original install DVD is not in drive

喜欢而已 提交于 2019-12-25 03:18:15
问题 When trying to remove our application in Add/Remove Programs, the following error pops up, and the application fails to uninstall: Error 'mFileBagIDE.dll' is not a valid short file name. The curious thing is that you only get this error if the original installation DVD is not in the drive. If the DVD is in the drive, the uninstall works perfectly. Here's the real kicker: we did not catch this bug until after our application was already widely deployed, and our clients' situations are such

wix patch PYRO0103 : The system cannot find the file

血红的双手。 提交于 2019-12-25 03:09:01
问题 I have tried building a patch for my application. I need to replace two files, nothing more. Using a bootstrapper got the files in place, but when uninstalling the bootstrapper the files was gone and not replaced by the old ones(of course). I added Keypath=yes" to my application package(both old and new one) in hope of that would get my problem solved, but no. I have been following this tutorial: http://wix.tramontana.co.hu/tutorial/upgrades-and-modularization/patchwork Here is my problem

Is this a Bug in Wix Bootstrapper command line?

时光怂恿深爱的人放手 提交于 2019-12-25 03:07:55
问题 I already posted a related problem here: Wix: Managed BA command line not effective, which is about command line passed during upgrade. Now I tried to explore, how it interpret the command line. Here is my run method to do so: protected override void Run() { string cmdOptions = string.Empty; this.Engine.Log(LogLevel.Verbose, "Launching custom TestBA UX"); Debug.WriteLine("Command.Display: {0} Command.Action: {1}", this.Command.Display.ToString(), this.Command.Action.ToString()); Environment