Discussion:
Silent Install of Netbeans not working
dangay
2009-09-17 15:07:18 UTC
Permalink
I have followed the walk though on http://wiki.netbeans.org/FaqSilentInstallationNB61. The xml file gets created but when the installer is used with the --silent --state it fires up silently and seems to runs for about a minite but never actually installs anything ??
Dmitry Lipin
2009-09-17 16:35:14 UTC
Permalink
Hi,

Does the installation log file at ~/.nbi/log say anything important?

Dmitry
Post by dangay
I have followed the walk though on http://wiki.netbeans.org/FaqSilentInstallationNB61. The xml file gets created but when the installer is used with the --silent --state it fires up silently and seems to runs for about a minite but never actually installs anything ??
--
Dmitry Lipin
NetBeans Installer Team
Sun Microsystems, Inc.
Phone EMEA/APAC x33354 AMER x7033354
Email: ***@Sun.COM
narutards
2009-10-02 13:11:34 UTC
Permalink
I appear to have the same problem with the netbeans-6.7.1-ml-windows.exe installer.



I'm trying to install NetBeans silently on a couple of workstations using a deployment software which is utilizing the System user for deploying the software.



When running the installer with "--silent --state state.xml" as Administrator it seems to work but it just sits there and does nothing when invoked by the System user.

I've already taken care of the firewall blocking Java by importing a .reg-file containing the needed permissions.



What I noticed is that when started manually the NetBeans installer starts java.exe. But when started with "--silent --state state.xml" ... no such java.exe task is spawned.



Sadly there also isnt a logfile for this since the installer is started with the System user account. Would be helpful to actually be able to specify "--log log.txt" to save output to a custom logfile...





So, any ideas?
Dmitry Lipin
2009-10-02 15:51:33 UTC
Permalink
Hi,
Post by narutards
I appear to have the same problem with the netbeans-6.7.1-ml-windows.exe installer.
I'm trying to install NetBeans silently on a couple of workstations using a deployment software which is utilizing the System user for deploying the software.
When running the installer with "--silent --state state.xml" as Administrator it seems to work but it just sits there and does nothing when invoked by the System user.
I've already taken care of the firewall blocking Java by importing a .reg-file containing the needed permissions.
What I noticed is that when started manually the NetBeans installer starts java.exe. But when started with "--silent --state state.xml" ... no such java.exe task is spawned.
Sadly there also isnt a logfile for this since the installer is started with the System user account. Would be helpful to actually be able to specify "--log log.txt" to save output to a custom logfile...
Did you try runing installer help (--help)? It should give you an answer :)

Run
netbeans-6.7.1-ml-windows.exe --verbose --output out.txt --silent
--state state.xml
or just
netbeans-6.7.1-ml-windows.exe --verbose --output out.txt --silent

Dmitry
narutards
2009-10-03 00:08:28 UTC
Permalink
Post by Dmitry Lipin
Did you try runing installer help (--help)? It should give you an answer :)
Honestly, I didn't. I found http://nbi.netbeans.org/docs/cli_options.html and thought that these were the only supported commandline switches.
Post by Dmitry Lipin
Run
netbeans-6.7.1-ml-windows.exe --verbose --output out.txt --silent
--state state.xml
or just
netbeans-6.7.1-ml-windows.exe --verbose --output out.txt --silent
Ok, this is... stunning, to say the least...



The command I was using was this (replace %SOFTWARE_ISERV% with a UNC path of your choice ;):


Code:
"%SOFTWARE_ISERV%\netbeanside\netbeanside-6.7.1.exe" --silent --state "%SOFTWARE_ISERV%\Temp\netbeanside.xml"





This failed as mentioned in my post above. Now after your suggestion I modified the command a little and ran the following:


Code:
"%SOFTWARE_ISERV%\netbeanside\netbeanside-6.7.1.exe" --verbose --output "c:\netbeans.txt" --silent --state "%SOFTWARE_ISERV%\netbeanside\netbeanside.xml"





To my surprise... it worked! I was kinda perplexed when suddenly I saw the java.exe process pop up in the task manager and it really installed the complete NetBeans IDE.

To verify this behavior again I restored the previous environment (snapshot revert in VMware) and ran the first command again. No luck. Restored the snapshot again, ran the second command and guess what? NetBeans installed fine again...



I'm really at a loss as to what makes the installer fail when logging isn't enabled but well, if it works with the logging I'll just leave it in there!



Thanks a lot for the crucial tip. ;)

Continue reading on narkive:
Search results for 'Silent Install of Netbeans not working' (Questions and Answers)
4
replies
what is better "java" or ".net"? and why ? and after that?
started 2007-07-29 23:47:19 UTC
programming & design
Loading...