Randem Systems Support Board

InnoScript => InnoScript - General Questions, Report Bugs, Problems etc... => Topic started by: bigsoldier on April 02, 2007, 05:17:29 AM

Title: Checking privillege
Post by: bigsoldier on April 02, 2007, 05:17:29 AM
I have Inno Setup 5.1.10. How do I check administrator privilege? I do have PrivilegesRequired=admin in Setup section but I don't get the message that described in help file when I test it in with none admin log on, instead, I only got an Error window with no message!
 
Thanks!
Title: Checking privillege
Post by: Randem on April 02, 2007, 08:02:45 AM
What OS are you using? On Vista it may act differently. On the other OS's the message should appear.
Title: Checking privillege
Post by: bigsoldier on April 02, 2007, 08:38:28 AM
I'm using XP Professional. I tried to comment out the line PrivilegesRequired=admin, the Error window still pops up (but no message). Only when I set the PrivilegesRequired=none, if I put the code IsAdminLoggedOn, it returns false.
 
Thanks!
Title: Checking privillege
Post by: Randem on April 02, 2007, 04:03:16 PM
Did you check your permissions? What are your permissions?
Title: Checking privillege
Post by: bigsoldier on April 03, 2007, 10:01:00 AM
I don't quite understand what you mean by check your permissions. Why and how to check it?
Title: Checking privillege
Post by: Randem on April 03, 2007, 11:53:36 AM
If you need Admin privileges, Your login on your OS needs to have those rights. If not then it won't install.