Archive: Silent Installers/Uninstallers


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


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 :)


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.


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.


Thanks, I will check it out.


Perfect! Thanks so much.


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


In your uninstall section, put SetAutoClose true


BTW why Run option on the MUI Finish page not works with Silent install? Is this a feature or a bug?


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.