SPARK-341 Online installer needs a minimum JRE preference of 1.5

SPARK-343  	 Spark does not handle upgrades with the online tag.

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@5290 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Derek DeMoro
2006-09-08 18:11:48 +00:00
committed by derek
parent 865f966bd3
commit e0e35a9806

View File

@ -17,6 +17,7 @@ import com.install4j.api.UserCanceledException;
import com.install4j.api.windows.WinRegistry;
import java.io.File;
import java.io.IOException;
public class Installer extends InstallAction {
@ -43,16 +44,18 @@ public class Installer extends InstallAction {
public void addStartup(File dir) {
File jivec = new File(dir, "Spark.exe");
String path = jivec.getAbsolutePath();
WinRegistry.setValue(WinRegistry.HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Run", "Spark", path);
try {
String path = jivec.getCanonicalPath();
WinRegistry.setValue(WinRegistry.HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Run", "Spark", path);
addURIMapping(dir);
addURIMapping(dir, path);
}
catch (IOException e) {
e.printStackTrace();
}
}
private void addURIMapping(File dir) {
File jivec = new File(dir, "Spark.exe");
String path = jivec.getAbsolutePath();
private void addURIMapping(File dir, String path) {
boolean exists = WinRegistry.keyExists(WinRegistry.HKEY_CLASSES_ROOT, "xmpp");
if (exists) {
}