Skip to content

Instantly share code, notes, and snippets.

@levymoreira
Created April 12, 2012 19:35
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save levymoreira/2370405 to your computer and use it in GitHub Desktop.
Save levymoreira/2370405 to your computer and use it in GitHub Desktop.
Exemplo Setup (INNO SETUP) instalação PostgreSql no Windows
; Levy Moreira - 12/04/2012
#define MyAppName "Program"
#define MyAppVersion "1.0"
#define MyAppPublisher "NextTi"
#define MyAppURL "http://www.nextti.com/"
#define MyAppExeName "Program.jar"
[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={{71419CEF-5E96-4965-81C9-EDC4203BDAB7}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName=C:\Program\
DefaultGroupName={#MyAppName}
OutputDir=D:\Projects\InstallPostgre\output
OutputBaseFilename=SetupProgram
Compression=lzma
SolidCompression=yes
[Languages]
Name: "portuguese"; MessagesFile: "compiler:Languages\Portuguese.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
Source: "D:\Projects\InstallPostgre\jars\Program.jar"; DestDir: "{app}"; Flags: ignoreversion
Source: "D:\Projects\InstallPostgre\jars\lib\*.*"; DestDir:{app}\lib;
Source: "D:\Projects\InstallPostgre\files\postgresql.exe"; DestDir:{tmp};
[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, "&", "&&")}}"; Flags: shellexec postinstall skipifsilent
Filename: "{tmp}\postgresql.exe"; Flags: runminimized; StatusMsg: Instalando PostgreSQL; Parameters: --mode unattended --unattendedmodeui minimal --superpassword root --prefix C:\Program\postgres --datadir C:\Program\data
;--create_shortcuts 0 (Adicione para não criar atalhos no postgre)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment