Dreu Noctem


Reply to this topicStart new topicStart Poll

> Bypassing UAC prompts
arQon
Posted: Jan 10 2015, 12:04 PM
Quote Post


EMS creator and DN Offical Bug Manager


Group: DN Design Lead
Posts: 4845
Member No.: 297
Joined: 14-September 04



NWN rather sloppily attempts to modify a system-wide registry entry every time it's run. There's absolutely no need for it to do so though, because the only time it actually changes any of those entries is when it's installed or updated: it's just that even when only reading the values it asks for permission to modify them as well, even though it won't do so.
That sort of behavior has never been tolerated for non-Admin accounts, and post-Vista it invokes a UAC nag box even for Admins.

There are a couple of ways to deal with this. On XP, the easiest way was to just change the permissions on the NWN registry entries. On W7 there's a simpler workaround, which is to create a batch file like this:
CODE

set __COMPAT_LAYER=RunAsInvoker
nwmain +connect dreunoctem.com


"RunAsInvoker" means what it says, really: rather than prompting for privilege escalation all the time, the game will be run without admin rights, and Windows will just shut up and get on with it, rather than trying to be "clever" about elevating the context on demand.


--------------------
azmaveth> so, for my first stint as a dm, I feel the need to spawn a dragon or two on a party of babies...
dave> go find Kev when he makes his next baby :p
dave> he prolly kill it
PM
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | Server Status and Information | Next Newest »

Reply to this topicStart new topicStart Poll

 



[ Script Execution time: 0.0266 ]   [ 11 queries used ]   [ GZIP Enabled ]