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