saschabeaumont wrote: > > As you shouldn't be modifying the system outside of the > InstallExecuteSequence anyway I can't see how this would be a problem? > >
It's not a problem, so much as we prompt a few screens of required info before the "Install" button is hit. Why have a user fill in these few screens only to find out they have wrong permissions? In the past, we could prevent this from happening by the code i quoted. So all i was trying was to do the same behaviour in Windows 2008 R2 if possible. saschabeaumont wrote: > > Here's the code I'm using below, as the condition all looks OK I've > included the Package element - I don't know if the settings there > would have any effect on the behaviour? > > <Package Description="!(loc.Package_Description) $(var.version)" > Comments="!(loc.Package_Comments)" > Manufacturer="!(loc.ManufacturerName)" > InstallerVersion="301" > Compressed="yes" > InstallPrivileges="elevated" > InstallScope="perMachine" > Platform="$(var.ProcessorArchitecture)" /> > > <Condition Message="!(loc.LaunchCondition_AdminPrivs)"> > <![CDATA[Installed OR Privileged]]> > </Condition> > I tried the exact "InstallPrivileges" and "Condition Message" line (with my own msg of course), and now non-admin users cannot run the MSI and get my warning message, which is great. Running the MSI as Administrator works fine. But if i run the MSI as a user who is part of "Administrators" group, shouldn't that user still be allowed to run the MSI? That user still gets denied like a regular user. Again, this is Windows 2008 R2 if that makes a difference. Or am I missing something? Thanks! -- View this message in context: http://n2.nabble.com/Admin-check-in-Win-2008-tp4557002p4567385.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users