2026-01-05 23:12:38 -07:00
|
|
|
#define APPNAM "ZoiteChat"
|
2013-12-27 12:05:07 -08:00
|
|
|
#define APPVER "<#= [string]::Join('.', $versionParts) #>"
|
2013-10-05 15:55:56 -04:00
|
|
|
; These are defined by our installer project at build time
|
|
|
|
|
;#define APPARCH "x64"
|
2026-01-05 23:12:38 -07:00
|
|
|
;#define PROJECTDIR "C:\...\zoitechat\win32\installer\"
|
2013-10-05 15:55:56 -04:00
|
|
|
|
2013-11-09 03:47:24 -05:00
|
|
|
;http://mitrich.net23.net/?/inno-download-plugin.html
|
2026-02-15 09:34:30 -07:00
|
|
|
#ifexist "idp.iss"
|
|
|
|
|
#define USE_INNO_DOWNLOAD_PLUGIN
|
2013-11-09 03:47:24 -05:00
|
|
|
#include <idp.iss>
|
2026-02-15 09:34:30 -07:00
|
|
|
#endif
|
2013-11-09 03:47:24 -05:00
|
|
|
|
2013-10-05 15:55:56 -04:00
|
|
|
[Setup]
|
2026-01-05 23:12:38 -07:00
|
|
|
AppName=ZoiteChat
|
2013-10-05 15:55:56 -04:00
|
|
|
AppVersion={#APPVER}
|
2026-01-05 23:12:38 -07:00
|
|
|
AppVerName=ZoiteChat {#APPVER}
|
|
|
|
|
AppPublisher=ZoiteChat
|
2026-01-14 12:54:25 -07:00
|
|
|
AppPublisherURL=http://zoitechat.zoite.net
|
2012-12-25 21:49:21 -05:00
|
|
|
AppCopyright=Copyright (C) 1998-2010 Peter Zelezny
|
2026-01-05 23:12:38 -07:00
|
|
|
AppSupportURL=https://github.com/zoitechat/zoitechat/issues
|
2026-01-14 12:54:25 -07:00
|
|
|
AppUpdatesURL=http://zoitechat.zoite.net/downloads.html
|
2026-01-05 23:12:38 -07:00
|
|
|
LicenseFile=share\doc\zoitechat\COPYING
|
|
|
|
|
UninstallDisplayIcon={app}\zoitechat.exe
|
|
|
|
|
UninstallDisplayName=ZoiteChat
|
|
|
|
|
DefaultDirName={pf64}\ZoiteChat
|
|
|
|
|
DefaultGroupName=ZoiteChat
|
2022-05-08 21:43:15 +03:00
|
|
|
AllowNoIcons=yes
|
2012-12-25 21:49:21 -05:00
|
|
|
SolidCompression=yes
|
|
|
|
|
Compression=lzma2/ultra64
|
2026-02-05 16:51:43 -07:00
|
|
|
SourceDir=..\rel
|
2012-12-25 21:49:21 -05:00
|
|
|
OutputDir=..
|
2020-04-13 17:14:42 +03:00
|
|
|
OutputBaseFilename={#APPNAM}-{#APPVER}_x64
|
2012-12-25 21:49:21 -05:00
|
|
|
FlatComponentsList=no
|
|
|
|
|
PrivilegesRequired=none
|
|
|
|
|
ShowComponentSizes=no
|
|
|
|
|
CreateUninstallRegKey=not IsTaskSelected('portable')
|
|
|
|
|
Uninstallable=not IsTaskSelected('portable')
|
|
|
|
|
ArchitecturesAllowed=x64
|
|
|
|
|
ArchitecturesInstallIn64BitMode=x64
|
2014-07-19 10:06:29 -04:00
|
|
|
MinVersion=6.1
|
2013-10-05 15:55:56 -04:00
|
|
|
WizardImageFile={#PROJECTDIR}wizardimage.bmp
|
|
|
|
|
WizardSmallImageFile={#PROJECTDIR}wizardsmallimage.bmp
|
2026-01-05 23:12:38 -07:00
|
|
|
SetupIconFile={#PROJECTDIR}..\..\data\icons\zoitechat.ico
|
2012-12-25 21:49:21 -05:00
|
|
|
|
|
|
|
|
[Types]
|
|
|
|
|
Name: "normal"; Description: "Normal Installation"
|
|
|
|
|
Name: "minimal"; Description: "Minimal Installation"
|
|
|
|
|
Name: "custom"; Description: "Custom Installation"; Flags: iscustom
|
|
|
|
|
|
|
|
|
|
[Components]
|
2026-01-05 23:12:38 -07:00
|
|
|
Name: "libs"; Description: "ZoiteChat"; Types: normal minimal custom; Flags: fixed
|
|
|
|
|
Name: "xctext"; Description: "ZoiteChat-Text"; Types: custom; Flags: disablenouninstallwarning
|
2022-05-08 21:43:15 +03:00
|
|
|
Name: "icons"; Description: "Create Shortcuts"; Types: custom; Flags: disablenouninstallwarning
|
|
|
|
|
Name: "icons\desktopicon"; Description: "Create Desktop Shortcut"; Types: custom; Flags: disablenouninstallwarning
|
|
|
|
|
Name: "icons\quicklaunchicon"; Description: "Create Quick Launch Shortcut"; Types: custom; Flags: disablenouninstallwarning
|
2012-12-25 21:49:21 -05:00
|
|
|
Name: "translations"; Description: "Translations"; Types: normal custom; Flags: disablenouninstallwarning
|
2013-11-15 09:48:51 -05:00
|
|
|
Name: "spell"; Description: "Spelling Dictionaries"; Types: custom; Flags: disablenouninstallwarning
|
2026-02-14 21:55:15 -07:00
|
|
|
Name: "plugins"; Description: "Plugins"; Types: custom; Flags: disablenouninstallwarning
|
|
|
|
|
Name: "plugins\checksum"; Description: "Checksum"; Types: custom; Flags: disablenouninstallwarning
|
|
|
|
|
Name: "plugins\exec"; Description: "Exec"; Types: custom; Flags: disablenouninstallwarning
|
|
|
|
|
Name: "plugins\fishlim"; Description: "FiSHLiM"; Types: custom; Flags: disablenouninstallwarning
|
|
|
|
|
Name: "plugins\sysinfo"; Description: "SysInfo"; Types: custom; Flags: disablenouninstallwarning
|
2012-12-25 21:49:21 -05:00
|
|
|
Name: "plugins\upd"; Description: "Update Checker"; Types: normal custom; Flags: disablenouninstallwarning
|
|
|
|
|
Name: "plugins\winamp"; Description: "Winamp"; Types: custom; Flags: disablenouninstallwarning
|
|
|
|
|
Name: "langs"; Description: "Language Interfaces"; Types: custom; Flags: disablenouninstallwarning
|
2016-04-03 11:51:18 -07:00
|
|
|
Name: "langs\lua"; Description: "Lua"; Types: normal custom; Flags: disablenouninstallwarning
|
2026-02-14 21:55:15 -07:00
|
|
|
Name: "langs\perl"; Description: "Perl (requires Perl 5.20)"; Types: custom; Flags: disablenouninstallwarning
|
|
|
|
|
Name: "langs\python"; Description: "Python (requires Python 3.14.2)"; Types: custom; Flags: disablenouninstallwarning
|
2012-12-25 21:49:21 -05:00
|
|
|
|
|
|
|
|
[Tasks]
|
2013-11-16 15:37:41 -05:00
|
|
|
Name: portable; Description: "Yes"; GroupDescription: "Portable Mode: Stores configuration files within install directory for portable drives."; Flags: unchecked
|
2012-12-25 21:49:21 -05:00
|
|
|
|
|
|
|
|
[Registry]
|
|
|
|
|
Root: HKCR; Subkey: "irc"; ValueType: none; ValueName: ""; ValueData: ""; Flags: deletekey uninsdeletekey; Tasks: not portable
|
|
|
|
|
Root: HKCR; Subkey: "irc"; ValueType: string; ValueName: ""; ValueData: "URL:IRC Protocol"; Flags: uninsdeletevalue; Tasks: not portable
|
|
|
|
|
Root: HKCR; Subkey: "irc"; ValueType: string; ValueName: "URL Protocol"; ValueData: ""; Flags: uninsdeletevalue; Tasks: not portable
|
2026-01-05 23:12:38 -07:00
|
|
|
Root: HKCR; Subkey: "irc\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\zoitechat.exe,0"; Flags: uninsdeletevalue; Tasks: not portable
|
2012-12-25 21:49:21 -05:00
|
|
|
Root: HKCR; Subkey: "irc\shell"; ValueType: string; ValueName: ""; ValueData: "open"; Flags: uninsdeletevalue; Tasks: not portable
|
2026-01-05 23:12:38 -07:00
|
|
|
Root: HKCR; Subkey: "irc\shell\open\command"; ValueType: string; ValueName: ""; ValueData: "{app}\zoitechat.exe --url=""%1"""; Flags: uninsdeletevalue; Tasks: not portable
|
2026-01-16 19:34:18 -07:00
|
|
|
Root: HKCR; Subkey: ".zct"; ValueType: string; ValueName: ""; ValueData: "ZoiteChat.Theme"; Flags: uninsdeletevalue; Tasks: not portable
|
|
|
|
|
Root: HKCR; Subkey: ".hct"; ValueType: string; ValueName: ""; ValueData: "ZoiteChat.Theme"; Flags: uninsdeletevalue; Tasks: not portable
|
|
|
|
|
Root: HKCR; Subkey: "ZoiteChat.Theme"; ValueType: string; ValueName: ""; ValueData: "ZoiteChat Theme"; Flags: uninsdeletekey; Tasks: not portable
|
|
|
|
|
Root: HKCR; Subkey: "ZoiteChat.Theme\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\zoitechat.exe,0"; Flags: uninsdeletevalue; Tasks: not portable
|
|
|
|
|
Root: HKCR; Subkey: "ZoiteChat.Theme\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\zoitechat.exe"" ""%1"""; Flags: uninsdeletevalue; Tasks: not portable
|
2012-12-25 21:49:21 -05:00
|
|
|
|
|
|
|
|
[Run]
|
2026-01-05 23:12:38 -07:00
|
|
|
Filename: "{app}\zoitechat.exe"; Description: "Run ZoiteChat after closing the Wizard"; Flags: nowait postinstall skipifsilent
|
|
|
|
|
Filename: "http://docs.zoitechat.org/en/latest/changelog.html"; Description: "See what's changed"; Flags: shellexec runasoriginaluser postinstall skipifsilent unchecked
|
2014-05-31 17:15:45 +02:00
|
|
|
Filename: "{tmp}\vcredist.exe"; Parameters: "/install /quiet /norestart"; StatusMsg: "Installing Visual C++ Redistributable"; Flags: skipifdoesntexist; Tasks: not portable
|
2014-05-29 15:33:03 +02:00
|
|
|
Filename: "{tmp}\perl.msi"; StatusMsg: "Installing Perl"; Components: langs\perl; Flags: shellexec skipifdoesntexist; Tasks: not portable
|
2013-11-09 03:47:24 -05:00
|
|
|
Filename: "{tmp}\python.msi"; StatusMsg: "Installing Python"; Components: langs\python; Flags: shellexec skipifdoesntexist; Tasks: not portable
|
2015-10-06 20:45:12 +02:00
|
|
|
Filename: "{tmp}\python.exe"; Parameters: "InstallAllUsers=1 PrependPath=1"; StatusMsg: "Installing Python"; Components: langs\python; Flags: shellexec skipifdoesntexist; Tasks: not portable
|
2013-11-15 09:48:51 -05:00
|
|
|
Filename: "{tmp}\spelling-dicts.exe"; Parameters: "/verysilent"; StatusMsg: "Installing Spelling Dictionaries"; Components: spell; Flags: skipifdoesntexist; Tasks: not portable
|
2012-12-25 21:49:21 -05:00
|
|
|
|
|
|
|
|
[Files]
|
|
|
|
|
Source: "portable-mode"; DestDir: "{app}"; Tasks: portable
|
|
|
|
|
|
|
|
|
|
Source: "changelog.url"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
|
Source: "readme.url"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
|
Source: "cert.pem"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
|
Source: "share\xml\*"; DestDir: "{app}\share\xml"; Flags: ignoreversion createallsubdirs recursesubdirs; Components: libs
|
2026-02-28 09:36:50 -07:00
|
|
|
Source: "share\doc\zoitechat\*"; DestDir: "{app}\share\doc\zoitechat"; Flags: ignoreversion createallsubdirs recursesubdirs; Components: libs
|
|
|
|
|
Source: "share\doc\WinSparkle\*"; DestDir: "{app}\share\doc\WinSparkle"; Flags: ignoreversion createallsubdirs recursesubdirs; Components: libs
|
2026-02-15 09:41:03 -07:00
|
|
|
Source: "share\themes\MS-Windows\*"; DestDir: "{app}\share\themes\MS-Windows"; Flags: ignoreversion createallsubdirs recursesubdirs skipifsourcedoesntexist; Components: libs
|
2026-02-16 18:57:48 -07:00
|
|
|
Source: "share\glib-2.0\schemas\*"; DestDir: "{app}\share\glib-2.0\schemas"; Flags: ignoreversion createallsubdirs recursesubdirs skipifsourcedoesntexist; Components: libs
|
2026-03-01 11:09:19 -07:00
|
|
|
Source: "share\icons\hicolor\*"; DestDir: "{app}\share\icons\hicolor"; Flags: ignoreversion createallsubdirs recursesubdirs skipifsourcedoesntexist; Components: libs
|
2012-12-25 21:49:21 -05:00
|
|
|
Source: "share\locale\*"; DestDir: "{app}\share\locale"; Flags: ignoreversion createallsubdirs recursesubdirs; Components: translations
|
2018-03-06 14:35:51 +00:00
|
|
|
Source: "etc\fonts\*"; DestDir: "{app}\etc\fonts"; Flags: ignoreversion createallsubdirs recursesubdirs; Components: libs
|
2012-12-25 21:49:21 -05:00
|
|
|
|
2026-02-14 21:55:15 -07:00
|
|
|
Source: "atk-1.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
|
Source: "cairo-2.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
2026-02-15 09:45:11 -07:00
|
|
|
Source: "freetype-6.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
2026-02-14 21:55:15 -07:00
|
|
|
Source: "fribidi-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
2026-02-15 09:48:52 -07:00
|
|
|
Source: "fontconfig-1.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
2026-02-14 21:55:15 -07:00
|
|
|
Source: "gdk_pixbuf-2.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
|
Source: "gdk-3-vs17.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
2026-02-15 10:18:20 -07:00
|
|
|
Source: "epoxy-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
2026-02-14 21:55:15 -07:00
|
|
|
Source: "gio-2.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
|
Source: "glib-2.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
|
Source: "gmodule-2.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
|
Source: "gobject-2.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
2014-12-02 22:12:48 +01:00
|
|
|
Source: "gspawn-win64-helper.exe"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
|
Source: "gspawn-win64-helper-console.exe"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
2026-02-14 21:55:15 -07:00
|
|
|
Source: "gthread-2.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
|
Source: "iconv.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
|
Source: "libcrypto-3-x64.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
|
Source: "libssl-3-x64.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
2012-12-25 21:49:21 -05:00
|
|
|
Source: "libenchant.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
2026-02-14 21:55:15 -07:00
|
|
|
Source: "ffi-8.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
|
Source: "intl.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
|
Source: "libpng16.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
|
Source: "xml2-16.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
|
Source: "pango-1.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
|
Source: "pangocairo-1.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
2026-02-15 10:18:20 -07:00
|
|
|
Source: "cairo-gobject-2.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
2026-02-14 21:55:15 -07:00
|
|
|
Source: "pangoft2-1.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
|
Source: "pangowin32-1.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
|
Source: "zlib1.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
2026-02-15 10:18:20 -07:00
|
|
|
Source: "jpeg62.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
|
Source: "harfbuzz.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
2026-02-15 14:19:00 -07:00
|
|
|
Source: "gtk-3-vs17.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
|
Source: "libexpat.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
|
Source: "pcre2-8-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
|
Source: "pixman-1-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
|
Source: "tiff.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
2012-12-25 21:49:21 -05:00
|
|
|
|
2015-02-02 19:35:49 -05:00
|
|
|
Source: "plugins\hcnotifications-winrt.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: libs
|
|
|
|
|
|
2015-02-20 21:58:31 -05:00
|
|
|
Source: "lib\enchant\*"; DestDir: "{app}\lib\enchant"; Flags: ignoreversion; Components: libs
|
2012-12-25 21:49:21 -05:00
|
|
|
|
2026-02-28 09:36:50 -07:00
|
|
|
Source: "girepository-2.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion skipifsourcedoesntexist; Components: langs\lua
|
|
|
|
|
Source: "lua51.dll"; DestDir: "{app}"; Flags: ignoreversion skipifsourcedoesntexist; Components: langs\lua
|
|
|
|
|
Source: "luajit-5.1.dll"; DestDir: "{app}"; Flags: ignoreversion skipifsourcedoesntexist; Components: langs\lua
|
|
|
|
|
Source: "luajit.dll"; DestDir: "{app}"; Flags: ignoreversion skipifsourcedoesntexist; Components: langs\lua
|
|
|
|
|
Source: "lib\lua\2.1\lgi\*.dll"; DestDir: "{app}\lib\lua\lgi"; Flags: ignoreversion skipifsourcedoesntexist; Components: langs\lua
|
|
|
|
|
Source: "lib\lua\5.1\lgi\*.dll"; DestDir: "{app}\lib\lua\lgi"; Flags: ignoreversion skipifsourcedoesntexist; Components: langs\lua
|
|
|
|
|
Source: "lib\girepository-1.0\*.typelib"; DestDir: "{app}\lib\girepository-1.0"; Flags: ignoreversion skipifsourcedoesntexist; Components: langs\lua
|
|
|
|
|
Source: "share\lua\2.1\*.lua"; DestDir: "{app}\share\lua"; Flags: ignoreversion skipifsourcedoesntexist; Components: langs\lua
|
|
|
|
|
Source: "share\lua\2.1\lgi\*.lua"; DestDir: "{app}\share\lua\lgi"; Flags: ignoreversion skipifsourcedoesntexist; Components: langs\lua
|
|
|
|
|
Source: "share\lua\2.1\lgi\override\*.lua"; DestDir: "{app}\share\lua\lgi\override"; Flags: ignoreversion skipifsourcedoesntexist; Components: langs\lua
|
|
|
|
|
Source: "share\lua\5.1\*.lua"; DestDir: "{app}\share\lua"; Flags: ignoreversion skipifsourcedoesntexist; Components: langs\lua
|
|
|
|
|
Source: "share\lua\5.1\lgi\*.lua"; DestDir: "{app}\share\lua\lgi"; Flags: ignoreversion skipifsourcedoesntexist; Components: langs\lua
|
|
|
|
|
Source: "share\lua\5.1\lgi\override\*.lua"; DestDir: "{app}\share\lua\lgi\override"; Flags: ignoreversion skipifsourcedoesntexist; Components: langs\lua
|
2017-09-02 17:52:25 -04:00
|
|
|
Source: "plugins\hclua.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: langs\lua
|
2016-04-06 16:26:00 -07:00
|
|
|
|
2012-12-25 21:49:21 -05:00
|
|
|
Source: "plugins\hcchecksum.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\checksum
|
|
|
|
|
Source: "plugins\hcexec.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\exec
|
|
|
|
|
Source: "plugins\hcfishlim.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\fishlim
|
2026-03-04 23:28:01 -07:00
|
|
|
Source: "share\gtkpref.png"; DestDir: "{app}\share"; Flags: ignoreversion; Components: libs
|
|
|
|
|
Source: "share\adwaita-icons-attribution.txt"; DestDir: "{app}\share"; Flags: ignoreversion; Components: libs
|
2018-03-09 19:08:17 +00:00
|
|
|
Source: "share\music.png"; DestDir: "{app}\share"; Flags: ignoreversion; Components: plugins\winamp
|
2013-04-14 10:15:52 +02:00
|
|
|
Source: "share\download.png"; DestDir: "{app}\share"; Flags: ignoreversion; Components: plugins\upd
|
2012-12-25 21:49:21 -05:00
|
|
|
Source: "plugins\hcupd.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\upd
|
2014-07-29 18:48:56 -04:00
|
|
|
Source: "WinSparkle.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: plugins\upd
|
2012-12-25 21:49:21 -05:00
|
|
|
Source: "plugins\hcwinamp.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\winamp
|
2013-04-14 10:15:52 +02:00
|
|
|
Source: "share\system.png"; DestDir: "{app}\share"; Flags: ignoreversion; Components: plugins\sysinfo
|
2012-12-25 21:49:21 -05:00
|
|
|
Source: "plugins\hcsysinfo.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\sysinfo
|
2017-09-02 17:52:25 -04:00
|
|
|
Source: "plugins\hcperl.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: langs\perl
|
|
|
|
|
|
|
|
|
|
Source: "python\*.py"; DestDir: "{app}\python"; Flags: ignoreversion; Components: langs\python
|
2012-12-25 21:49:21 -05:00
|
|
|
|
2023-11-03 10:58:56 -05:00
|
|
|
Source: "plugins\hcpython3.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: langs\python
|
|
|
|
|
Source: "_cffi_backend.cp3*.pyd"; DestDir: "{app}"; Flags: ignoreversion; Components: langs\python
|
2012-12-25 21:49:21 -05:00
|
|
|
|
2026-01-05 23:12:38 -07:00
|
|
|
Source: "zoitechat.exe"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
|
Source: "zoitechat-text.exe"; DestDir: "{app}"; Flags: ignoreversion; Components: xctext
|
2012-12-25 21:49:21 -05:00
|
|
|
|
|
|
|
|
[Icons]
|
2026-01-05 23:12:38 -07:00
|
|
|
Name: "{group}\ZoiteChat"; Filename: "{app}\zoitechat.exe"; AppUserModelID: "ZoiteChat.Desktop.Notify"; Tasks: not portable; Check: not WizardNoIcons
|
|
|
|
|
Name: "{group}\ZoiteChat Safe Mode"; Filename: "{app}\zoitechat.exe"; Parameters: "--no-auto --no-plugins"; Tasks: not portable; Check: not WizardNoIcons
|
|
|
|
|
Name: "{group}\ZoiteChat ChangeLog"; Filename: "{app}\changelog.url"; IconFilename: "{sys}\shell32.dll"; IconIndex: 165; Tasks: not portable; Check: not WizardNoIcons
|
|
|
|
|
Name: "{group}\ZoiteChat ReadMe"; Filename: "{app}\readme.url"; IconFilename: "{sys}\shell32.dll"; IconIndex: 23; Tasks: not portable; Check: not WizardNoIcons
|
|
|
|
|
Name: "{group}\ZoiteChat Config Folder"; Filename: "%APPDATA%\ZoiteChat\"; Tasks: not portable; Check: not WizardNoIcons
|
|
|
|
|
Name: "{group}\ZoiteChat-Text"; Filename: "{app}\zoitechat-text.exe"; Components: xctext; Tasks: not portable; Check: not WizardNoIcons
|
|
|
|
|
Name: "{group}\Uninstall ZoiteChat"; Filename: "{uninstallexe}"; Tasks: not portable; Check: not WizardNoIcons
|
|
|
|
|
Name: "{commondesktop}\ZoiteChat"; Filename: "{app}\zoitechat.exe"; AppUserModelID: "ZoiteChat.Desktop.Notify"; Components: icons\desktopicon; Tasks: not portable
|
|
|
|
|
Name: "{commonappdata}\Microsoft\Internet Explorer\Quick Launch\ZoiteChat"; Filename: "{app}\zoitechat.exe"; Components: icons\quicklaunchicon; Tasks: not portable
|
2012-12-25 21:49:21 -05:00
|
|
|
|
|
|
|
|
[Messages]
|
2013-10-05 15:55:56 -04:00
|
|
|
BeveledLabel= {#APPNAM}
|
2012-12-25 21:49:21 -05:00
|
|
|
|
|
|
|
|
[Code]
|
2026-02-15 09:34:30 -07:00
|
|
|
#ifndef USE_INNO_DOWNLOAD_PLUGIN
|
|
|
|
|
// The Inno Download Plugin isn't always installed in CI environments.
|
|
|
|
|
// Provide no-op fallback procedures so installer compilation still succeeds.
|
|
|
|
|
procedure idpDownloadAfter(PageID: Integer);
|
|
|
|
|
begin
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure idpClearFiles;
|
|
|
|
|
begin
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
procedure idpAddFile(URL: String; Filename: String);
|
|
|
|
|
begin
|
|
|
|
|
end;
|
|
|
|
|
#endif
|
|
|
|
|
|
2012-12-25 21:49:21 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////
|
|
|
|
|
procedure InitializeWizard;
|
|
|
|
|
begin
|
|
|
|
|
WizardForm.LicenseAcceptedRadio.Checked := True;
|
2013-11-09 03:47:24 -05:00
|
|
|
|
|
|
|
|
idpDownloadAfter(wpReady);
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////
|
|
|
|
|
function GetSysDir(): String;
|
|
|
|
|
begin
|
|
|
|
|
Result := ExpandConstant('{sys}\');
|
2012-12-25 21:49:21 -05:00
|
|
|
end;
|
|
|
|
|
|
2013-11-09 03:47:24 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////
|
|
|
|
|
function CheckDLL(DLLName: String): Boolean;
|
|
|
|
|
var
|
|
|
|
|
ResultCode: Integer;
|
|
|
|
|
begin
|
|
|
|
|
if ExecAsOriginalUser(GetSysDir() + 'where.exe', '/Q ' + DLLName,
|
|
|
|
|
'', SW_HIDE, ewWaitUntilTerminated, ResultCode) then
|
|
|
|
|
Result := ResultCode = 0 // 0 is success
|
|
|
|
|
else
|
|
|
|
|
Result := False;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////
|
|
|
|
|
function CheckVCInstall(): Boolean;
|
|
|
|
|
begin
|
2015-11-26 00:05:38 -08:00
|
|
|
Result := FileExists(GetSysDir() + 'vcruntime140.dll');;
|
2013-11-09 03:47:24 -05:00
|
|
|
end;
|
|
|
|
|
|
2016-07-01 12:14:07 -04:00
|
|
|
|
2013-11-15 09:48:51 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////
|
|
|
|
|
function CheckSpellInstall(): Boolean;
|
2015-02-22 00:20:26 -05:00
|
|
|
var
|
|
|
|
|
Version: TWindowsVersion;
|
2013-11-15 09:48:51 -05:00
|
|
|
begin
|
2015-02-22 00:20:26 -05:00
|
|
|
GetWindowsVersionEx(Version);
|
|
|
|
|
|
|
|
|
|
// Windows 8 or greater has built in spell check.
|
|
|
|
|
if Version.NTPlatform and (Version.Major > 6) or ((Version.Major = 6) and (Version.Minor > 1)) then
|
|
|
|
|
Result := True
|
|
|
|
|
else
|
|
|
|
|
Result := DirExists(ExpandConstant('{localappdata}') + '\enchant\myspell');
|
2013-11-15 09:48:51 -05:00
|
|
|
end;
|
|
|
|
|
|
2013-11-16 15:37:41 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////
|
|
|
|
|
// Sets up the automatic downloads
|
2013-11-09 03:47:24 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////
|
|
|
|
|
procedure CurPageChanged(CurPageID: Integer);
|
|
|
|
|
var
|
|
|
|
|
REDIST: String;
|
|
|
|
|
PERL: String;
|
|
|
|
|
PY3: String;
|
2013-11-15 09:48:51 -05:00
|
|
|
SPELL: String;
|
2013-11-09 03:47:24 -05:00
|
|
|
begin
|
2013-11-16 15:37:41 -05:00
|
|
|
if(CurPageID = wpReady) then
|
2013-11-09 03:47:24 -05:00
|
|
|
begin
|
|
|
|
|
idpClearFiles;
|
2014-06-25 20:38:53 -04:00
|
|
|
|
2013-11-16 15:37:41 -05:00
|
|
|
if not IsTaskSelected('portable') then
|
|
|
|
|
begin
|
2014-06-25 20:38:53 -04:00
|
|
|
|
2026-01-05 23:12:38 -07:00
|
|
|
REDIST := 'https://github.com/zoitechat/gvsbuild/releases/download/zoitechat-2.16.2/vcredist_2015_x64.exe';
|
|
|
|
|
PERL := 'https://github.com/zoitechat/gvsbuild/releases/download/zoitechat-2.16.2/Perl.5.20.0.x64.msi';
|
2026-01-15 09:48:31 -07:00
|
|
|
PY3 := 'https://www.python.org/ftp/python/3.14.2/python-3.14.2-amd64.exe';
|
2026-01-05 23:12:38 -07:00
|
|
|
SPELL := 'https://github.com/zoitechat/gvsbuild/releases/download/zoitechat-2.16.2/ZoiteChat.Spelling.Dictionaries.r2.exe';
|
2013-11-16 15:37:41 -05:00
|
|
|
|
|
|
|
|
if not CheckVCInstall() then
|
|
|
|
|
idpAddFile(REDIST, ExpandConstant('{tmp}\vcredist.exe'));
|
|
|
|
|
|
|
|
|
|
if IsComponentSelected('spell') and not CheckSpellInstall() then
|
|
|
|
|
idpAddFile(SPELL, ExpandConstant('{tmp}\spelling-dicts.exe'));
|
2014-06-25 20:38:53 -04:00
|
|
|
|
2014-06-27 19:10:55 -04:00
|
|
|
if not WizardSilent() then
|
|
|
|
|
begin
|
|
|
|
|
if IsComponentSelected('langs\perl') and not CheckDLL('perl520.dll') then
|
2016-07-01 12:14:07 -04:00
|
|
|
begin
|
|
|
|
|
idpAddFile(PERL, ExpandConstant('{tmp}\perl.msi'))
|
|
|
|
|
end;
|
2014-06-25 20:38:53 -04:00
|
|
|
|
2026-02-16 02:52:46 -07:00
|
|
|
if IsComponentSelected('langs\python') and not CheckDLL('python314.dll') then
|
|
|
|
|
idpAddFile(PY3, ExpandConstant('{tmp}\python.exe'));
|
2014-06-27 19:10:55 -04:00
|
|
|
end;
|
2013-11-16 15:37:41 -05:00
|
|
|
end;
|
2013-11-09 03:47:24 -05:00
|
|
|
end;
|
|
|
|
|
end;
|
2012-12-25 21:49:21 -05:00
|
|
|
|
2013-11-16 15:37:41 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////
|
|
|
|
|
// Disable portable-mode if installing to program files
|
|
|
|
|
/////////////////////////////////////////////////////////////////////
|
|
|
|
|
function NextButtonClick(CurPageID: Integer): Boolean;
|
|
|
|
|
begin
|
|
|
|
|
if (CurPageID = wpSelectTasks) then
|
|
|
|
|
if (WizardForm.TasksList.Checked[1] = True) then
|
2026-01-05 23:12:38 -07:00
|
|
|
if (WizardDirValue() = ExpandConstant('{pf64}\ZoiteChat')) then
|
2013-11-16 15:37:41 -05:00
|
|
|
begin
|
|
|
|
|
WizardForm.TasksList.Checked[1] := False
|
|
|
|
|
MsgBox('Portable mode is only intended for use on portable drives and has been disabled.', mbInformation, MB_OK)
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
Result := True; // Always continue
|
|
|
|
|
end;
|
|
|
|
|
|
2012-12-25 21:49:21 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////
|
|
|
|
|
// these are required for x86->x64 or reverse upgrades
|
|
|
|
|
/////////////////////////////////////////////////////////////////////
|
|
|
|
|
function GetUninstallString(): String;
|
|
|
|
|
var
|
|
|
|
|
sUnInstPath: String;
|
|
|
|
|
sUnInstallString: String;
|
|
|
|
|
begin
|
2026-01-05 23:12:38 -07:00
|
|
|
sUnInstPath := ExpandConstant('Software\Microsoft\Windows\CurrentVersion\Uninstall\ZoiteChat (x64)_is1');
|
2012-12-25 21:49:21 -05:00
|
|
|
sUnInstallString := '';
|
|
|
|
|
if not RegQueryStringValue(HKLM, sUnInstPath, 'UninstallString', sUnInstallString) then
|
|
|
|
|
RegQueryStringValue(HKCU, sUnInstPath, 'UninstallString', sUnInstallString);
|
2013-10-05 15:55:56 -04:00
|
|
|
if not (sUnInstallString <> '') then
|
2026-01-05 23:12:38 -07:00
|
|
|
sUnInstPath := ExpandConstant('Software\Microsoft\Windows\CurrentVersion\Uninstall\ZoiteChat_is1');
|
2013-10-05 15:55:56 -04:00
|
|
|
if not RegQueryStringValue(HKLM32, sUnInstPath, 'UninstallString', sUnInstallString) then
|
2013-10-12 13:36:43 -04:00
|
|
|
if not RegQueryStringValue(HKCU32, sUnInstPath, 'UninstallString', sUnInstallString) then
|
|
|
|
|
if IsWin64 then
|
|
|
|
|
if not RegQueryStringValue(HKLM64, sUnInstPath, 'UninstallString', sUnInstallString) then
|
|
|
|
|
RegQueryStringValue(HKCU64, sUnInstPath, 'UninstallString', sUnInstallString);
|
2012-12-25 21:49:21 -05:00
|
|
|
Result := sUnInstallString;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////
|
|
|
|
|
function IsUpgrade(): Boolean;
|
|
|
|
|
begin
|
|
|
|
|
Result := (GetUninstallString() <> '');
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////
|
|
|
|
|
function UnInstallOldVersion(): Integer;
|
|
|
|
|
var
|
|
|
|
|
sUnInstallString: String;
|
|
|
|
|
iResultCode: Integer;
|
|
|
|
|
begin
|
|
|
|
|
// Return Values:
|
|
|
|
|
// 1 - uninstall string is empty
|
|
|
|
|
// 2 - error executing the UnInstallString
|
|
|
|
|
// 3 - successfully executed the UnInstallString
|
|
|
|
|
|
|
|
|
|
// default return value
|
|
|
|
|
Result := 0;
|
|
|
|
|
|
|
|
|
|
// get the uninstall string of the old app
|
|
|
|
|
sUnInstallString := GetUninstallString();
|
|
|
|
|
if sUnInstallString <> '' then begin
|
|
|
|
|
sUnInstallString := RemoveQuotes(sUnInstallString);
|
2014-06-27 19:10:55 -04:00
|
|
|
if Exec(sUnInstallString, '/VERYSILENT /NORESTART /SUPPRESSMSGBOXES','', SW_HIDE, ewWaitUntilTerminated, iResultCode) then
|
2012-12-25 21:49:21 -05:00
|
|
|
Result := 3
|
|
|
|
|
else
|
|
|
|
|
Result := 2;
|
|
|
|
|
end else
|
|
|
|
|
Result := 1;
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////
|
|
|
|
|
procedure CurStepChanged(CurStep: TSetupStep);
|
|
|
|
|
begin
|
|
|
|
|
if not (IsTaskSelected('portable')) then
|
|
|
|
|
begin
|
|
|
|
|
if (CurStep=ssInstall) then
|
|
|
|
|
begin
|
|
|
|
|
if (IsUpgrade()) then
|
|
|
|
|
begin
|
|
|
|
|
UnInstallOldVersion();
|
|
|
|
|
end;
|
|
|
|
|
DeleteFile(ExpandConstant('{app}\portable-mode'));
|
|
|
|
|
end;
|
|
|
|
|
end;
|
|
|
|
|
end;
|