For UAC, deferred is the right thing to do, and running without impersonation is also the right answer. Unless you have arranged to run the entire MSI install elevated, running impersonated as Administrator really means "...but with a limited user token", and immediate custom actions won't be elevated. I can't tell from your post whether you tried one of these then the other, or both together, but you should be trying deferred AND not impersonated.
Phil Wilson -----Original Message----- From: Simon Topley [mailto:simon.top...@wallingfordsoftware.com] Sent: Wednesday, September 30, 2009 5:03 AM To: Simon Topley; wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Vista UAC for custom actions Hello again, still no progress on this I'm afraid, I have found ways to add an event log source using wix 3.0, but nothing in wix 2... maybe its' time i just bite the bullet and switched across to WIX 3 Simon -----Original Message----- From: Simon Topley Sent: 28 September 2009 15:59 To: wix-users@lists.sourceforge.net Subject: Vista UAC for custom actions Hello agian, still me. I was testing the issue I'm having with permissions on service installs on my vista system and i came across another issue. When I attempt to run a command using QtExec I get an access denied error. I've tried to make it a deferred custom action as this has been recommended on some sites but with no joy. I've tried to stop it impersonating local user too, even though the local user is admin. so... this: <Property Id="QtExecCmdLine" Value=""eventcreate" /T INFORMATION /SO ISRM_S /ID 1 /D "INSTALLING SERVICE EVENT SOURCE" /L APPLICATION"/> <CustomAction Id="QtExec" BinaryKey="wixca" DllEntry="CAQuietExec" Execute="immediate" Return="check" Impersonate="no"/> <Binary Id="wixca" src="wixca.dll"/> <InstallExecuteSequence> <Custom Action="QtExec" After="InstallServices"/> </InstallExecuteSequence> produces this: MSI (s) (58:00) [07:45:30:284]: Hello, I'm your 32bit Impersonated custom action server. MSI (s) (58!50) [07:45:30:331]: PROPERTY CHANGE: Deleting QtExecCmdLine property. Its current value is '"eventcreate" /T INFORMATION /SO ISRM_S /ID 1 /D "INSTALLING SERVICE EVENT SOURCE" /L APPLICATION'. CAQuietExec: ERROR: Access is denied. CAQuietExec: CAQuietExec: Error 0x80070001: Command line returned an error. any ideas? Sorry for the constant questions guys, I just don't know where else to turn if google fails me. It's not like there is a good book on WIX out there that i know of. Simon Disclaimer: This electronic communication and its attachments may contain confidential, proprietary and/or legally privileged information which are for the sole use of the intended recipient. If you are not the intended recipient, any use, distribution, or reproduction of this communication is strictly prohibited and may be unlawful; please contact the sender and delete this communication. MWH does not warrant or make any representation regarding this transmission whatsoever nor does it warrant that it is free from viruses or defects, correct or reliable. MWH is not liable for any loss or damage that occurs as a result of this communication entering your computer network. The views expressed in this message are not necessarily those of MWH. This communication cannot form a binding agreement unless that is the express intent of the parties and they are authorized to make such an agreement. MWH reserves all intellectual property rights contained in this transmission. MWH reserves the right to monitor any electronic communication sent or received by its employees. This communication may come from a variety of legal entities within or associated with the MWH group. For a full list of details for these entities please see our website at www.mwhglobal.com. Where business communications relate to the MWH UK Limited entity, the registered office is Terriers House, 201 Amersham Rd, High Wycombe, HP13 5AJ Tel: 01494 526240 and the company is registered in England as registration number 01188070. Where business communications relate to the MWH Constructors Limited entity, the registered office is as above and the company is registered in England as registration number 04635724. Where business communications relate to the MWH Soft Limited entity, the registered office is as above and the company is registered in England as registration number 6975921. ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users