AFC / setup.iss
embedingHF's picture
Upload 2 files
a400527 verified
; 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;