cotax 0 Posted April 26, 2010 (edited) Hi. Is it possible to reboot afer installing alcohol120%, and after reboot that the script will resume the installation? I searched the forum, found some french input but dont understand it, so i can only read the script. It has something to do with register, but i dont have a clue how that works. Is there anyone here who can help me? I want to know how to resume installation after a reboot. Thanks alot Edited April 26, 2010 by cotax Share this post Link to post Share on other sites
blckpythn 2 Posted April 26, 2010 I don't know of a registry method, buy you could have your script install something into the startup folder before it reboots then have the script in the startup folder delete itself after. Share this post Link to post Share on other sites
zorphnog 11 Posted April 26, 2010 You can add an entry to the HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce key before the reboot. It needs to be a REG_SZ the name doesn't matter, just give it some random name. The data should contain the path to your script. For example: RegWrite("HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce", "after_alcohol", "REG_SZ", @ScriptFullPath) Share this post Link to post Share on other sites
MHz 80 Posted April 27, 2010 This is an old script I made for Daemon Tools which maybe similar to Alcohol as they both use the SPTD driver which needs to be installed 1st, then reboots and then the main application installs. If similar, then you may need to use the "HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce" key to handle the main application install as the Alcohol120 registry entry maybe in the same key.So you could call a function like this to add the registry entry to restart your script at the correct time when the desktop loads.Func _RunOnce() ; Add 2nd part to installation. Local $key = 'HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce' RegWrite($key, '_Alcohol120', 'Reg_sz', '"' & @AutoItExe & '" /AutoIt3ExecuteScript "' & @ScriptFullPath & '" /postrun') EndFuncSet the script to check for the /postrun switch on restart to handle the install as needed. Share this post Link to post Share on other sites