Results 1 to 9 of 9

Thread: [resolved]Auto-restart after install using Inno Setup

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2004
    Location
    Philippines
    Posts
    285

    [resolved]Auto-restart after install using Inno Setup

    hello everyone, i know most of you have used Inno Setup to deploy your applications. i'm using it myself. i just have a question. how can i make Inno Setup restart my PC after installation? i was thinking of installing it silently and restart my pc after installation. does anyone know?

    thanks in advance.
    Last edited by guyjasper; Sep 1st, 2005 at 08:53 PM.

  2. #2
    Frenzied Member I_Love_My_Vans's Avatar
    Join Date
    Jan 2005
    Location
    In the PHP compiler
    Posts
    1,275

    Re: Auto-restart after install using Inno Setup

    Right, you have two options.

    1) When the program starts for the very first time restarting the computer.
    2) Get Hack or MArtinLiss to move to Deployment forum, where Randem usually resides, he knows everything about Inno Setup, he might be able to help.

    Good Luck

    ILMV

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Auto-restart after install using Inno Setup

    Moved.

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2004
    Location
    Philippines
    Posts
    285

    Re: Auto-restart after install using Inno Setup

    thanks

    hope someone can help me. i know this could be really simple but i have no idea you see, i have a client-server application and i have new updates most of the time since my application is still buggy. i find it really annoying updating my software especially if there are so many pcs to update. so i was thinking of making a batch file that will be called by the client PCs that would silently install the update and restart after installation. something like the ff:

    net use z: \\server\update
    z:\setup.exe /silent
    net use z: /delete

    hope you guys could help

  5. #5
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: Auto-restart after install using Inno Setup

    Did you try to search the Inno knowlegde base/Forum on their website. I use NSIS (Nullsoft Installer) so I am not sure how exactly it is done with Inno.

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

    Re: Auto-restart after install using Inno Setup

    guyjasper,

    [Setup]: AlwaysRestart

    Valid values: yes or no
    Default value: no

    Description:

    When set to yes, Setup will always prompt the user to restart the system at the end of a successful installation, regardless of whether this is necessary (for example, because of [Files] section entries with the restartreplace flag).

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2004
    Location
    Philippines
    Posts
    285

    Re: Auto-restart after install using Inno Setup

    thanks randem. and i also discovered just yesterday, to make installation fully unattended, you should pass the ff parameters: /SP- /VERYSILENT this will automatically restart the PC without confirmation after installation.

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

    Re: [resolved]Auto-restart after install using Inno Setup

    guyjasper,

    Watch it with that one. I know I would be a little upset if a program I installed just up and restarted my pc without giving me the option to restart it myself later.

  9. #9

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2004
    Location
    Philippines
    Posts
    285

    Re: [resolved]Auto-restart after install using Inno Setup

    i know, but my case is special. this is specific for my program. in my client-server application, i create the installation batch file from code in the server app and then send it to the clients. the client then re-creates this file locally and execute it. in the batch file, i write scripts for the client to connect to the server and also the parameters needed for the setup file for unattended installation. these is convenient for me because i need to update 20-30 client PCs. i used to do it manually and it was very tiring

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