Jump to content
Sign in to follow this  

cant pinpoint where it shutsdown

Recommended Posts


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")
            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)
        if $install_t1 = 2 then
            modLog("install", "Event", "Call 2nd phase of install for BESX 400/401")
            modLog("install", "Event", "Done 2nd phase of install for BESX 400/401")
   ;elseif $install_t1 = 3 then output DOne this function

FUNC install201()
    modLog("install201", "Event", "Turn autoLogon ON")
;Set autologin on
;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

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 :lmao:

EDIT: yes it does go through the first if statement because $install_t1 is set to 1 innitially.

Edited by ennis

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.