> > You should be able to set the impersonation appropriately to launch
> your exe as the user.
> 
> Are you sure WiX can do this? When I was searching for a solution
> before I came across this:
> http://stackoverflow.com/questions/2206646/create-a-process-with-
> ordinary-rights-from-an-administrator-process
> Basically people say that it can be done through the scheduler service
> (which may be disabled), through piggybacking on Explorer (which may
> not be running) or some other hacky way. Because of the hacky nature of
> the solutions I am concerned if WiX has found a good way to do this.

The <CustomAction/> element has an Impersonate attribute. The valid values are 
"yes" and "no".

When you use Impersonate="no" the custom action is executed as an account that 
has rights to modify the system. These custom actions should be scheduled 
between InstallInitialize and InstallFinalize and probably needs to be deferred 
so it executes in the privileged process.

When you use Impersonate="yes" the custom action is executed as the user that 
started the MSI package. If you want to start an EXE at the end of the 
installer (and not fail the installer causing a rollback) then you should 
schedule that custom action _after_ InstallFinalize (after the install 
transaction has closed).

There's a client component and server component to a Windows Installer install.
http://blogs.msdn.com/b/rflaming/archive/2006/09/21/765452.aspx does a 
reasonable job of explaining the sequence with pretty pictures.

Edwin G. Castro
Software Developer - Staff
Electronic Banking Services
Fiserv
Office: 503-746-0643
Fax: 503-617-0291
www.fiserv.com
Please consider the environment before printing this e-mail
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to