Re: [WiX-users] Running admin command on Vista after InstallFinalize

2008-02-11 Thread Bob Arnson
RW wrote:
 Is there anyway from WiX to run a command with admin privileges on Vista
 after InstallFinalize?
   

No. MSI doesn't support it; custom actions that require elevation must 
be transactional.

-- 
sig://boB
http://joyofsetup.com/



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Running admin command on Vista after InstallFinalize

2008-02-10 Thread RW
Hi,

Is there anyway from WiX to run a command with admin privileges on Vista
after InstallFinalize?

It appears that on Vista, only deferred CA's accept no impersonate and
actually keep admin privileges, but deferred CA's only appear to be able to
run before InstallFinalize.

It would appear that a Commit CA is what I want with
msidbCustomActionTypeInScript + msidbCustomActionTypeNoImpersonate +
msidbCustomActionTypeCommit, as described here:

http://msdn2.microsoft.com/en-us/library/aa368069(VS.85).aspx

But I cannot appear to make this work from WiX, even using Orca to see what
different options set.

Does anyone have a working method of running an admin command on Vista after
InstallFinalize?

Thanks,

RW




-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users