Author: nextgens
Date: 2006-08-12 18:13:01 +0000 (Sat, 12 Aug 2006)
New Revision: 10047

Modified:
   trunk/apps/new_installer/RegistrySpec.xml
   trunk/apps/new_installer/res/windows/bin/1run.cmd
Log:
new_installer: first version of the .fref file registering

Modified: trunk/apps/new_installer/RegistrySpec.xml
===================================================================
--- trunk/apps/new_installer/RegistrySpec.xml   2006-08-12 17:03:09 UTC (rev 
10046)
+++ trunk/apps/new_installer/RegistrySpec.xml   2006-08-12 18:13:01 UTC (rev 
10047)
@@ -1,18 +1,18 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
 <!-- 
-       ATTENTION!!! do not edit with an editor which do not handle UTF-8 in a 
right manner!!
-       Storing with a wrong editor can crash this file!
-    Registry definition file for IzPack Installation.
-    $Id: RegistrySpec.xml 1335 2005-09-02 11:02:23Z bartzkau $
+ATTENTION!!! do not edit with an editor which do not handle UTF-8 in a right 
manner!!
+Storing with a wrong editor can crash this file!
+Registry definition file for IzPack Installation.
+$Id: RegistrySpec.xml 1335 2005-09-02 11:02:23Z bartzkau $
 -->

 <registry>
        <pack name="UninstallStuff">
                <!-- Special "pack", if not defined an uninstall key will be 
generated automatically -->
                <!-- The variable $UNINSTALL_NAME can be only used if 
CheckedHelloPanel will be used
-                    because there the variable will be declared. With that 
variabel it is possible
-                    to install more as one instances of the product on one 
machine each with an
-                    unique uninstall key. -->
+               because there the variable will be declared. With that variabel 
it is possible
+               to install more as one instances of the product on one machine 
each with an
+               unique uninstall key. -->
                <value name="DisplayName" 
                        
keypath="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$UNINSTALL_NAME"  
                        root="HKLM" 
@@ -29,6 +29,6 @@
                        
keypath="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$UNINSTALL_NAME"  
                        root="HKLM" 
                        string="$APP_URL"/>
-      </pack>
+       </pack>
 </registry>


