| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 | #define MyAppName "Printers Tray"#define MyAppVersion "0.0.1"#define MyAppPublisher "Eiru Software"#define MyAppURL "http://www.eiru.com.py/"#define MyAppExeName "printers-tray.bat"[Setup]AppId={{3E5917E1-53C8-4930-A5BD-ADA89B7841F9}AppName={#MyAppName}AppVersion={#MyAppVersion};AppVerName={#MyAppName} {#MyAppVersion}AppPublisher={#MyAppPublisher}AppPublisherURL={#MyAppURL}AppSupportURL={#MyAppURL}AppUpdatesURL={#MyAppURL}DefaultDirName={pf}\{#MyAppName}DefaultGroupName={#MyAppName}OutputDir=C:\Users\Robert\Documents\printers-trayOutputBaseFilename=printers-trayCompression=lzmaSolidCompression=yesArchitecturesInstallIn64BitMode=x64PrivilegesRequired=adminRestartApplications=yesAlwaysRestart=yes[Languages]Name: "spanish"; MessagesFile: "compiler:Languages\Spanish.isl"[Files]Source: "C:\Users\Robert\Documents\printers-tray\printers-tray*.jar"; DestDir: "{app}"; Flags: ignoreversionSource: "C:\Users\Robert\Documents\printers-tray\lib\*"; DestDir: "{app}\lib"; Flags: ignoreversion recursesubdirs createallsubdirsSource: "C:\Users\Robert\Documents\printers-tray\printers-tray.bat"; DestDir: "{app}"; Flags: ignoreversion Source: "C:\Users\Robert\Documents\printers-tray\printers-tray.ico"; DestDir: "{app}"; Flags: ignoreversion[Icons]Name: "{commonstartup}\{#MyAppName}"; Filename: "{app}\printers-tray.bat"; IconFilename: "{app}\printers-tray.ico"[Code]const	REQUIRED_JAVA_VERSION = '1.8';function InitializeSetup(): Boolean;var	JavaVersion: String;	ErrorCode: Integer;begin	if RegQueryStringValue(HKLM, 'SOFTWARE\JavaSoft\Java Runtime Environment', 'CurrentVersion', JavaVersion) then	begin		Result := CompareStr(JavaVersion, REQUIRED_JAVA_VERSION) >= 0;	end;	if Result = False then	begin		if MsgBox('Este programa requiere Java 1.8 o superior. Desea descargarlo ahora?', mbConfirmation, MB_YESNO) = IDYES then		begin			ShellExec('open', 'https://java.com/download', '', '', SW_SHOWNORMAL, ewNoWait, ErrorCode);		end;	end;end;
 |