IYIaster
2nd May 2009 22:25 UTC
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?
Anders
2nd May 2009 22:55 UTC
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'
IYIaster
3rd May 2009 00:29 UTC
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.
IYIaster
3rd May 2009 01:40 UTC
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?
Anders
3rd May 2009 03:15 UTC
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"'