hamohd70 Posted March 11, 2010 Posted March 11, 2010 I'm trying to start regedit under vista but it is refusing to start. The code i'm using is simple : RunWait("regedit") the same code is running fine under win XP. any help please ? Thanks
Developers Jos Posted March 11, 2010 Developers Posted March 11, 2010 use: ShellExecute("regedit.exe") SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
MHz Posted March 12, 2010 Posted March 12, 2010 XP may allow you to run regedit without admin privileges but Vista and later OSes may not. You may need to raise your privileges to admin to run regedit which is probably a good thing for the sake of security. Use #RequireAdmin or look at RunAs() or RunAsWait() in the helpfile. #RequireAdmin RunWait("regedit") Now you may see the UAC prompt which can allow your script to run with admin privileges in which running regedit will inherit admin privileges as well.
hamohd70 Posted March 12, 2010 Author Posted March 12, 2010 thanks for the help it worked fine both ways.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now