wix

How do I install to LocalAppData folder?

删除回忆录丶 提交于 2019-12-22 02:58:27
问题 Following directory setting works perfectly for me. <Directory Id='TARGETDIR' Name='SourceDir'> <Directory Id="ProgramFilesFolder"> <Directory Id='INSTALLDIR' Name='MyApp'/> </Directory> </Directory> However, when I tried changing "ProgramFilesFolder" to " LocalAppDataFolder ", I got lots of error when using light to link and generate my msi: D:\runGroup.wxs(53) : error LGHT0204: ICE38: Component cmpA5561BE36D80EB58252E69DDA0C2FF8C installs to user profile. It must use a registry key under

WIX Burn Bootstrapper not asking for admin rights for my MSI

ε祈祈猫儿з 提交于 2019-12-22 02:41:13
问题 I created an MSI with WIX that needs elevated permissions to work correctly. In the MSI Project, I specified this via <Package [...] InstallPrivileges="elevated" /> Now I included this MSI in a custom bootsrapper project, based on WixWPF Bootstrapper. As I understand it, the bootstrapper itself should not alter the machine state and thus should not require elevated privileges. I would now expect the Bootstrapper to automatically launch the integrated MSI with elevated priviliges, prompting

WIX Burn Bootstrapper not asking for admin rights for my MSI

流过昼夜 提交于 2019-12-22 02:41:03
问题 I created an MSI with WIX that needs elevated permissions to work correctly. In the MSI Project, I specified this via <Package [...] InstallPrivileges="elevated" /> Now I included this MSI in a custom bootsrapper project, based on WixWPF Bootstrapper. As I understand it, the bootstrapper itself should not alter the machine state and thus should not require elevated privileges. I would now expect the Bootstrapper to automatically launch the integrated MSI with elevated priviliges, prompting

How does uninstall process work in windows?

戏子无情 提交于 2019-12-22 01:32:49
问题 When I'm uninstalling a program from control panel how does it know what components and features are installed on the machine? If I have the .msi file I can use ORCA to take a look inside windows installer database and see all the actions and components in the package. But if user have deleted .msi file then how does windows installer knows about installed features? 回答1: During the installation, a copy of the MSI ( smaller because it's been stripped of media ) is cached in the C:\Windows

Can I use msilib or other Python libraries to extract one file from an .msi file?

蹲街弑〆低调 提交于 2019-12-22 01:31:26
问题 What I really want to do is determine whether a particular file in the MSI exists and contains a particular string. My current idea is to run: db = msilib.OpenDatabase('c:\Temp\myfile.msi',1) query = "select * from File" view = db.OpenView(query) view.Execute(None) cur_record = view.Fetch() # do this until I get the record I want print cur_record.GetString(3) # do stuff with this value And then if it's there, extract all the files using msiexec /a c:\Temp\myfile.msi /qn TARGETDIR=c:\foo and

WIX 3.8 msiexec.exe /quiet Error 1603

我的梦境 提交于 2019-12-22 00:23:21
问题 I am using WIX 3.8, Windows 8 Pro, Visual Studio 2013, and I am doing a Silent Installation. When I run with no /quiet arguments, Ir runs OK. But when I put "/quiet", nothin happend. There is some problems with /qn Arguments... Any other Arguments Runs OK. string arg = " SetupWIX.msi"; Process p = new Process(); p.StartInfo.FileName = "msiexec.exe"; p.StartInfo.CreateNoWindow = true; p.StartInfo.Arguments = "/i " + arg +" /quiet /l*v log.txt"; p.Start(); And it give error 3. MainEngineThread

Cancel Installation and Rollback using wix burn Bootstrapper UI

十年热恋 提交于 2019-12-21 21:35:00
问题 I am using Wix 3.7. I am trying to create wix burn bootstrapper that install my msi. I have added two buttons in my BA UI for Install and Cancel. i am using C# for BA UI design. I have added the follwoing code in Install button for launch installation. MySampleBA.Model.Engine.Detect(); MySampleBA.hwnd = IntPtr.Zero; MySampleBA.Model.Bootstrapper.PlanBegin += this.PlanBegin; MySampleBA.Model.Bootstrapper.DetectPackageComplete += this.DetectedPackage; MySampleBA.Model.Bootstrapper

How do I change ROOTDRIVE with a CustomAction?

对着背影说爱祢 提交于 2019-12-21 21:34:30
问题 Normally, you can change the default root drive to install your application to using: <Property Id="ROOTDRIVE">D:\</Property> But now, I wish to change it using a CustomAction that gets called on a next button click in my install wizard: [CustomAction] public static ActionResult SetFullInstallRootDrive(Session session) { session["ROOTDRIVE"] = session["DRIVE_NAMES"].ToString(); } DRIVE_NAMES represents the drive selected, using a combo box, and ROOTDRIVE gets properly set to either whatever

Can we localize WIX msi and bundle using language selection UI at runtime?

本小妞迷上赌 提交于 2019-12-21 20:36:57
问题 We have an MSI and Bundle created in Wix. I need to localize both of these in such a way that language selection GUI will be popped-up and language can be selected by the user at run time. Would be really appreciated if anybody can help me on this. For MSI, i am working on creating another bootstapper for bringing-up with language selection combobox and invoke the tranfomed MSI with the required transform(using command shell). I am still not sure about the feasibilty of this approach. I am

How can I register a COM-Object with Windows Installer XML

孤街醉人 提交于 2019-12-21 20:36:08
问题 I have got the following Problem: In my WiX Setup I need to register a COM Object. I have got a ".tlb" File and a ".dll" File (in my example: XYCommon.dll and a XYCommon.tlb) Now I want to make the Setup to Register the TLB. How Can I do this in Windows Installer XML ? My first try was to work with a CustomAction and Open "Regasm.exe" and Register it - but I dont know how I can bring the Regasm.exe to Register the XYCommon.tlb Any Help ? Thanks 回答1: Use the WiX harvester utility called Heat.