Это файл install4j isnatallations.exe, как запустить обнаружение Windows 10, команда Let?

Это файл install4j isnatallations.exe, как запустить обнаружение Windows 10, команда Let?

установщик: https://www.ej-technologies.com/resources/install4j/help/doc/help.pdf

сейчас времена слова идут декомпиляция

число 1

import com.install4j.api.Util;
import com.install4j.api.actions.InstallAction;
import com.install4j.api.context.InstallerContext;
import com.install4j.runtime.installer.helper.Script;
import com.install4j.runtime.util.PrimitiveWrapper;
import de.volkswagen.odis.singlesetup.installer.PlatformInformation;
import java.util.ArrayList;
import java.util.List;

public class I4jScript_Internal_35
  extends Script
{
  private static final long serialVersionUID = 1L;

  private Object eval(InstallerContext paramInstallerContext, InstallAction paramInstallAction)
    throws Exception
  {
    PlatformInformation localPlatformInformation = new PlatformInformation(paramInstallerContext);
    Integer localInteger = (Integer)paramInstallerContext.getVariable("DiagInterfaceActive");
    String str1 = (String)paramInstallerContext.getVariable("installation.platform.id");
    List localList = localPlatformInformation.getSupportedDiagnosticInterfaces(str1);
    if (!Util.isWindows7())
    {
      localObject = new ArrayList(localList);
     [b] ((ArrayList)localObject).remove("DIF-VAS5054-OE");
      ((ArrayList)localObject).remove("DIF-VAS5055-OE");
      Util.logInfo(null, "supported devices are (Windows 10)" + localObject);[/b]
      String str2 = localPlatformInformation.getValue(localInteger.intValue(), (List)localObject);
      Util.logInfo(null, "change variable context_device_id to" + str2);
      return str2;
    }
    [b]Util.logInfo(null, "supported devices are (windows 7) " + localList);
    Object localObject = localPlatformInformation.getValue(localInteger.intValue(), localList);
    Util.logInfo(null, "change variable context_device_id to" + (String)localObject);[/b]

    return localObject;
  }

  protected Object evaluate(Object[] paramArrayOfObject)
    throws Exception
  {
    return PrimitiveWrapper.wrap(eval((InstallerContext)paramArrayOfObject[0], (InstallAction)paramArrayOfObject[1]));
  }
}

[И] [б]Nummer2:[/ B] [/ U]

import com.install4j.api.Util;
import com.install4j.api.context.InstallerContext;
import com.install4j.api.formcomponents.FormEnvironment;
import com.install4j.api.screens.InstallerScreen;
import com.install4j.runtime.installer.helper.Script;
import de.volkswagen.odis.singlesetup.installer.PlatformInformation;
import de.volkswagen.odis.singlesetup.installer.screen.ScpChecker;
import java.util.Arrays;
import java.util.List;
import org.apache.commons.lang.ArrayUtils;

public class I4jScript_Internal_34
  extends Script
{
  private static final long serialVersionUID = 1L;

  private void eval(InstallerContext paramInstallerContext, InstallerScreen paramInstallerScreen, FormEnvironment paramFormEnvironment)
    throws Exception
  {
    ScpChecker.hideCancelButton(paramInstallerContext);

    Util.logInfo(null, "translate device names for platform.");
    String str = (String)paramInstallerContext.getVariable("installation.platform.id");
    Util.logInfo(null, "translate device names for platform <" + str + ">");
    PlatformInformation localPlatformInformation = new PlatformInformation(paramInstallerContext);
    List localList = localPlatformInformation.getSupportedDiagnosticInterfaces(str);
    String[] arrayOfString = localPlatformInformation.translateDeviceNames(str, localList, paramInstallerContext);
    if (!Util.isWindows7())
    {
      Util.logInfo(null, "listDiagInterface before remove" + Arrays.toString(arrayOfString));
      Util.logInfo(null, "Windows 10 - don't show VAS 5054 and VAS 5055");
      arrayOfString = (String[])ArrayUtils.remove(arrayOfString, 0);
      Util.logInfo(null, "VAS 5054 removed");
      arrayOfString = (String[])ArrayUtils.remove(arrayOfString, 0);
      Util.logInfo(null, "VAS 5055 removed");
      Util.logInfo(null, "listDiagInterface after remove" + Arrays.toString(arrayOfString));
      paramInstallerContext.setVariable("language.SelectDiagnosticInterface", arrayOfString);
    }
    else
    {
      Util.logInfo(null, "Windows 7 - show all diagnostic interfaces");
      Util.logInfo(null, "listDiagInterface" + Arrays.toString(arrayOfString));
      paramInstallerContext.setVariable("language.SelectDiagnosticInterface", arrayOfString);
    }
    Util.logInfo(null, "translated device names for platform <" + str + ">" + arrayOfString);
  }

  protected Object evaluate(Object[] paramArrayOfObject)
    throws Exception
  {
    eval((InstallerContext)paramArrayOfObject[0], (InstallerScreen)paramArrayOfObject[1], (FormEnvironment)paramArrayOfObject[2]);
    return null;
  }
}

