Archive: Resume after rebooting


Resume after rebooting
Hi all,

I have read most of the threads about this subject, and found the following solution is much useful to me,

1) Create a registry entry indicating where your installer left off.
2) Make an entry in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce with your installer name and location.
3) Your installer will be run after the PC reboots.
4) Read the registry entry and continue your installation.
My questions are,
1) For step one, how can I keep the track of leaving point?
2) After the rebooting, can the installer resume from the exact leaving point, e.g. the options selected before the rebooting can be kept?

Thanks in advance

Is there anybody answering my questions?
Thanks in advance.


you'd have to store the options chosen, and the progress of 'installation', in the registry yourself (using e.g. WriteRegStr) - then read them back out when you run the installer and skip code (using goto/LogicLib if-then-else's / Abort for pages) as appropriate


Thanks for your advice. There is no magic.:cry: