[wix-users] Run Burn Boostrapper or the MBA Elevated

Huy Doan hdoan at vmware.com
Wed Jul 20 10:22:48 PDT 2016


I found a solution for people who want to run their BAs elevated. I tested it myself and it worked for me. Here it is.

i)	You will need to download the ResourceHacker as others may suggest.
ii) 	In the same folder with the .wixproj, create a manifest file, let's say "setup.manifest."
iii)	Copy and paste this content to the manifest file. Make sure it has neither white spaces nor newline characters
	<?xml version="1.0" encoding="UTF-8" standalone="yes"?><assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"><assemblyIdentity name="setup.exe" version="1.0.0.0" processorArchitecture="x86" type="win32"></assemblyIdentity><description>WiX Toolset Bootstrapper</description><dependency><dependentAssembly><assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="X86" publicKeyToken="6595b64144ccf1df" language="*"></assemblyIdentity></dependentAssembly></dependency><trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"><security><requestedPrivileges><requestedExecutionLevel level="requireAdministrator" uiAccess="false"></requestedExecutionLevel></requestedPrivileges></security></trustInfo><compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"><application><supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"></supportedOS><supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"></supportedOS><supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"></supportedOS><supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"></supportedOS><supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"></supportedOS></application></compatibility></assembly>
iv)	In the Post-Build Event Command Line, copy this line:
	"C:\Program Files (x86)\Resource Hacker\ResourceHacker.exe" -modify $(TargetPath),$(TargetPath),setup.manifest,24,1,1033
v)	Build it and see the result.
vi)	If you encounter error 9009, check all the file names, paths, etc.
vii)	Apology to the Burn creators for not building installers using the best practice.

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Huy Doan
Sent: Thursday, July 14, 2016 1:10 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: [wix-users] Run Burn Boostrapper or the MBA Elevated

Hello, I would like to run my MBA elevated so that I can launch some other process elevated without having the UAC prompt. From my understanding, either running the MBA or the Burn bootstrapper elevated will serve this purpose. I would like to know if there's a way to do so. I have tried to use the app.manifest file but it doesn't work for me.

Thanks,

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant https://urldefense.proofpoint.com/v2/url?u=http-3A__www.firegiant.com_&d=CwICAg&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=dIns6fQ--MkFJxuBFYmMeQ&m=CoPQUo2kM0j3OpHhju78XsMApJpMwTpF3aV-lPM0vS0&s=tain5WCr2F4A20jQ68hHQGAirVMf29WVzhtzkcGmkZA&e= 



More information about the wix-users mailing list