|
@@ -103,7 +103,7 @@ public class BundleVerifyGui extends javax.swing.JFrame
|
|
|
Main.baseDir=baseDir;//HOSENFOTZE DASS DU NICHT DA WARSTS
|
|
|
if (metadata.get("meta:needsElevation:")!= null &&Boolean.valueOf(metadata.get("meta:needsElevation:")))
|
|
|
{
|
|
|
- String basecmd = Tools.processEnvVarsinLine("-jar %appdata%/izsetup/izsetupLauncher.jar");
|
|
|
+ String basecmd = Tools.processEnvVarsinLine("-jar "+Main.class.getProtectionDomain().getCodeSource().getLocation().getPath());
|
|
|
if (!Detectors.detectisAdmin())
|
|
|
{
|
|
|
Tools.DebugHelperPrint("hab keine adminrechte :(", true, "iZsetup.enableCoreDebug");
|
|
@@ -113,7 +113,7 @@ public class BundleVerifyGui extends javax.swing.JFrame
|
|
|
{
|
|
|
cmd += " " + arg;
|
|
|
}
|
|
|
- Commands.executeAsAdministrator("java", cmd.trim());
|
|
|
+ Commands.executeAsAdministrator("java", (cmd).trim());
|
|
|
System.exit(0);
|
|
|
}
|
|
|
}
|