embedingHF commited on
Commit
d5bf26c
·
verified ·
1 Parent(s): 4f13ef6

Delete setup_advanced.iss.txt

Browse files
Files changed (1) hide show
  1. setup_advanced.iss.txt +0 -172
setup_advanced.iss.txt DELETED
@@ -1,172 +0,0 @@
1
- ; Advanced Inno Setup Script for AI File Converter Pro
2
-
3
- [Setup]
4
- AppId={{AIFILE-CONVERTER-PRO-2024}}
5
- AppName=AI File Converter Pro
6
- AppVersion=2.0.0
7
- AppVerName=AI File Converter Pro 2.0
8
- AppPublisher=AI File Converter Team
9
- AppPublisherURL=https://your-website.com
10
- AppSupportURL=https://your-website.com/support
11
- AppUpdatesURL=https://your-website.com/updates
12
- DefaultDirName={autopf}\AI File Converter Pro
13
- DefaultGroupName=AI File Converter Pro
14
- AllowNoIcons=yes
15
- LicenseFile=LICENSE.txt
16
- OutputDir=InstallerOutput
17
- OutputBaseFilename=AI_File_Converter_Pro_v2.0_Setup
18
- SetupIconFile=logo.ico
19
- Compression=lzma2
20
- SolidCompression=yes
21
- WizardStyle=modern
22
- PrivilegesRequired=lowest
23
- ArchitecturesInstallIn64BitMode=x64compatible
24
- UninstallDisplayIcon={app}\AIFileConverter.exe
25
- UninstallDisplayName=AI File Converter Pro
26
-
27
- ; Version info
28
- VersionInfoVersion=2.0.0.0
29
- VersionInfoCompany=AI File Converter Team
30
- VersionInfoDescription=AI File Converter Pro Installer
31
- VersionInfoProductName=AI File Converter Pro
32
- VersionInfoProductVersion=2.0.0.0
33
- VersionInfoCopyright=Copyright © 2024
34
-
35
- ; Sign tool (if you have a certificate)
36
- ; SignTool=mysign
37
- ; SignedUninstaller=yes
38
-
39
- [Languages]
40
- Name: "english"; MessagesFile: "compiler:Default.isl"
41
- Name: "german"; MessagesFile: "compiler:Languages\German.isl"
42
- Name: "french"; MessagesFile: "compiler:Languages\French.isl"
43
- Name: "spanish"; MessagesFile: "compiler:Languages\Spanish.isl"
44
-
45
- [Tasks]
46
- Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
47
- Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 6.1
48
- Name: "associatefiles"; Description: "Associate supported file types with AI File Converter Pro"; GroupDescription: "File associations:"
49
-
50
- [Files]
51
- Source: "dist\AIFileConverter.exe"; DestDir: "{app}"; Flags: ignoreversion signonce
52
- Source: "logo.ico"; DestDir: "{app}"; Flags: ignoreversion
53
- Source: "logo.png"; DestDir: "{app}"; Flags: ignoreversion
54
- Source: "README.txt"; DestDir: "{app}"; Flags: ignoreversion; AfterInstall: CreateReadmeShortcut
55
-
56
- ; Include ffmpeg if bundled
57
- ; Source: "ffmpeg\*"; DestDir: "{app}\ffmpeg"; Flags: recursesubdirs createallsubdirs
58
-
59
- ; Include documentation
60
- ; Source: "docs\*"; DestDir: "{app}\docs"; Flags: recursesubdirs createallsubdirs
61
-
62
- [Icons]
63
- Name: "{group}\AI File Converter Pro"; Filename: "{app}\AIFileConverter.exe"; IconFilename: "{app}\logo.ico"; WorkingDir: "{app}"
64
- Name: "{group}\{cm:UninstallProgram,AI File Converter Pro}"; Filename: "{uninstallexe}"; IconFilename: "{app}\logo.ico"
65
- Name: "{autodesktop}\AI File Converter Pro"; Filename: "{app}\AIFileConverter.exe"; IconFilename: "{app}\logo.ico"; WorkingDir: "{app}"; Tasks: desktopicon
66
- Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\AI File Converter Pro"; Filename: "{app}\AIFileConverter.exe"; IconFilename: "{app}\logo.ico"; Tasks: quicklaunchicon
67
- Name: "{group}\Readme"; Filename: "{app}\README.txt"
68
-
69
- [Run]
70
- Filename: "{app}\AIFileConverter.exe"; Description: "{cm:LaunchProgram,AI File Converter Pro}"; Flags: nowait postinstall skipifsilent
71
-
72
- [UninstallDelete]
73
- Type: filesandordirs; Name: "{app}\*.log"
74
- Type: dirifempty; Name: "{app}"
75
-
76
- [Registry]
77
- ; Add to PATH (optional)
78
- ; Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; ValueType: expandsz; ValueName: "Path"; ValueData: "{olddata};{app}"; Check: IsAdminInstallMode
79
-
80
- ; File associations
81
- Root: HKCR; Subkey: ".mp3"; ValueType: string; ValueData: "AI_File_Converter_Pro.audio"; Flags: uninsdeletekey; Tasks: associatefiles
82
- Root: HKCR; Subkey: ".mp4"; ValueType: string; ValueData: "AI_File_Converter_Pro.video"; Flags: uninsdeletekey; Tasks: associatefiles
83
- Root: HKCR; Subkey: ".pdf"; ValueType: string; ValueData: "AI_File_Converter_Pro.document"; Flags: uninsdeletekey; Tasks: associatefiles
84
- Root: HKCR; Subkey: ".jpg"; ValueType: string; ValueData: "AI_File_Converter_Pro.image"; Flags: uninsdeletekey; Tasks: associatefiles
85
- Root: HKCR; Subkey: ".png"; ValueType: string; ValueData: "AI_File_Converter_Pro.image"; Flags: uninsdeletekey; Tasks: associatefiles
86
-
87
- [Code]
88
- var
89
- CustomPage: TWizardPage;
90
- ChkBoxCreateBackup: TNewCheckBox;
91
-
92
- procedure InitializeWizard;
93
- var
94
- WelcomeLabel: TNewStaticText;
95
- Page: TWizardPage;
96
- CustomLabel: TNewStaticText;
97
- begin
98
- // Custom Welcome Message
99
- WizardForm.WelcomeLabel2.Caption := 'Welcome to AI File Converter Pro 2.0!' + #13#10 +
100
- #13#10 +
101
- 'AI File Converter Pro is a powerful file conversion tool ' +
102
- 'that uses artificial intelligence to help you convert files ' +
103
- 'with natural language commands.' + #13#10 +
104
- #13#10 +
105
- 'Key Features:' + #13#10 +
106
- '• Support for documents, images, videos, and audio' + #13#10 +
107
- '• AI-powered format recommendations' + #13#10 +
108
- '• Natural language commands' + #13#10 +
109
- '• Batch processing with queue management' + #13#10 +
110
- '• High-quality conversion with optimization' + #13#10 +
111
- #13#10 +
112
- 'Click Next to continue or Cancel to exit setup.';
113
-
114
- // Custom page for additional options
115
- CustomPage := CreateCustomPage(wpSelectTasks, 'Additional Options', 'Select additional setup options');
116
- CustomLabel := TNewStaticText.Create(CustomPage);
117
- CustomLabel.Parent := CustomPage.Surface;
118
- CustomLabel.Caption := 'Choose additional options for the installation:';
119
- CustomLabel.Top := 0;
120
- CustomLabel.Width := CustomPage.SurfaceWidth;
121
-
122
- ChkBoxCreateBackup := TNewCheckBox.Create(CustomPage);
123
- ChkBoxCreateBackup.Parent := CustomPage.Surface;
124
- ChkBoxCreateBackup.Caption := 'Create a backup of previous installation';
125
- ChkBoxCreateBackup.Top := 30;
126
- ChkBoxCreateBackup.Width := CustomPage.SurfaceWidth;
127
- ChkBoxCreateBackup.Checked := False;
128
- end;
129
-
130
- procedure CurStepChanged(CurStep: TSetupStep);
131
- begin
132
- if CurStep = ssPostInstall then
133
- begin
134
- // Create a log file of installation
135
- SaveStringToFile(ExpandConstant('{app}\install_log.txt'),
136
- 'Installation completed at ' + GetDateTimeString('yyyy-mm-dd hh:nn:ss', #0, #0) + #13#10,
137
- False);
138
-
139
- // Add custom post-installation steps here
140
- if ChkBoxCreateBackup.Checked then
141
- begin
142
- // Backup logic here
143
- Log('Creating backup...');
144
- end;
145
- end;
146
- end;
147
-
148
- function NeedRestart(): Boolean;
149
- begin
150
- Result := False;
151
- end;
152
-
153
- procedure CreateReadmeShortcut();
154
- begin
155
- // Custom post-install action for README
156
- SaveStringToFile(ExpandConstant('{app}\README.txt'),
157
- 'AI File Converter Pro' + #13#10 +
158
- '=====================' + #13#10 + #13#10 +
159
- 'Thank you for installing AI File Converter Pro!' + #13#10 + #13#10 +
160
- 'Quick Start:' + #13#10 +
161
- '1. Launch the application' + #13#10 +
162
- '2. Select file type (Document/Image/Video/Audio)' + #13#10 +
163
- '3. Add files to convert' + #13#10 +
164
- '4. Choose output format' + #13#10 +
165
- '5. Click Start Conversion' + #13#10 + #13#10 +
166
- 'Using AI Assistant:' + #13#10 +
167
- '- Type "convert this to pdf" to change format' + #13#10 +
168
- '- Ask "best format for web" for recommendations' + #13#10 +
169
- '- Say "analyze this file" for file insights' + #13#10 + #13#10 +
170
- 'For support, visit: https://your-website.com/support',
171
- False);
172
- end;