+ Reply to Thread
Results 1 to 2 of 2

Thread: $SB_RESTARTFLAG$ behavior?

  1. #1

    Default $SB_RESTARTFLAG$ behavior?

    Have searched the forum for info on the $SB_RESTARTFLAG$, but the few instances I've found didn't help, so posting this.

    The SB7 Reference Manual shows the following example on how to inhibit a reboot/restart of the system:

    Examples

    ! Disable reboot/restart at the end of the installation?
    Set Installer Flag $SB_RESTARTFLAG$ to "0"


    The Common Definitions.sbi that is "included" at the beginning of the script does define the $SB_RESTARTFLAG$ constant in it (checked to make sure). However, when I enter the code from the example at the end of the script (as is suggested), I always receive the error:

    error GEN1007: Reference to constant $SB_RESTARTFLAG$ has not been previously defined.

    I've poured through the reference manual and the forum for a good 2 hours trying to find what I've missed, but haven't had any luck? Can anyone offer what obvious bit of information am I missing that's causing the error?

  2. #2
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: $SB_RESTARTFLAG$ behavior?

    Jerry,

    Are you using this in the "Set Installer Flag..." function?

    I have created and uploaded a SetupBuilder 8 demo project. BTW, you mentioned the "SB7 Reference Manual". I would suggest to install the latest SB8 (it's free as part of your maintenance plan; we can re-send the SB8 login if you want).

    http://www.lindersoft.com/projects/RestartFlag.zip

    IMPORTANT: when you see the "This system must be restarted to complete the installation. Press the OK button to restart this computer. Press Cancel to return to Windows without restarting." message box, please press "Cancel" in this demo!!!!!

    Does this project help?

    Friedrich
    Attached Images Attached Images   

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •