Multiple Stage Setup

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • tkroeckel
    Indigo Rose Customer
    • Sep 2004
    • 47

    Multiple Stage Setup

    Hi,
    I've searched the SUF7 discussion multiple times, but I do not find an answer to the following question:

    Is it possible, to build (only) ONE setup.exe with the possibility, to reentry in the installation after a 'System.Reboot(), i.e.:

    - ...
    - uninstall (old) driver which forces a reboot
    - perform reboot
    - install (new) driver
    - ...



    If yes, a code snip is appreciated.

    Thx in advance
    Thomas
  • pww
    Indigo Rose Customer
    • Jun 2005
    • 470

    #2
    you can do sort of this:

    IF stage1 finished stage=stage2 else stage=stage1

    IF stage==stage1
    - remove old file
    - add an entry in the RunOnce section of the registry that will start the installer again on the next reboot
    - write somewhere that stage1 has been processed
    - reboot

    IF stage==stage2
    - delete info that stage1 has been processed
    - install new file
    - exit

    Put the code in the OnStartup script
    RunOnce entry will be deleted automatically

    Comment

    • tkroeckel
      Indigo Rose Customer
      • Sep 2004
      • 47

      #3
      Multiple Stage Setup

      hello pww,

      good idea, thx a lot, it works great.

      Rgs,
      Thomas

      Comment

      Working...
      X