Modified: trunk/apps/new_installer/res/windows/bin/1run.cmd
===================================================================
--- trunk/apps/new_installer/res/windows/bin/1run.cmd   2006-08-12 17:03:09 UTC 
(rev 10046)
+++ trunk/apps/new_installer/res/windows/bin/1run.cmd   2006-08-12 18:13:01 UTC 
(rev 10047)
@@ -1,88 +1,108 @@
- at set PATH=%SYSTEMROOT%\System32\;%PATH%
- at set INSTALL_PATH=$INSTALL_PATH
- at cd %INSTALL_PATH%
-
-:: Tweak freenet.ini
- at if not exist stun goto nostun 
- at set PLUGINS=plugins.JSTUN at 
file:///$INSTALL_PATH\plugins\JSTUN.jar;%PLUGINS%
- at mkdir plugins > NUL
- at java -jar bin\sha1test.jar JSTUN.jar plugins > NUL
- at del /F stun > NUL
-:nostun
-
- at if not exist librarian goto nolibrarian 
- at mkdir plugins > NUL
- at set PLUGINS=plugins.Librarian at 
file:///$INSTALL_PATH\plugins\Librarian.jar.url;%PLUGINS%
- at java -jar bin\sha1test.jar plugins/Librarian.jar.url plugins > NUL
- at del /F librarian > NUL
-:nolibrarian
-
- at echo pluginmanager.loadplugin=%PLUGINS% >> freenet.ini
-
- at if exist update echo node.updater.autoupdate=true >> freenet.ini
- at del /F update > NUL
-
-:: Try to detect a free, aviable port for fproxy
- at set FPROXY_PORT=8888
- at java -jar bin\bindtest.jar %FPROXY_PORT% 
- at if not errorlevel 0 set FPROXY_PORT=8889
- at echo fproxy.enable=true >>freenet.ini
- at echo fproxy.port=%FPROXY_PORT% >>freenet.ini
-
-:: Try to detect a free, aviable port for fcp
- at set FCP_PORT=9481
- at java -jar bin\bindtest.jar %FCP_PORT% 
- at if not errorlevel 0 set FCP_PORT=9482
- at echo fcp.enable=true >>freenet.ini
- at echo fcp.port=%FCP_PORT% >>freenet.ini
-
-:: Try to detect a free, aviable port for console
- at set CONSOLE_PORT=2323
- at java -jar bin\bindtest.jar %CONSOLE_PORT% 
- at if not errorlevel 0 set CONSOLE_PORT=2324
- at echo console.enable=true >>freenet.ini
- at echo console.port=%CONSOLE_PORT% >>freenet.ini
-
- at echo "Downloading freenet-stable-latest.jar"
- at java -jar bin\sha1test.jar freenet-stable-latest.jar "$INSTALL_PATH" > NUL
- at copy freenet-stable-latest.jar freenet.jar > NUl
- at echo "Downloading freenet-ext.jar"
- at java -jar bin\sha1test.jar freenet-ext.jar "$INSTALL_PATH" > NUL
- at echo "Downloading update.cmd"
- at java -jar bin\sha1test.jar update/update.cmd "$INSTALL_PATH" > NUL
- at echo "Installing the wrapper"
- at echo "Registering Freenet as a system service"
- at bin\wrapper-windows-x86-32.exe -i ../wrapper.conf
-
-:: Start the node up
- at net start freenet-darknet
- at echo "Waiting for freenet to startup"
- at ping -n 5 127.0.0.1 >nul
-
- at echo "Spawing up a browser"
- at start http://127.0.0.1:%FPROXY_PORT%/
- at start welcome.html
-
-:: Installing additionnal softwares
- at if not exist jsite goto nojsite 
- at del /F jsite > NUL
- at echo "Downloading jSite"
- at java -jar bin\sha1test.jar jSite/jSite.jar . > NUL
-:nojsite
-
- at if not exist thaw goto nothaw 
- at del /F thaw > NUL
- at echo "Downloading Thaw"
- at java -jar bin\sha1test.jar Thaw/Thaw.jar . > NUL
-:nothaw
-
- at if not exist frost goto nofrost 
- at del /F frost > NUL
- at echo "Downloading Frost"
- at java -jar bin\sha1test.jar frost/frost.zip . > NUL
- at echo "Setting Frost up"
- at mkdir frost
- at java -jar bin\uncompress.jar frost.zip frost > NUL
-:nofrost
-
- at echo "Finished"
+ at set PATH=%SYSTEMROOT%\System32\;%PATH%
+ at set INSTALL_PATH=C:\Program Files\Freenet
+ at set JAVA_HOME=C:\Program Files\Java\jre1.5.0_07
+ at cd %INSTALL_PATH%
+
+ at echo "Registering FREF file extention"
+ at echo Windows Registry Editor Version 5.00 >> fref.reg
+ at echo [HKEY_CLASSES_ROOT\fref_auto_file] >> fref.reg
+ at echo @="Freenet node reference" >> fref.reg
+ at echo "EditFlags"=dword:00000000 >> fref.reg
+ at echo "BrowserFlags"=dword:00000008 >> fref.reg
+ at echo [HKEY_CLASSES_ROOT\fref_auto_file\DefaultIcon] >> fref.reg
+ at echo @="shell32.dll,56" >> fref.reg
+ at echo [HKEY_CLASSES_ROOT\fref_auto_file\shell] >> fref.reg
+ at echo @="Connect" >> fref.reg
+ at echo [HKEY_CLASSES_ROOT\fref_auto_file\shell\Connect] >> fref.reg
+ at echo [HKEY_CLASSES_ROOT\fref_auto_file\shell\Connect\command] >> fref.reg
+ at echo @="\"%JAVA_HOME%\\bin\\java.exe\"  \"-cp\"  
\"%INSTALL_PATH%\\freenet.jar\" \"freenet.support.AddRef\" \"%1\"" >> fref.reg
+ at regedit /s fref.reg
+:: @del /F fref.reg
+
+ at echo "Setting up plugins"
+:: Tweak freenet.ini
+ at if not exist stun goto nostun 
+ at set PLUGINS=plugins.JSTUN at file:///C:\Program 
Files\Freenet\plugins\JSTUN.jar;%PLUGINS%
+ at mkdir plugins > NUL
+ at java -jar bin\sha1test.jar JSTUN.jar plugins > NUL
+ at del /F stun > NUL
+:nostun
+
+ at if not exist librarian goto nolibrarian 
+ at mkdir plugins > NUL
+ at set PLUGINS=plugins.Librarian at file:///C:\Program 
Files\Freenet\plugins\Librarian.jar;%PLUGINS%
+ at java -jar bin\sha1test.jar plugins/Librarian.jar.url plugins > NUL
+ at copy plugins\Librarian.jar.url plugins\Librarian.jar > NUL
+ at del /F librarian > NUL
+:nolibrarian
+
+ at echo pluginmanager.loadplugin=%PLUGINS% >> freenet.ini
+
+ at if exist update echo node.updater.autoupdate=true >> freenet.ini
+ at del /F update > NUL
+
+ at echo "Detecting tcp port abiability"
+:: Try to detect a free, aviable port for fproxy
+ at set FPROXY_PORT=8888
+ at java -jar bin\bindtest.jar %FPROXY_PORT% 
+ at if not errorlevel 0 set FPROXY_PORT=8889
+ at echo fproxy.enable=true >>freenet.ini
+ at echo fproxy.port=%FPROXY_PORT% >>freenet.ini
+
+:: Try to detect a free, aviable port for fcp
+ at set FCP_PORT=9481
+ at java -jar bin\bindtest.jar %FCP_PORT% 
+ at if not errorlevel 0 set FCP_PORT=9482
+ at echo fcp.enable=true >>freenet.ini
+ at echo fcp.port=%FCP_PORT% >>freenet.ini
+
+:: Try to detect a free, aviable port for console
+ at set CONSOLE_PORT=2323
+ at java -jar bin\bindtest.jar %CONSOLE_PORT% 
+ at if not errorlevel 0 set CONSOLE_PORT=2324
+ at echo console.enable=true >>freenet.ini
+ at echo console.port=%CONSOLE_PORT% >>freenet.ini
+
+ at echo "Downloading freenet-stable-latest.jar"
+ at java -jar bin\sha1test.jar freenet-stable-latest.jar "C:\Program 
Files\Freenet" > NUL
+ at copy freenet-stable-latest.jar freenet.jar > NUl
+ at echo "Downloading freenet-ext.jar"
+ at java -jar bin\sha1test.jar freenet-ext.jar "C:\Program Files\Freenet" > NUL
+ at echo "Downloading update.cmd"
+ at java -jar bin\sha1test.jar update/update.cmd "C:\Program Files\Freenet" > 
NUL
+ at echo "Installing the wrapper"
+ at echo "Registering Freenet as a system service"
+ at bin\wrapper-windows-x86-32.exe -i ../wrapper.conf
+
+:: Start the node up
+ at net start freenet-darknet
+ at echo "Waiting for freenet to startup"
+ at ping -n 5 127.0.0.1 >nul
+
+ at echo "Spawing up a browser"
+ at start http://127.0.0.1:%FPROXY_PORT%/
+ at start welcome.html
+
+:: Installing additionnal softwares
+ at if not exist jsite goto nojsite 
+ at del /F jsite > NUL
+ at echo "Downloading jSite"
+ at java -jar bin\sha1test.jar jSite/jSite.jar . > NUL
+:nojsite
+
+ at if not exist thaw goto nothaw 
+ at del /F thaw > NUL
+ at echo "Downloading Thaw"
+ at java -jar bin\sha1test.jar Thaw/Thaw.jar . > NUL
+:nothaw
+
+ at if not exist frost goto nofrost 
+ at del /F frost > NUL
+ at echo "Downloading Frost"
+ at java -jar bin\sha1test.jar frost/frost.zip . > NUL
+ at echo "Setting Frost up"
+ at mkdir frost
+ at java -jar bin\uncompress.jar frost.zip frost > NUL
+:nofrost
+
+ at echo "Finished"


Reply via email to