[u] [b] Удалить панель управления Windows Xp erkennt: [/ b] [/ u]

import com.install4j.api.Util;
import com.install4j.api.actions.InstallAction;
import com.install4j.api.context.InstallerContext;
import com.install4j.runtime.installer.helper.Script;
import com.install4j.runtime.util.PrimitiveWrapper;
import java.util.MissingResourceException;

public class I4jScript_Internal_2
  extends Script
{
  private static final long serialVersionUID = 1L;

  private boolean eval(InstallerContext paramInstallerContext, InstallAction paramInstallAction)
    throws Exception
  {
    String str1 = null;
    String str2 = null;
    String[] arrayOfString1 = { "Fortsetzen", "Abbrechen" };
    try
    {
      try
      {
        str2 = paramInstallerContext.getMessage(paramInstallerContext.getCompilerVariable("[b]sys.shortName[/b]"));
        arrayOfString1[0] = paramInstallerContext.getMessage("ButtonContinue");
        arrayOfString1[1] = paramInstallerContext.getMessage("ButtonCancel");
      }
      catch (MissingResourceException localMissingResourceException1)
      {
        str2 = "Offboard Diagnostic Information System Service";
      }
      String[] arrayOfString2 = { str2, "Windows XP" };
      str1 = paramInstallerContext.getMessage("OS_Warning1", arrayOfString2) + paramInstallerContext.getMessage("OS_Warning2", arrayOfString2);
    }
    catch (MissingResourceException localMissingResourceException2)
    {
      Util.logInfo("Welcomescreen", " Missing resources");
      str1 = "Hello F�r die Verwendung von Offboard Diagnostic Information System Service unter Windows XP\n wird kein Support mehr geleistet.\n";
      str1 = str1 + "Wenn Sie Offboard Diagnostic Information System Service unter Windows XP installieren und verwenden,\n";
      str1 = str1 + "kann dies zu Fehlfunktionen w�hrend der Diagnose f�hren.";
    }
    Util.logInfo("Welcomescreen", str1);
    int i = Util.showOptionDialog(str1, arrayOfString1, 2);
    Util.logInfo("Welcomescreen:", "Userdecision" + (i == 1 ? "CANCEL" : "CONTINUE"));
    return i == 0;
  }

  protected Object evaluate(Object[] paramArrayOfObject)
    throws Exception
  {
    return PrimitiveWrapper.wrap(eval((InstallerContext)paramArrayOfObject[0], (InstallAction)paramArrayOfObject[1]));
  }
}

[b] [u] Канн Ман Дамит Умгеен: [/ u] [/ b]

import com.install4j.api.ApplicationRegistry;
import com.install4j.api.ApplicationRegistry.ApplicationInfo;
import com.install4j.api.Util;
import com.install4j.api.context.InstallerContext;
import com.install4j.api.screens.InstallerScreen;
import com.install4j.runtime.installer.helper.Script;
import com.install4j.runtime.util.PrimitiveWrapper;

public class I4jScript_Internal_19
  extends Script
{
  private static final long serialVersionUID = 1L;

  private boolean eval(InstallerContext paramInstallerContext, InstallerScreen paramInstallerScreen)
    throws Exception
  {
    String str1 = paramInstallerContext.getApplicationId();
    ApplicationRegistry.ApplicationInfo[] arrayOfApplicationInfo = ApplicationRegistry.getApplicationInfoById(str1);
    String str2 = "check for installed ID = " + str1 + " installationcount: " + arrayOfApplicationInfo.length;
    boolean bool = false;
    if (arrayOfApplicationInfo.length > 0)
    {
      str2 = str2 + " => installation exists => show info text";
      bool = true;
      String str3 = paramInstallerContext.getCompilerVariable("sys.shortName");
      Boolean localBoolean = Boolean.valueOf(("PRD-ODISEngin".equals(str3)) || ("PRD-ODISEnginProdi".equals(str3)));
      if (localBoolean.booleanValue())
      {
        Util.logInfo(null, "Ignore Install-Check for " + paramInstallerContext.getCompilerVariable("sys.shortName"));
        bool = false;
      }
    }
    else
    {
      str2 = str2 + " => installation not exists => don't show info text";
    }
    Util.logInfo(null, str2);
    return bool;
  }

  protected Object evaluate(Object[] paramArrayOfObject)
    throws Exception
  {
    return PrimitiveWrapper.wrap(eval((InstallerContext)paramArrayOfObject[0], (InstallerScreen)paramArrayOfObject[1]));
  }
}

0 ответов

Другие вопросы по тегам