Browse Source

Backport issue 1683 and issue 1725


git-svn-id: http://svn.dmdirc.com/branches/0.6@4615 00569f92-eb28-0410-84fd-f71c24880f
remotes/0.6
Chris Smith 16 years ago
parent
commit
2c26c8379f
2 changed files with 4 additions and 4 deletions
  1. 2
    2
      installer/windows/Uninstaller.dpr
  2. 2
    2
      src/com/dmdirc/commandline/RemoteServer.java

+ 2
- 2
installer/windows/Uninstaller.dpr View File

@@ -208,10 +208,10 @@ begin
208 208
 		showmessage('DMDirc has been uninstalled from "'+InstallDir+'".', 'Uninstall Successful');
209 209
 	end
210 210
 	else if askQuestion('This will uninstall DMDirc. '+#13#10+#13#10+'Do you want to continue?') then begin
211
-		if (ExecAndWait('java -jar ' + ExtractFileDir(paramstr(0)) + '\DMDirc.jar -k', true) <> 0) then begin
211
+		if (ExecAndWait('java -jar "' + ExtractFileDir(paramstr(0)) + '\DMDirc.jar" -k', true) <> 0) then begin
212 212
 			TempDir := GetTempDirectory;
213 213
 			CopyFile(pchar(paramstr(0)), pchar(TempDir+'/uninstall.exe'), false);
214
-			Launch(TempDir+'/uninstall.exe '+ExtractFileDir(paramstr(0))+'\');
214
+			Launch('"'+TempDir+'/uninstall.exe" '+ExtractFileDir(paramstr(0))+'\');
215 215
 		end else begin
216 216
 			showError('Uninstall Aborted - DMDirc is still running.', 'Please close DMDirc before continuing')
217 217
 		end;

+ 2
- 2
src/com/dmdirc/commandline/RemoteServer.java View File

@@ -41,9 +41,9 @@ import java.util.List;
41 41
 public class RemoteServer implements RemoteInterface {
42 42
     
43 43
     /** The minimum port to use for RMI binding. */
44
-    private static final int MINPORT = 1099;
44
+    private static final int MINPORT = 3634;
45 45
     /** The maximum port to use for RMI binding. */
46
-    private static final int MAXPORT = 1109;
46
+    private static final int MAXPORT = MINPORT + 5;
47 47
     /** The interface we're exposing. */
48 48
     private static final RemoteServer SERVER = new RemoteServer();
49 49
     

Loading…
Cancel
Save