Author: nextgens
Date: 2008-02-25 00:37:49 +0000 (Mon, 25 Feb 2008)
New Revision: 18146

Modified:
   trunk/apps/new_installer/res/windows/bin/install_wrapper.cmd
Log:
new_installer: maybe fix a bug in the installer on win2k

Modified: trunk/apps/new_installer/res/windows/bin/install_wrapper.cmd
===================================================================
--- trunk/apps/new_installer/res/windows/bin/install_wrapper.cmd        
2008-02-23 22:29:04 UTC (rev 18145)
+++ trunk/apps/new_installer/res/windows/bin/install_wrapper.cmd        
2008-02-25 00:37:49 UTC (rev 18146)
@@ -7,7 +7,7 @@
 :: Try to detect a free, available port for fproxy
 @set FPROXY_PORT=8888
 @java -jar bin\bindtest.jar %FPROXY_PORT% 
- at if errorlevel 0 goto configure_fproxy
+ at if %ERRORLEVEL% EQ 0 goto configure_fproxy
 @set FPROXY_PORT=8889
 @bin\cat.exe welcome.html | bin\sed.exe "s/8888/%FPROXY_PORT%/g" > 
welcome2.html
 @move /Y welcome2.html welcome.html > NUL
@@ -21,7 +21,7 @@
 :: Try to detect a free, available port for fcp
 @set FCP_PORT=9481
 @java -jar bin\bindtest.jar %FCP_PORT% 
- at if not errorlevel 0 set FCP_PORT=9482
+ at if %ERRORLEVEL% NEQ 0 set FCP_PORT=9482
 @echo fcp.enable=true >>freenet.ini
 @echo fcp.port=%FCP_PORT% >>freenet.ini

@@ -50,13 +50,13 @@
 @net user freenet /delete 2> NUL > NUL
 :: create the user
 @net user freenet %PASSWORD% /add /comment:"this user is used by freenet: do 
NOT delete it!" /expires:never /passwordchg:no /fullname:"Freenet dedicated 
user" > NUL
- at if errorlevel 0 goto pwgen
+ at if %ERRORLEVEL% EQ 0 goto pwgen
 @echo Error while creating the freenet user! let's try something else...
 :: try with a stronger password
 @set TMPPASSWORD=Freenet_0@%PASSWORD%-
 @set PASSWORD=%TMPPASSWORD:~0,12%
 @net user freenet %PASSWORD% /add /comment:"this user is used by freenet: do 
NOT delete it!" /expires:never /passwordchg:no /fullname:"Freenet dedicated 
user"
- at if errorlevel 0 goto pwgen
+ at if %ERRORLEVEL% EQ 0 goto pwgen
 :: We shouldn't reach that point
 @echo The workaround is still not working! will install freenet to run as 
SYSTEM
 @goto registerS


Reply via email to