Forked from levymoreira/SetupInnoSetupPostgreSql.iss
Created
November 13, 2015 16:52
-
-
Save kaissi/0d6bcbf39541eccedb96 to your computer and use it in GitHub Desktop.
Exemplo Setup (INNO SETUP) instalação PostgreSql no Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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