|
1 | 1 | [Setup] |
2 | 2 | AppName=YourAppName |
3 | 3 | AppVersion=1.0 |
4 | | -DefaultDirName={pf}\YourAppName |
5 | | -DefaultGroupName=YourAppName |
| 4 | +DefaultDirName={pf}\CalibreImport |
| 5 | +DefaultGroupName=Calibre Import Shell Extension |
6 | 6 | UninstallDisplayIcon={app}\YourApp.exe |
7 | | -OutputDir=. |
8 | | -OutputBaseFilename=SetupYourApp |
| 7 | +OutputDir=..\ReleaseFiles |
| 8 | +OutputBaseFilename=CalibreImportSetup |
9 | 9 | Compression=lzma |
10 | 10 | SolidCompression=yes |
11 | 11 |
|
12 | 12 | [Files] |
13 | | -Source: "YourApp.dll"; DestDir: "{app}"; Flags: ignoreversion |
14 | | -Source: "YourSettingsFile.ini"; DestDir: "{userappdata}\YourAppName"; Flags: ignoreversion |
| 13 | +Source: "..\ReleaseFiles\CalibreImport.dll"; DestDir: "{app}"; Flags: ignoreversion |
| 14 | +Source: "..\ReleaseFiles\CalibreImport.config"; DestDir: "{userappdata}\YourAppName"; Flags: ignoreversion |
15 | 15 |
|
16 | 16 | [Icons] |
17 | 17 | Name: "{group}\YourAppName"; Filename: "{app}\YourApp.exe" |
|
23 | 23 | InstallPath: String; |
24 | 24 |
|
25 | 25 | function IsDotNet48Installed: Boolean; |
| 26 | +var |
| 27 | + ReleaseVersion: Cardinal; |
26 | 28 | begin |
27 | | - Result := RegKeyExists(HKEY_LOCAL_MACHINE, 'SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full') and |
28 | | - (RegQueryDWordValue(HKEY_LOCAL_MACHINE, 'SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full', 'Release') >= 528040); |
| 29 | + Result := False; |
| 30 | + if RegKeyExists(HKEY_LOCAL_MACHINE, 'SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full') then |
| 31 | + begin |
| 32 | + if RegQueryDWordValue(HKEY_LOCAL_MACHINE, 'SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full', 'Release', ReleaseVersion) then |
| 33 | + begin |
| 34 | + Result := (ReleaseVersion >= 528040); |
| 35 | + end; |
| 36 | + end; |
29 | 37 | end; |
30 | 38 |
|
31 | 39 | procedure InitializeWizard; |
32 | 40 | begin |
| 41 | + { Check for .NET Framework 4.8 } |
33 | 42 | if not IsDotNet48Installed then |
34 | 43 | begin |
35 | 44 | MsgBox('This application requires .NET Framework 4.8. Please install it and then run this setup again.', mbError, MB_OK); |
36 | 45 | Abort; |
37 | 46 | end; |
38 | 47 |
|
| 48 | + { Initialize variables } |
39 | 49 | PortableMode := False; |
40 | 50 | RestartExplorer := False; |
41 | 51 |
|
|
0 commit comments