Thanks guys, I'll have a play around with your suggestions and post
back.  I did add the Execute="deferred" and Impersonate="no" but this
didn't work on first attempt.  Setting @Execute="commit" caused it to
call but the action but it still failed.  I'll get back with my results.

 

Regards, Nigel

 

From: Rob Mensching [mailto:[EMAIL PROTECTED] 
Sent: 16 May 2007 05:18
To: Mike Dimmick; Pepper,N,Nigel,XSE6 R; wix-users@lists.sourceforge.net
Subject: RE: [WiX-users] WiX v3.0 on Vista doesn't run some custom
actionswhenUAC is enabled

 

<Certificate> isn't just for SSL certificates any longer.  It's just
stuck in the IIS extension because that's where it came from... it'll
install normal certificates just fine.  I do it all the time in Windows
Marketplace.

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
Dimmick
Sent: Tuesday, May 15, 2007 11:37 AM
To: [EMAIL PROTECTED]; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] WiX v3.0 on Vista doesn't run some custom
actions whenUAC is enabled

 

Almost certainly it is called, but the action is not elevated, so it
fails.

 

If you need a CA to be elevated in Windows Vista - even if the MSI was
launched elevated - you need the action to be deferred and not
impersonate the running user (i.e. CustomAction/@Execute='deferred' and
@Impersonate='no'). I'm not sure if that's compatible with using an EXE
file.

 

If you need to install certificates, WiX has the <iis:Certificate>
element. While intended for installing web server SSL certificates, I
believe it's also capable of installing user certificates.

 

-- 

Mike Dimmick

 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: 15 May 2007 10:06
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] WiX v3.0 on Vista doesn't run some custom actions
whenUAC is enabled

 

One of the applications I'm working on calls the .NET framework's
certmgr.exe tool to install a number of X509 certificates in the user's
certificate store.  Under Vista, I am observing different behaviour when
UAC is turned on/off.  When UAC is enabled, it appears the CustomAction
to install the certs is not called.  When UAC is disabled, the action is
called.

 

Has anyone observed similar behaviour with custom actions and UAC or
have suggestions as to what might cause this?

 

Thanks, Nigel Pepper

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to