I need to use CreateProcessAsUser() and pass the user token of the logged on user.
Thanks. On Mon, Feb 27, 2012 at 7:48 PM, Wilson, Phil <phil.wil...@invensys.com>wrote: > I suspect a LoadUserProfile is done for the user in question. That's what > contains those kinds of paths etc. > > Phil W > > -----Original Message----- > From: Andy Clugston [mailto:clug...@gmail.com] > Sent: Wednesday, February 22, 2012 11:04 AM > To: General discussion for Windows Installer XML toolset. > Subject: [WiX-users] Windows Installer and Process Environment Block > > I am working on an installation sequencer. The heart of the sequencer is a > Windows system service that launches the install processes (typically > msiexec) as they come in. > > The sequencer service is grabbing the environment block of the logged on > user (this has been verified) and passing this block to CreateProcess(). In > addition, any variable expansion on the command is expanded based on the > currently logged on user. > > I see an issue where installation packages that target the user profile > paths (AppData, etc.) ends up in the systemprofile instead. If the > installation package is "run by hand" outside of the service, the files, > etc. end up where they are supposed to which is in the currently logged on > user's profile paths. > > How does Windows Installer determine the user profile / environment block > when msiexec is executed? It apparently is not inheriting > the environment from my sequencer service process, otherwise the profile > data would end up in the right spot. > > Thank you. > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > *** Confidentiality Notice: This e-mail, including any associated or > attached files, is intended solely for the individual or entity to which it > is addressed. This e-mail is confidential and may well also be legally > privileged. If you have received it in error, you are on notice of its > status. Please notify the sender immediately by reply e-mail and then > delete this message from your system. Please do not copy it or use it for > any purposes, or disclose its contents to any other person. This email > comes from a division of the Invensys Group, owned by Invensys plc, which > is a company registered in England and Wales with its registered office at > 3rd Floor, 40 Grosvenor Place, London, SW1X 7AW (Registered number 166023). > For a list of European legal entities within the Invensys Group, please go > to http://www.invensys.com/en/legal/default.aspx. > > You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail > recept...@invensys.com. This e-mail and any attachments thereto may be > subject to the terms of any agreements between Invensys (and/or its > subsidiaries and affiliates) and the recipient (and/or its subsidiaries and > affiliates). > > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users