ennis Posted February 10, 2005 Posted February 10, 2005 (edited) i run this and unexpectedly it restarts before it should..heres the section if $install_t1 = 1 then modLog("install", "Event", "Call installBES102() for BESX 400/401") installBES102() IniWrite("autoSIP_module_BES_temp.tmp", "STAGE", "installStage", 2) modLog("install", "Event", "Done 1st phase of install for BESX 400/401") $install_t1 = IniRead("autoSIP_module_BES_temp.tmp", "STAGE", "installStage", 2) endif if $install_t1 = 2 then modLog("install", "Event", "Call 2nd phase of install for BESX 400/401") install201() modLog("install", "Event", "Done 2nd phase of install for BESX 400/401") ;elseif $install_t1 = 3 then output DOne this function endif FUNC install201() modLog("install201", "Event", "Turn autoLogon ON") ;Set autologin on auto_login(1) ;Add module to runonce modLog("install201", "Event", "Add module to RunOnce") RegWrite("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce", "Launch autoSIP", "REG_SZ", $scriptPath & "\autoSIP_module_BES_xLaunch.bat") modLog("install201", "Event", "All install stages complete - Restart") IniWrite("autoSIP_module_BES_temp.tmp", "STAGE", "installStage", 3) ;Restart system Shutdown(2) exit ENDFUNC it should restart at the bottom where it says shutdown....but it restarts right after finishing installBES102()..theres no shutdown in that function. Thanks for the insight EDIT: yes it does go through the first if statement because $install_t1 is set to 1 innitially. Edited February 10, 2005 by ennis
CyberSlug Posted February 10, 2005 Posted February 10, 2005 Don't know.... Replace the "modLog"s with MsgBox(4096,"debug", "blah blah whatever") and replace the Shutdown. Good luck debugging Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
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