Our .msi calls the regit.exe which comes from Visual Studio SDK 2005 during 
installation. It is defined in custom action.
The code fragment is shown as follows:
<InstallExecuteSequence>
                <Custom Action='CmdRegIt' After='InstallFinalize'>NOT 
Installed</Custom>
                <Custom Action='CmdUnRegIt' 
Before='InstallInitialize'>Installed</Custom>
</InstallExecuteSequence>
<CustomAction Id='CmdRegIt' FileKey='regit.exe' 
ExeCommand='/root:Software\Microsoft\VisualStudio\8.0 
"[SEFolder]Bin\bservice.dll' Return='check' />
<CustomAction Id='CmdUnRegIt' FileKey='regit.exe' ExeCommand='/u 
/root:Software\Microsoft\VisualStudio\8.0 "[SEFolder]bin\bservice.dll"' 
Return='check' />

The problem is that when running the .msi in Vista, calling the regit.exe in 
custom action doesn't register the COM component (bservice.dll) successfully. 
So we need a way in Wix to let the .msi run in "elevated mode"----to run in 
Administrator privilege.

Thanks,
Xin
From: Bob Arnson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 27, 2007 12:07 AM
To: Xin Liu (Person Consulting)
Cc: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] How to force the .msi "run as Administrator"

Xin Liu (Person Consulting) wrote:
We have a .msi file built from Wix toolset which calls one of the VS SDK tool.

Please be more explicit. Which tool? As a custom action or a build-time tool? 
Can you show a code fragment?



--

sig://boB

http://bobs.org
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to