I have an installer now, and want only Administrator can run it. My OS is Windows7 x64. I hope an error message can pop up if a non-admin user invoke it. So I add a launch condition.
<Condition Message="You need to be an administrator to install [ProductName].">Privileged</Condition> There are three types' users on my test machine: Type1: Domain User which is in Administrators group Type2: Local administrator Type3: Local user in Users group Type1 Type2 Type3 Expected: Run Run Not Run Now: Run Run Run So I add a value in Package node "InstallPrivileges="limited"", but get below results. Not Run Run Not Run It seems, domain administrators are not looked as an administrator by installer? How can I set condition to perform the expected behavior? Thanks. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-detect-whether-MSI-invokes-by-administrator-or-not-tp7331428p7331428.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ 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