Edmond Chui
6th August 2003 23:45 UTC
Hi,
I'm applying the same /S /D=<installdir> to install Tomcat silently on Windows. It pretty much works.
There are two cliches that I would like to ask for help:
1. How to suppress the initial dialog "Using JDK found on <...>" with an OK button?
2. When install is completed, an Explorer Window with the new install directory is popped up. How can I suppress that?
Thanks.
Afrow UK
7th August 2003 00:26 UTC
Function .onInit
Call GetParameters
Pop $0
StrCmp $0 "/S" end_function
StrCmp $0 "/a" end_function
MessageBox MB_YESNO|MB_ICONQUESTION "You have ran the installer in silent mode.$\r$\nContinue? IDNO +2
Exec "My_Install_Package.exe /S"
Abort
end_function:
FunctionEnd
kichik
7th August 2003 00:39 UTC
Posting a question once is enough.
You can't do what you're asking to do unless the creator of the installer have made the installer sensitive to /S on the command line.
See this post too:
http://forums.winamp.com/showthread....highlight=%2FS
Afrow UK
7th August 2003 00:42 UTC
How'd my post get in here?
lol
-Stu
Edmond Chui
7th August 2003 00:43 UTC
Actually the tomcat installer takes /S and works almost perfectly besides the cliches mentions. I also have the Tomcat.nsi file. Just want to see if I can pass anything at the command line to suppress those two annoying dialogs.
kichik
7th August 2003 00:46 UTC
I merged the two posts and moved Edmond Chui second, almost identical post to another place.
Edmong, take a look at that other link I added in the last post, it contains more information.
kichik
7th August 2003 00:48 UTC
If you want you can also change the script and recompile. All you need to do is add a silent check and skip the dialogs if /S was used. For this you should use:
http://nsis.sourceforge.net/archive/....php?pageid=79
Edmond Chui
7th August 2003 00:52 UTC
Great information! Thanks kichik! And apologies for cross-posting.
spaceclown
8th August 2003 14:09 UTC
So what I have gathered is that Tomcat was not made to be completely silent with the /s, so the alternative would be to recompile this adding the above mentioned changes. My question is do you need the .nsi file to do this? Is there a way to extract the install information or an install watch file? Basically do I have to find the nsi script for this? Thanks in advance and pardon my ignorance this will be my first install with this tool.
kichik
8th August 2003 14:15 UTC
You must have the .nsi script, but since Tomcat is open source it's not a problem. The .nsi file is probably in Tomcat's CVS.