File size: 4,381 Bytes
a400527
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
; Inno Setup Script for AI File Converter Pro
; Put this file in your project directory

[Setup]
; Basic information
AppId={{8A5C3D2E-1F4B-4A9E-8D7C-6B5A4E3D2C1B}}
AppName=AI File Converter Pro
AppVersion=2.0
AppPublisher=AI File Converter Team
AppPublisherURL=https://your-website.com
AppSupportURL=https://your-website.com/support
AppUpdatesURL=https://your-website.com/updates
DefaultDirName={autopf}\AI File Converter Pro
DefaultGroupName=AI File Converter Pro
AllowNoIcons=yes
LicenseFile=LICENSE.txt
OutputDir=installer
OutputBaseFilename=AI_File_Converter_Pro_Setup
SetupIconFile=logo.ico
Compression=lzma2/ultra64
SolidCompression=yes
WizardStyle=modern
PrivilegesRequired=lowest
ArchitecturesInstallIn64BitMode=x64compatible

; Disk space requirements
ExtraDiskSpaceRequired=200000000

; Uninstaller
UninstallDisplayIcon={app}\AIFileConverter.exe
UninstallDisplayName=AI File Converter Pro

[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 6.1; Check: not IsAdminInstallMode

[Files]
; Main application
Source: "dist\AIFileConverter.exe"; DestDir: "{app}"; Flags: ignoreversion

; Logo files (if you want to include them for reference)
Source: "logo.ico"; DestDir: "{app}"; Flags: ignoreversion
Source: "logo.png"; DestDir: "{app}"; Flags: ignoreversion

; Optional: Include any additional resources
; Source: "assets\*"; DestDir: "{app}\assets"; Flags: recursesubdirs createallsubdirs

; Optional: Include ffmpeg if needed (uncomment if you want to bundle ffmpeg)
; Source: "ffmpeg\bin\*"; DestDir: "{app}\ffmpeg\bin"; Flags: recursesubdirs createallsubdirs

[Icons]
Name: "{group}\AI File Converter Pro"; Filename: "{app}\AIFileConverter.exe"; IconFilename: "{app}\logo.ico"
Name: "{group}\{cm:UninstallProgram,AI File Converter Pro}"; Filename: "{uninstallexe}"
Name: "{autodesktop}\AI File Converter Pro"; Filename: "{app}\AIFileConverter.exe"; IconFilename: "{app}\logo.ico"; Tasks: desktopicon
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\AI File Converter Pro"; Filename: "{app}\AIFileConverter.exe"; IconFilename: "{app}\logo.ico"; Tasks: quicklaunchicon

[Run]
; Run the application after installation (optional)
Filename: "{app}\AIFileConverter.exe"; Description: "{cm:LaunchProgram,AI File Converter Pro}"; Flags: nowait postinstall skipifsilent

[Registry]
; Optional: Add registry entries for file associations
; Root: "HKCR"; Subkey: ".aifc"; ValueType: "string"; ValueData: "AIFF File"; Flags: uninsdeletekey
; Root: "HKCR"; Subkey: "AIFileConverter\shell\open\command"; ValueType: "string"; ValueData: """{app}\AIFileConverter.exe"" ""%1"""; Flags: uninsdeletekey

[Code]
// Custom code to check if files are in use
function InitializeSetup(): Boolean;
begin
  Result := True;
  // You can add custom initialization code here
end;

procedure CurStepChanged(CurStep: TSetupStep);
begin
  if CurStep = ssPostInstall then
  begin
    // Post-installation actions
    // For example: create desktop shortcut if not created
  end;
end;

// Function to create a custom welcome message
procedure InitializeWizard;
var
  WelcomeLabel: TNewStaticText;
begin
  // Custom welcome text can be added here
  WizardForm.WelcomeLabel2.Caption := 'Welcome to AI File Converter Pro!' + #13#10 + 
                                      #13#10 +
                                      'This wizard will guide you through the installation of ' +
                                      'AI File Converter Pro, the ultimate file conversion tool ' +
                                      'with AI assistance.' + #13#10 +
                                      #13#10 +
                                      'Features:' + #13#10 +
                                      '• Convert documents, images, videos, and audio' + #13#10 +
                                      '• AI-powered format recommendations' + #13#10 +
                                      '• Natural language commands' + #13#10 +
                                      '• Batch processing support';
end;