
Try to make mucommander portable with NSIS

Hi, God bless you
My name is Washington Indacochea Delgado. I not speak good English (yo hablo español no bien ingles). I was to try make mucommander portable, I download:

http://www.mucommander.com/download/mucommander-0_8_beta3-portable.tar.gz

I extract all files:

*******************
License.txt
Mucommader.bat
Mucommander.jar
Mucommander.sh
Readme.txt
*******************

I open mucommander.bat with Notepad++ and find the next:

****************************************************
@echo off
echo.
echo -------------------------
echo - Launching muCommander -
echo -------------------------
echo.

if "%JAVA_HOME%"=="" goto nojavahome
echo Found a Java runtime in %JAVA_HOME%
start "%JAVA_HOME%\bin\javaw.exe -jar" mucommander.jar
goto exit

:nojavahome
echo JAVA_HOME environment variable not set, trying default javaw.exe
start javaw -jar mucommander.jar -p $0/../.mucommander %1% %2% %3% %4% %5% %6% %7% %8% %9%
goto exit

:exit
exit

Close .bat file.


I Download Java JRE (Java RunTime Enviroment) from:

http://java.com/

link direct:


http://jdl.sun.com/webapps/getjava/BrowserRedirect?locale=es&host=java.com

I install it in my PC by default in C:\Archivos de programa\java.    I I copy the folders “bin” and “lib” that are inside there, and paste  in my Pendrive in a folder that I named “mucommander Portable”:

G:/mucommander Portable/bin
G:/mucommander Portable/lib

         
In the next time I copy the: “mucommander.bat” and “mucommander.jar” (that are in the “mucommander-0_8_beta3-portable.tar.gz”) and paste in “bin” folder in my Pendrive:

G:/mucommander Portable/bin/mucommander.bat
G:/mucommander Portable/bin/mucommander.jar


 At that time are there 3 files important:

G:/mucommander Portable/bin/javaw.exe
G:/mucommander Portable/bin/mucommander.bat
G:/mucommander Portable/bin/mucommander.jar
G:/mucommander Portable/lib


I do double clic in “mucommander.bat” and working mucommnader in my Pendrive fine in all Windows XP.

But this not working in all Windows Vista but in some PC not always cmd.exe (command line) was enable. Wherefore I try to make a launcher (.exe) with NSIS in order that  this launch mucommander from my Pendrive in windows Vista always. But I don´t know the parameters so that the .exe call mucommander.jar.

For *.bat is:

Javaw.exe –jar mucommander.jar

For *.exe: 

????????????(I don´t know)

Please help my to do a launcher.exe that working fine from my Pendrive.


I make my scrip with NSIS 2.45 (http://nsis.sourceforge.net/Download) that open mucommander simple so:

**************************************.
WindowIcon Off
SilentInstall Silent
AutoCloseWindow True
OutFile "mucommander.exe"



Section "Main"
Exec "$EXEDIR\mucommander_java\bin\java.exe -jar mucommander.jar"
SectionEnd

***************************************************

I compile this with NSIS, and generate a “mucommander.exe”:

G:/mucommander Portable/bin/javaw.exe
G:/mucommander Portable/bin/mucommander.bat
G:/mucommander Portable/bin/mucommander.jar
G:/mucommander Portable/lib
G:/mucommander Portable/mucommander.exe  (double clic and not working)


 but not working. 

This system working fine with other App (otras aplicaciones). With the next simple script from: (http://portableappz.proxima.web.tr/tutorial.php) :

God Bless You for all

Washington Indacochea Delgado
