Slym Posted March 26, 2009 Share Posted March 26, 2009 Hi, I try to figure out what is happening with #RequireAdmin : When i launched any program (even one stupid line) with #RequireAdmin option on my Vista (no Service Pack installed, UAC disabled) and no admin rights, AutoIT try to launch the other process that asks for privileges but all i have is the blue circle (Loading) icon on the mouse pointer flickering indefinitely. I can see my process in task manager but the other one (that launches UAC) appears and disappears every other second. I tried without #RequireAdmin and scripts worked fine. I also tried on a XP and everything worked fine too. Hope you can help me on that one. Thank you in advance. --------------------- [font="Franklin Gothic Medium"]LinuxLive USB Creator[/font], [size="3"]The only Linux Live USB creator with easy integrated virtualization (made with AutoIT)[/size] --------------------- Link to comment Share on other sites More sharing options...
jvanegmond Posted March 26, 2009 Share Posted March 26, 2009 If it works without #RequireAdmin, what do you want to know exactly? github.com/jvanegmond Link to comment Share on other sites More sharing options...
Slym Posted March 26, 2009 Author Share Posted March 26, 2009 #RequireAdmin ask for credentials and i need my script to do that. --------------------- [font="Franklin Gothic Medium"]LinuxLive USB Creator[/font], [size="3"]The only Linux Live USB creator with easy integrated virtualization (made with AutoIT)[/size] --------------------- Link to comment Share on other sites More sharing options...
whim Posted March 26, 2009 Share Posted March 26, 2009 As far as i can tell from the the help file, #RequireAdmin only causes a prompt for credentials if the program is started from a user account ...whim Link to comment Share on other sites More sharing options...
Slym Posted March 26, 2009 Author Share Posted March 26, 2009 yep ... that's what I want and that's also how i tried it. AutoIT help file also says : "As this function launch a new process, some functions as Consolewrite() cannot be captured (Scite will not display anything)." --------------------- [font="Franklin Gothic Medium"]LinuxLive USB Creator[/font], [size="3"]The only Linux Live USB creator with easy integrated virtualization (made with AutoIT)[/size] --------------------- Link to comment Share on other sites More sharing options...
jvanegmond Posted March 26, 2009 Share Posted March 26, 2009 I think you are misinterpreting this. #RequireAdmin makes sure that YOUR SCRIPT starts with admin credentials. It does not make sure ( it may or may not ) that the processes you run are run with admin credentials. github.com/jvanegmond Link to comment Share on other sites More sharing options...
Slym Posted March 26, 2009 Author Share Posted March 26, 2009 nop ... i'm not misinterpreting. I fully understand the scope of this function and I want to find why it's bugging. --------------------- [font="Franklin Gothic Medium"]LinuxLive USB Creator[/font], [size="3"]The only Linux Live USB creator with easy integrated virtualization (made with AutoIT)[/size] --------------------- Link to comment Share on other sites More sharing options...
spudw2k Posted March 26, 2009 Share Posted March 26, 2009 From the help file.#RequireAdmin --------------------------------------------------------------------------------Specifies that the current script requires full administrator rights to run.Nothing mentioned about prompting for credentials. Don't see a bug here. Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
Developers Jos Posted March 26, 2009 Developers Share Posted March 26, 2009 When i launched any program (even one stupid line) with #RequireAdmin option on my Vista (no Service Pack installed, UAC disabled) and no admin rights, AutoIT try to launch the other process that asks for privileges but all i have is the blue circle (Loading) icon on the mouse pointer flickering indefinitely.Has anybody else tried this to see if they see the same symptom ?I have no Vista available at the moment so cannot try.Jos 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. Link to comment Share on other sites More sharing options...
spudw2k Posted March 26, 2009 Share Posted March 26, 2009 He clearly states, ...i launched any program (even one stupid line) with #RequireAdmin option on my Vista (no Service Pack installed, UAC disabled) and no admin rights.... It's doing exactly what's expected. If not admin, then don't run. Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
Slym Posted March 26, 2009 Author Share Posted March 26, 2009 (edited) I'm gonna say it a last time : THERE IS A BUG, program does not close and process is almost impossible to kill (as it appears and disappears). I don't know if it's coming from Vista or from AutoIT but there is clearly something going wrong. Edited March 26, 2009 by Slym --------------------- [font="Franklin Gothic Medium"]LinuxLive USB Creator[/font], [size="3"]The only Linux Live USB creator with easy integrated virtualization (made with AutoIT)[/size] --------------------- Link to comment Share on other sites More sharing options...
youknowwho4eva Posted March 26, 2009 Share Posted March 26, 2009 Hmmm works on one Vista system but not on another Unless there is a difference in AutoIt Versions I would say the problem lies with the computer and not Vista or AutoIt. Well I wouldn't rule Vista out of it, have seen instances of system to system variance. Giggity Link to comment Share on other sites More sharing options...
Developers Jos Posted March 26, 2009 Developers Share Posted March 26, 2009 (edited) I'm gonna say it a last time : THERE IS A BUG, program does not close and process is almost impossible to kill (as it appears and disappears).I don't know if it's coming from Vista or from AutoIT but there is clearly something going wrong.Ok I restored my Vista Business in VMware and was able to replicate your problem and can confirm an indefinate loop starts where constandly a second instance of the shelled compiled script is started after which one fails. I had to logoff to stop it.I did the following steps:Created an account with User level access.Disabled UAC with MSCONFIGRebootedStarted a script with #RequireAdmin.Just make a BUG report in trac with the short description on how to replicate this issue.Jos Edited March 26, 2009 by Jos 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. Link to comment Share on other sites More sharing options...
Slym Posted March 26, 2009 Author Share Posted March 26, 2009 Thank you, i was waiting for a confirmation before to post a bug request. --------------------- [font="Franklin Gothic Medium"]LinuxLive USB Creator[/font], [size="3"]The only Linux Live USB creator with easy integrated virtualization (made with AutoIT)[/size] --------------------- 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