[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.
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
Re: Auto-restart after install using Inno Setup
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 :)
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.
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).
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.
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.
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 :)