Archive: Silent install question.


Silent install question.
I'm trying to do a silent install of Java. I'm able to do this with a bat file using jdk-1_5_0_11-windows-i586-p.exe /s /v"/qn" but I really don't like using a bat file and it takes a long time 2-5 min. Is there anyway for me to do a silent install of Java with NSIS not using nsexec? If I use the nsexec is there a way to show the user during that 5 minutes that something is happening and it hasnt froze? If there isnt a way to speed it up is there a way to make the bat file not come up and the nsis installer to show some kind of progress. If the install just sits there for 5 min the person using the install might think it has froze.

I would prefer the nsis to do the silent install of jave. I've tried doing a execwait with a /s /qn /v and nothing works. I would also like the nsis to show that the installer is working. is there anyway to do this?


nsis does not know the progress of another installer, I'm sure you could find some other switch that shows a little progress bar, /q? where ? is something =) anyway, your execwait command was wrong, its

ExecWait '"path\to\installer.exe" /s /qn /v'


I tried ExecWait '"path\to\installer.exe" /s /qn /v' and all it does it pop up the installer. If I could get nsis to install it in silent mode then I would try to find a flag for the progress bar. But, I can't even get nsis to do a silent install of it.


ok I finally got java installed going thru the installer by using this command

   ExecWait '"$INSTDIR\jdk-1_5_0_11-windows-i586-p.exe" /s /v"/qn"'
The last thing would be how to get a progress bar. anyone know?

you would have to ask the java guys for the real answer, but you could also try looking at http://unattended.sourceforge.net/installers.php Looking at that page, the first thing to try would be ExecWait '"$INSTDIR\jdk-1_5_0_11-windows-i586-p.exe" /s /v"/qb"'