source: ProjectTemplates/FileMenuProject/Install/win/FileMenuProject.iss

Last change on this file was 500, checked in by chronos, 7 years ago
  • Modified: Place application executable to main project directory and copy it elsewhere in build.bat script.
File size: 3.6 KB
Line 
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.)
19AppId={{B68CA6BD-A768-45D5-9F72-E9645BBCCD3A}
20AppName={#MyAppName}
21#ifdef MyAppVersionSuffix
22AppVersion={#MyAppVersion}-{#MyAppVersionSuffix}
23AppVerName={#MyAppName} {#MyAppVersion}-{#MyAppVersionSuffix}
24OutputBaseFilename=Install-{#MyAppNameShort}-{#MyAppVersion}-{#MyAppVersionSuffix}
25#else
26AppVersion={#MyAppVersion}
27AppVerName={#MyAppName} {#MyAppVersion}
28OutputBaseFilename=Install-{#MyAppNameShort}-{#MyAppVersion}
29#endif
30VersionInfoVersion={#MyAppVersion}
31VersionInfoCompany={#MyAppPublisher}
32AppPublisher={#MyAppPublisher}
33AppPublisherURL={#MyAppURL}
34AppSupportURL={#MyAppURL}
35AppUpdatesURL={#MyAppURL}
36DefaultDirName={pf}\{#MyAppPublisherShort}\{#MyAppName}
37DefaultGroupName={#MyAppPublisherShort}\{#MyAppName}
38AllowNoIcons=yes
39OutputDir=.
40Compression=lzma
41SolidCompression=yes
42ChangesAssociations=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".
47ArchitecturesInstallIn64BitMode=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]
53Name: "english"; MessagesFile: "compiler:Default.isl"
54Name: "czech"; MessagesFile: "compiler:Languages\Czech.isl"
55;Name: "slovak"; MessagesFile: "compiler:Languages\Slovak.isl"
56
57[Tasks]
58Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags:
59
60[Registry]
61Root: 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]
70Source: "{#MyAppSubDir}\lib\x86_64-win64-Release\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion; Check: Is64BitInstallMode
71Source: "{#MyAppSubDir}\lib\i386-win32-Release\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion; Check: not Is64BitInstallMode
72Source: "{#MyAppSubDir}\Languages\*.po"; DestDir: "{app}\Languages"; Flags: ignoreversion
73
74
75[Icons]
76Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
77Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
78Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
79
80[Run]
81Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, "&", "&&")}}"; Flags: nowait postinstall skipifsilent
82
Note: See TracBrowser for help on using the repository browser.