| 1 | ; Script generated by the Inno Setup Script Wizard.
|
|---|
| 2 | ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
|---|
| 3 |
|
|---|
| 4 | #define MyAppName "FileMenuProject"
|
|---|
| 5 | #define MyAppNameShort "FileMenuProject"
|
|---|
| 6 | #define MyAppVersion "1.0.0"
|
|---|
| 7 | #define MyAppVersionSuffix "alfa"
|
|---|
| 8 | #define MyAppPublisher "Author"
|
|---|
| 9 | #define MyAppPublisherShort "author"
|
|---|
| 10 | #define MyAppURL "http://application.com"
|
|---|
| 11 | #define MyAppExeName "FileMenuProject.exe"
|
|---|
| 12 | #define MyAppDebugName "FileMenuProject.dbg"
|
|---|
| 13 | #define MyAppSubDir "../.."
|
|---|
| 14 |
|
|---|
| 15 | [Setup]
|
|---|
| 16 | ; NOTE: The value of AppId uniquely identifies this application.
|
|---|
| 17 | ; Do not use the same AppId value in installers for other applications.
|
|---|
| 18 | ; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
|
|---|
| 19 | AppId={{B68CA6BD-A768-45D5-9F72-E9645BBCCD3A}
|
|---|
| 20 | AppName={#MyAppName}
|
|---|
| 21 | #ifdef MyAppVersionSuffix
|
|---|
| 22 | AppVersion={#MyAppVersion}-{#MyAppVersionSuffix}
|
|---|
| 23 | AppVerName={#MyAppName} {#MyAppVersion}-{#MyAppVersionSuffix}
|
|---|
| 24 | OutputBaseFilename=Install-{#MyAppNameShort}-{#MyAppVersion}-{#MyAppVersionSuffix}
|
|---|
| 25 | #else
|
|---|
| 26 | AppVersion={#MyAppVersion}
|
|---|
| 27 | AppVerName={#MyAppName} {#MyAppVersion}
|
|---|
| 28 | OutputBaseFilename=Install-{#MyAppNameShort}-{#MyAppVersion}
|
|---|
| 29 | #endif
|
|---|
| 30 | VersionInfoVersion={#MyAppVersion}
|
|---|
| 31 | VersionInfoCompany={#MyAppPublisher}
|
|---|
| 32 | AppPublisher={#MyAppPublisher}
|
|---|
| 33 | AppPublisherURL={#MyAppURL}
|
|---|
| 34 | AppSupportURL={#MyAppURL}
|
|---|
| 35 | AppUpdatesURL={#MyAppURL}
|
|---|
| 36 | DefaultDirName={pf}\{#MyAppPublisherShort}\{#MyAppName}
|
|---|
| 37 | DefaultGroupName={#MyAppPublisherShort}\{#MyAppName}
|
|---|
| 38 | AllowNoIcons=yes
|
|---|
| 39 | OutputDir=.
|
|---|
| 40 | Compression=lzma
|
|---|
| 41 | SolidCompression=yes
|
|---|
| 42 | ChangesAssociations=yes
|
|---|
| 43 | ; "ArchitecturesInstallIn64BitMode=x64" requests that the install be
|
|---|
| 44 | ; done in "64-bit mode" on x64, meaning it should use the native
|
|---|
| 45 | ; 64-bit Program Files directory and the 64-bit view of the registry.
|
|---|
| 46 | ; On all other architectures it will install in "32-bit mode".
|
|---|
| 47 | ArchitecturesInstallIn64BitMode=x64
|
|---|
| 48 | ; Note: We don't set ProcessorsAllowed because we want this
|
|---|
| 49 | ; installation to run on all architectures (including Itanium,
|
|---|
| 50 | ; since it's capable of running 32-bit code too).
|
|---|
| 51 |
|
|---|
| 52 | [Languages]
|
|---|
| 53 | Name: "english"; MessagesFile: "compiler:Default.isl"
|
|---|
| 54 | Name: "czech"; MessagesFile: "compiler:Languages\Czech.isl"
|
|---|
| 55 | ;Name: "slovak"; MessagesFile: "compiler:Languages\Slovak.isl"
|
|---|
| 56 |
|
|---|
| 57 | [Tasks]
|
|---|
| 58 | Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags:
|
|---|
| 59 |
|
|---|
| 60 | [Registry]
|
|---|
| 61 | Root: HKCU; Subkey: "Software\Author\Application"; Flags: uninsdeletekey
|
|---|
| 62 |
|
|---|
| 63 | ;#define FileTypeName "Application project"
|
|---|
| 64 | ;Root: HKCR; Subkey: ".dat"; ValueType: string; ValueName: ""; ValueData: "{#FileTypeName}"; Flags: uninsdeletevalue
|
|---|
| 65 | ;Root: HKCR; Subkey: "{#FileTypeName}"; ValueType: string; ValueName: ""; ValueData: "{#FileTypeName}"; Flags: uninsdeletekey
|
|---|
| 66 | ;Root: HKCR; Subkey: "{#FileTypeName}\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#MyAppExeName},0"
|
|---|
| 67 | ;Root: HKCR; Subkey: "{#FileTypeName}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1"""
|
|---|
| 68 |
|
|---|
| 69 | [Files]
|
|---|
| 70 | Source: "{#MyAppSubDir}\lib\x86_64-win64-Release\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion; Check: Is64BitInstallMode
|
|---|
| 71 | Source: "{#MyAppSubDir}\lib\i386-win32-Release\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion; Check: not Is64BitInstallMode
|
|---|
| 72 | Source: "{#MyAppSubDir}\Languages\*.po"; DestDir: "{app}\Languages"; Flags: ignoreversion
|
|---|
| 73 |
|
|---|
| 74 |
|
|---|
| 75 | [Icons]
|
|---|
| 76 | Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
|
|---|
| 77 | Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
|
|---|
| 78 | Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
|
|---|
| 79 |
|
|---|
| 80 | [Run]
|
|---|
| 81 | Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, "&", "&&")}}"; Flags: nowait postinstall skipifsilent
|
|---|
| 82 |
|
|---|