Archive: Multi restart


Multi restart
Hello,

I need to restart my computer several times during my installation.
How to save context to avoid clicking on language, welcome, licence pages ?
Someone has some ideas ?

thanks

Freg


registry


registry
More specifically...

Before the first reboot write a something like:
System::Call 'kernel32::GetModuleFileNameA(i 0, t .R0, i 1024) i r1'
;$R0 will contain the installer filename
WriteRegStr HKLM Software\Microsoft\Windows\CurrentVersion\Run "SetupContinue" '"$R0" /STAGE2'

in your .onInitFunction call GetParameters (see NSIS docs for the function itself) and Pop $0, $0 will contain "/STAGE2", etc depending on what params the installer exe was launched with

-dandaman32

Thank you for your help.