67 lines
2.9 KiB
Plaintext
67 lines
2.9 KiB
Plaintext
; Script generated by the Inno Setup Script Wizard.
|
|
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
|
|
|
#define MyAppName "FMovel"
|
|
#define MyAppVersion "1.0.1.9"
|
|
#define MyAppPublisher "Zendion, Inc."
|
|
#define MyAppURL "https://zendioninc.mooo.com"
|
|
#define MyAppExeName "FMovel.exe"
|
|
#define DependenceName1 "netframework_4.5.2.exe"
|
|
#define DependenceName2 "xampp_x64.exe"
|
|
|
|
[Setup]
|
|
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
|
|
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
|
|
AppId={{5936A36D-C4AA-455F-8C1E-0B611E89DF9A}
|
|
AppName={#MyAppName}
|
|
AppVersion={#MyAppVersion}
|
|
;AppVerName={#MyAppName} {#MyAppVersion}
|
|
AppPublisher={#MyAppPublisher}
|
|
AppPublisherURL={#MyAppURL}
|
|
AppSupportURL={#MyAppURL}
|
|
AppUpdatesURL={#MyAppURL}
|
|
DefaultDirName={autopf}\Zendion Inc\{#MyAppName}
|
|
DisableProgramGroupPage=yes
|
|
InfoBeforeFile=C:\Zendion Inc\fmovel\Instalador\Leia-me.txt
|
|
InfoAfterFile=C:\Zendion Inc\fmovel\Instalador\Leia-me.txt
|
|
; Uncomment the following line to run in non administrative install mode (install for current user only.)
|
|
;PrivilegesRequired=lowest
|
|
OutputBaseFilename=fmovel_install_x64
|
|
Compression=lzma
|
|
SolidCompression=yes
|
|
WizardStyle=modern
|
|
|
|
[Languages]
|
|
Name: "brazilianportuguese"; MessagesFile: "compiler:Languages\BrazilianPortuguese.isl"
|
|
|
|
[Tasks]
|
|
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
|
|
|
[Files]
|
|
Source: "C:\Zendion Inc\fmovel\FMovel\FMovel\bin\Debug\FMovel.exe"; DestDir: "{app}"; Flags: ignoreversion
|
|
Source: "C:\Zendion Inc\fmovel\FMovel\FMovel\bin\Debug\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
|
Source: "C:\Zendion Inc\fmovel\Instalador\netframework_4.5.2.exe"; DestDir: "{app}"; Flags: ignoreversion
|
|
Source: "C:\Zendion Inc\fmovel\Instalador\xampp_x64.exe"; DestDir: "{app}"; Flags: ignoreversion
|
|
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
|
|
|
[Icons]
|
|
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
|
|
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
|
|
|
|
[Run]
|
|
Filename: "{app}\{#DependenceName1}"; StatusMsg: "Installing {#DependenceName1}";
|
|
Filename: "{app}\{#DependenceName2}"; StatusMsg: "Installing {#DependenceName2}";
|
|
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
|
|
|
|
[Code]
|
|
procedure RunOtherInstaller;
|
|
var
|
|
ResultCode: Integer;
|
|
begin
|
|
if not Exec(ExpandConstant('{app}\netframework_4.5.2.exe'), '', '', SW_SHOWNORMAL, ewWaitUntilTerminated, ResultCode)
|
|
or
|
|
not Exec(ExpandConstant('{app}\xampp_x64.exe'), '', '', SW_SHOWNORMAL, ewWaitUntilTerminated, ResultCode)
|
|
then
|
|
MsgBox('netframework_4.5.2 failed to run!' + #13#10 +
|
|
SysErrorMessage(ResultCode), mbError, MB_OK);
|
|
end; |