views:

26

answers:

1

how to resume installation after restarting pc in c# in Setup and Deployment project?

+1  A: 
  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.
Gabriel McAdams
Please remember to accept this answer if you found it helpful.
Gabriel McAdams