- NSIS Discussion
- Silent Installers/Uninstallers
Archive: Silent Installers/Uninstallers
gregory.p.cliff
6th October 2004 15:55 UTC
Silent Installers/Uninstallers
Two questions for Windows installers.
1) If I run the exe with the /S option, is there any way to still have it show some sort of progress, like the files that are being installed, etc. Nothing the user would interact with, but somethign to let him know its doing something.
2) When I run the silent installer, i.e. foo.exe /S is there a way to run this and keep the command prompt waiting until it the installer completes? It looks like by default it goes off in a child process and does its work there. I need it to run in the parent process (if that makes sense).
Thanks very much
RobGrant
6th October 2004 16:21 UTC
1) This is called an "unattended" installer i.e. one which shows stuff but doesn't need interaction. Your problem is probably not covered if /S is specifically silent, as silent installs are differentiated from unattended ones exactly because they don't display anything. Try not using /S? Or maybe I should step aside and let someone else talk :)
gregory.p.cliff
6th October 2004 17:18 UTC
I have the .nsi set to the point that the only user interaction is to hit the install button (I am using the MUI stuff), but the way my IT dept wants to deploy this I can not have any user interaction, not even the button click, but I want the user to see that something is happening.
scully13
6th October 2004 18:31 UTC
I don't know if this is possible with the classic UI but I did a quick test with the modern UI and it worked fine. Just have a MUI_PAGE_INSTFILES and then set AutoCloseWindow to true. The installer launched and did it's thing displyaing progress while it went and then went away when it was done. Didn't even have to hit anything to get it started. For a quick example take the Basic.nsi script in the examples folder and add AutoCloseWindow true and then comment out the first 3 MUI_PAGE_* lines.
gregory.p.cliff
6th October 2004 18:45 UTC
Thanks, I will check it out.
gregory.p.cliff
6th October 2004 19:14 UTC
Perfect! Thanks so much.
matze84
20th October 2004 10:08 UTC
hy, i've set the AutoCloseWindow to true and my installer will be closed automatically. However i run the uninstaller (including MUI_UNPAGE_CONFIRM and MUI_UNPAGE_INSTFILES) the last page (MUI_UNPAGE_INSTFILES) will not be closed. Did I omit something?
matze
SmilingBandit
20th October 2004 14:59 UTC
In your uninstall section, put SetAutoClose true
Takhir
20th October 2004 18:16 UTC
BTW why Run option on the MUI Finish page not works with Silent install? Is this a feature or a bug?
deguix
20th October 2004 19:35 UTC
A feature. That option only appears when the GUI appears. If it doesn't, that option doesn't appear also. To run a application automatically, use Exec command to do the job.