I run a msi by using msiexec 4.0 on Vista with UAC ON. And the msi have
two custom actions (a setup dll and a remover dll). Even if my account
is Administrator, it failed to install on Vista though it worked on XP.
After I set the two CA with Impersonate="no" as Bob Arnson suggested,
they get elevated, and installation and uninstalling went through well.
However, there are the following issues:

 

1.       When I spawn another process after installation in my
setup.dll, the process actually run as system account context rather
than current user context. 

2.   I signed my custom actions (a setup dll and a remove dll) and the
msi as well. But when I run the msi, I still get the UAC prompt like:

 

 A program needs your permission to continue 

 

Product Name

Company name

Install

Version

 

Is there any way to prevent the prompt opened?

 

3. One more issue when I uninstall. I could not pass successfully a
public parameter value pair on Vista. But it works on XP. The log is:

 

MSI (s) (60:84) [17:46:47:028]: Machine policy value
'AlwaysInstallElevated' is 0

MSI (s) (60:84) [17:46:47:028]: User policy value
'AlwaysInstallElevated' is 0

MSI (s) (60:84) [17:46:47:028]: Using cached product context: machine
assigned for product: FF01F0D58705B3A4EBBC07DB4FF537FC

MSI (s) (60:84) [17:46:47:028]: Product
{5D0F10FF-5078-4A3B-BECB-70BDF45F73CF} is admin assigned: LocalSystem
owns the publish key.

MSI (s) (60:84) [17:46:47:028]: Product
{5D0F10FF-5078-4A3B-BECB-70BDF45F73CF} is managed.

MSI (s) (60:84) [17:46:47:028]: Running product
'{5D0F10FF-5078-4A3B-BECB-70BDF45F73CF}' with elevated privileges:
Product is assigned.

MSI (s) (60:84) [17:46:47:028]: Machine policy value 'EnableUserControl'
is 0

MSI (s) (60:84) [17:46:47:028]: PROPERTY CHANGE: Adding
RestrictedUserControl property. Its value is '1'.

MSI (s) (60:84) [17:46:47:028]: Ignoring disallowed property
REMOVEPARAMS

 

 

Thanks a lot,

 

Hao

 

 

 

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

Reply via email to