JackDinn Posted March 15, 2013 Share Posted March 15, 2013 I'v always been using ShellExecute("URL") to open a url in the default browser but today i found out that when win8 is in elevated privilege it dont work it just errors saying "Class not registered"It works if a limited accountBeen working fine in xp & 7 for yearsI want it to open in the users default browser ,Any suggestions. Thx all,Jack Dinn. JD's Auto Internet Speed Tester JD's Clip Catch (With Screen Shot Helper) Projects :- AutoIt - My projects My software never has bugs. It just develops random features. :-D Link to comment Share on other sites More sharing options...
allSystemsGo Posted March 15, 2013 Share Posted March 15, 2013 Have you tried _RunDOS()? Link to comment Share on other sites More sharing options...
JackDinn Posted March 15, 2013 Author Share Posted March 15, 2013 nop cant say i have, pitty is i dont have win8 on any VM's any more i shall get a friend to try it, thx. Thx all,Jack Dinn. JD's Auto Internet Speed Tester JD's Clip Catch (With Screen Shot Helper) Projects :- AutoIt - My projects My software never has bugs. It just develops random features. :-D Link to comment Share on other sites More sharing options...
JackDinn Posted March 15, 2013 Author Share Posted March 15, 2013 Nop sorry but no dice _RunDos() does the same thing i.e. error "class not registered" Thx all,Jack Dinn. JD's Auto Internet Speed Tester JD's Clip Catch (With Screen Shot Helper) Projects :- AutoIt - My projects My software never has bugs. It just develops random features. :-D Link to comment Share on other sites More sharing options...
FireFox Posted March 15, 2013 Share Posted March 15, 2013 (edited) If the _RunDOS does not work you can try in addition a trust level. ;possible trust levels, take the highest one. runas /showtrustlevels runas /trustlevel:<trustlevel> program Edit : ;e.g: runas /trustlevel:0x20000 "program.exe" Br, FireFox. Edited March 15, 2013 by FireFox Link to comment Share on other sites More sharing options...
JackDinn Posted March 15, 2013 Author Share Posted March 15, 2013 ok thx all @Firefox, your method wont run a url in the default browser , it needs a file to execute so you would have to use something like runas /trustlevel:<trustlevel> Iexplorer.exe url Turns out that it was only after the installer installs my app. The installer is elevated so it can write to programfiles then after the installation (or update) it runs the app again but now the app is elevated to because it was run by the installer ! Once the app has been closed and restarted it is then running in "normal" privileges Is a little odd though cos this never caused a problem on win7 , no matter i can sort it i think :-/ Thx. Thx all,Jack Dinn. JD's Auto Internet Speed Tester JD's Clip Catch (With Screen Shot Helper) Projects :- AutoIt - My projects My software never has bugs. It just develops random features. :-D Link to comment Share on other sites More sharing options...
allSystemsGo Posted March 15, 2013 Share Posted March 15, 2013 Nop sorry but no dice _RunDos() does the same thing i.e. error "class not registered"You get a visual error message? _RunDOS should be silent. Link to comment Share on other sites More sharing options...
FireFox Posted March 15, 2013 Share Posted March 15, 2013 (edited) Started less than 1 hour ago and already 1,706 views ? wtf.Edit :You get a visual error message? _RunDOS should be silent.No, look at the image in the first post. Edited March 15, 2013 by FireFox Link to comment Share on other sites More sharing options...
JackDinn Posted March 15, 2013 Author Share Posted March 15, 2013 thats what my friend siad , yep same error box showing Thx all,Jack Dinn. JD's Auto Internet Speed Tester JD's Clip Catch (With Screen Shot Helper) Projects :- AutoIt - My projects My software never has bugs. It just develops random features. :-D Link to comment Share on other sites More sharing options...
allSystemsGo Posted March 15, 2013 Share Posted March 15, 2013 Started less than 1 hour ago and already 1,706 views ? wtf.Edit :No, look at the image in the first post._RunDOS never tells me anything Link to comment Share on other sites More sharing options...
allSystemsGo Posted March 15, 2013 Share Posted March 15, 2013 thats what my friend siad , yep same error box showingThe "Class not registered" makes me think of an ActiveX control like a ,OCX file...but what do I know,, Link to comment Share on other sites More sharing options...
FireFox Posted March 15, 2013 Share Posted March 15, 2013 _RunDOS never tells me anything Indeed. The function is a RunWait, meaning that it waits for the process to terminate.If you want to have the standard output, use run and StdOutRead/StdErrRead.Br, FireFox. Link to comment Share on other sites More sharing options...
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