I'm attempting to disallow the installation/uninstallation of the MSI unless it 
is executed from the bootstrapper (which has a requireAdministrator manifest) 
or from an elevated command prompt.

I'm experiencing some inconsistencies with the properties in the subject line.

I set the MSIUSEREALADMINDETECTION to 1 to ensure that the elevation is 
properly recognized. I have a launch condition that specifies:

<Condition Message=" You must be an administrator (Privileged property) to 
execute the MSI."><![CDATA[Privileged]]></Condition>

This works great for installation. However, for uninstall, this never shows up.

I added the following condition:

<Condition Message="You must be an administrator (AdminUser property) to 
execute the MSI."><![CDATA[AdminUser]]></Condition>

This works great for the uninstall. However, for the installation, this never 
shows up.

I'd hate to rely on both of them, as it seems unintuitive (and a major hack). 
Shouldn't it be sufficient to specify the first condition?

Thanks,

Dariel
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to