Results 1 to 5 of 5

Thread: Set InnoSetup not to restart by default

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2007
    Posts
    3

    Post Set InnoSetup not to restart by default

    Is it possible to set something in the innosetup script files to make the final "restart to complete installation" screen default to no, instead of yes?

    I have to test out my builds often several times a day, and typically do so by just hitting enter on the installer until it's finished, since it remembers all settings. But once in a while some file will be locked, and since we use restartreplace for everything, it'll start rebooting before I can catch it. Stress level nicely skyrockets when that happens. I know some of our users are like that too, so is there any way to make no the default action?

    Thanks for any help!

  2. #2
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Set InnoSetup not to restart by default

    Inno Setupt does not default to RESTART. You are causing the restart by using the restartreplace flag. If you remove that flag it Inno Setup will not trigger a reset, but if you have files that are locked they will not be replace either.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2007
    Posts
    3

    Re: Set InnoSetup not to restart by default

    Sure, but we can't do that, since one of the items that gets updated is a shell extension. I'd like the installer to notify the user that a restart is required, but not actually perform it, since there are alternate methods to get it installed if you have some savvy.

  4. #4
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Set InnoSetup not to restart by default

    All Inno Setup does is prompt the user to restart it does not actually restart automatically.

  5. #5
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Set InnoSetup not to restart by default

    You could also use this from the Inno Setup Help Documentation:

    [Setup]: RestartIfNeededByRun

    Valid values:
    yes or no

    Default value:
    yes

    Description:

    When set to yes, and a program executed in the [Run] section queues files to be replaced on the next reboot (by calling MoveFileEx or by modifying wininit.ini), Setup will detect this and prompt the user to restart the computer at the end of installation.

Posting Permissions

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



Click Here to Expand Forum to Full Width