Hello,
Is it possible to resume the installation process after rebooting the system?
thanks,
ehsan
Resume after reboot
5 posts
Yes, but there's no simple "do this" solution for it. You have to manage the resuming process yourself.
Basically, what you need to do is add an entry to HKCU\Software\Microsoft\Windows\Currentversion\Runonce, or in some other auto start key, that starts the installer on next start-up. Use some command-line switch so the installer knows it's resuming the install process.
E.g. This will start the installer on next start-up with "/resume" command-line switch.
PaR
Basically, what you need to do is add an entry to HKCU\Software\Microsoft\Windows\Currentversion\Runonce, or in some other auto start key, that starts the installer on next start-up. Use some command-line switch so the installer knows it's resuming the install process.
E.g. This will start the installer on next start-up with "/resume" command-line switch.
You need to write code that checks if the installer was started with the command-line switch and then adjust the install process accordingly.WriteRegStr HKCU "Software\Microsoft\Windows\Currentversion\Runonce" "InstallResume" '"$EXEPATH" /resume'
PaR
thanks
You may find it easier to put the 2nd part in another executable (i.e. another NSIS script) and extract that to temp. You can use the SelfDel plug-in to delete it on finish.
Stu
Stu
thanks... it very useful with me😢Originally Posted by {_trueparuex^} View PostYes, but there's no simple "do this" solution for it. You have to manage the resuming process yourself.
Basically, what you need to do is add an entry to HKCU\Software\Microsoft\Windows\Currentversion\Runonce, or in some other auto start key, that starts the installer on next start-up. Use some command-line switch so the installer knows it's resuming the install process.
E.g. This will start the installer on next start-up with "/resume" command-line switch.
You need to write code that checks if the installer was started with the command-line switch and then adjust the install process accordingly.WriteRegStr HKCU "Software\Microsoft\Windows\Currentversion\Runonce" "InstallResume" '"$EXEPATH" /resume'
PaR