I'm trying to get a small shell script to execute using the <executable>
tag. It seems to work fine on one computer, but not on others and I'm
baffled as to why it won't run. I can't seem to get any error stream
from the computers where it does not work, though I know an error is
occurring because a small dialog that says "continue?" yes/no pops up at
the end of the installation (when the script is supposed to execute).
I think for some reason, the error message is not being generated or
not being included into the dialog.
So my question is, is there a way to get at the error stream during an
izpack installation? I'd like to see why the script is not executing on
some of my test machines.
Here's the executable statements that I'm using and the script that it's
executing:
<pack name="R (2.6.2) osx" required="no" os="mac" id="r-2.6.2-mac">
<description>R (2.6.2) for Mac OSX - If you choose to install
this option, the R installer will be launched at the completion of
the Kepler installation.
</description>
<file targetdir="$INSTALL_PATH/" src="R-2.6.2-osx.dmg" os="mac"
unpack="false"/>
<executable type="bin" stage="never"
targetfile="$INSTALL_PATH/loaddmg.sh" os="mac" />
<executable type="bin" stage="postinstall"
targetfile="$INSTALL_PATH/loaddmg.sh" os="mac" />
</pack>
loaddmg.sh:
#!/bin/sh
hdiutil mount R-2.6.2-osx.dmg
open /Volumes/R-2.6.2/R.mpkg/
Once the installer finishes, I can execute the script from the command
line normally so I know it's not a permission or path issue (within the
script).
Thanks for any help.
chad
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
java -DTRACE=TRUE -jar yourInstaller.jar
This gives you lots of information, all printed to console.
Cheers,
Daniel
> So my question is, is there a way to get at the error stream
> during an izpack installation? I'd like to see why the script
> is not executing on some of my test machines.
>
> [...]
chad
At uninstall, I want to run a script which removes a service under windows. I include the following in my install.xml:
<executable targetfile="cmd /c start $INSTALL_PATH/bin/scriptname.cmd" stage="uninstall" failure="warn" os="windows" keep="true"/>
The "cmd /c start" is there to open a new console window. But this doesn't work. If I use
<executable targetfile="$INSTALL_PATH/bin/scriptname.cmd" stage="uninstall" failure="warn" os="windows" keep="true"/>
directly, then the uninstaller hangs in case the script waits for a keystroke. To avoid this, I tried to put in the "cmd /c start" to run the script in a console window, which can be closed by the user.
Unfortunately, this technique doesn't work. The uninstaller gives a warning that the program cannot be found.
If I put the line
<executable targetfile="notepad.exe" stage="uninstall" failure="warn" os="windows" keep="true"/>
Next to the other executable-line, notepad is executed as you would expect it.
I cannot adjust the script, because I get it from another group and it might be modified later.
Best Regards,
Daniel Strecker
360 Treasury Systems AG
Grüneburgweg 16-18 / Westend Carrée
60322 Frankfurt/Main
T. +49 (0)69 900 289 23
F. +49 (0)69 900 289 29
E. stre...@360t.com
W. www.360T.com
Commercial Register Frankfurt, No. HRB 49874; Executive Board: Carlo Kölzer, Alfred Schorno; Supervisory Board: Dr. Rainer Zimmermann
This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission.
Great !
De : Shailesh Mangal
[mailto:sx...@yahoo.com]
Envoyé : mardi 15 avril 2008
21:29
À : us...@izpack.codehaus.org
Objet : Re: [izpack-user]
Executinga process in separate console window at uninstall time