2012-07-11 23:33:10 +04:00
|
|
|
AppName=HexChat (x64)
|
|
|
|
AppPublisher=HexChat
|
|
|
|
AppPublisherURL=http://www.hexchat.org/
|
2011-11-23 04:35:45 +04:00
|
|
|
AppCopyright=Copyright (C) 1998-2010 Peter Zelezny
|
2012-07-11 23:33:10 +04:00
|
|
|
AppSupportURL=https://github.com/hexchat/hexchat/issues
|
|
|
|
AppUpdatesURL=http://www.hexchat.org/home/downloads
|
2012-11-11 22:06:22 +04:00
|
|
|
LicenseFile=share\doc\hexchat\COPYING
|
2012-07-11 23:33:10 +04:00
|
|
|
UninstallDisplayIcon={app}\hexchat.exe
|
|
|
|
UninstallDisplayName=HexChat (x64)
|
|
|
|
DefaultDirName={pf}\HexChat
|
|
|
|
DefaultGroupName=HexChat
|
2011-11-23 04:35:45 +04:00
|
|
|
DisableProgramGroupPage=yes
|
|
|
|
SolidCompression=yes
|
2012-07-16 02:52:55 +04:00
|
|
|
Compression=lzma2/ultra64
|
2012-06-16 00:09:30 +04:00
|
|
|
SourceDir=..\rel
|
|
|
|
OutputDir=..
|
2011-11-23 04:35:45 +04:00
|
|
|
FlatComponentsList=no
|
|
|
|
PrivilegesRequired=none
|
|
|
|
ShowComponentSizes=no
|
|
|
|
CreateUninstallRegKey=not IsTaskSelected('portable')
|
|
|
|
Uninstallable=not IsTaskSelected('portable')
|
2011-11-23 07:16:01 +04:00
|
|
|
ArchitecturesAllowed=x64
|
2011-11-23 04:35:45 +04:00
|
|
|
ArchitecturesInstallIn64BitMode=x64
|
2012-10-22 07:13:27 +04:00
|
|
|
MinVersion=5.2
|
2011-11-23 04:35:45 +04:00
|
|
|
|
|
|
|
[Types]
|
|
|
|
Name: "normal"; Description: "Normal Installation"
|
|
|
|
Name: "minimal"; Description: "Minimal Installation"
|
|
|
|
Name: "custom"; Description: "Custom Installation"; Flags: iscustom
|
|
|
|
|
|
|
|
[Components]
|
2012-09-16 01:08:20 +04:00
|
|
|
Name: "libs"; Description: "HexChat"; Types: normal minimal custom; Flags: fixed
|
|
|
|
Name: "gtktheme"; Description: "GTK+ Theme"; Types: normal custom; Flags: disablenouninstallwarning
|
|
|
|
Name: "xctext"; Description: "HexChat-Text"; Types: custom; Flags: disablenouninstallwarning
|
|
|
|
Name: "xtm"; Description: "HexChat Theme Manager (Requires .NET 4.0)"; Types: custom; Flags: disablenouninstallwarning
|
|
|
|
Name: "translations"; Description: "Translations"; Types: normal custom; Flags: disablenouninstallwarning
|
|
|
|
;obs Name: "gtkengines"; Description: "GTK+ Engines"; Types: custom; Flags: disablenouninstallwarning
|
|
|
|
Name: "plugins"; Description: "Plugins"; Types: custom; Flags: disablenouninstallwarning
|
|
|
|
Name: "plugins\checksum"; Description: "Checksum"; Types: custom; Flags: disablenouninstallwarning
|
|
|
|
Name: "plugins\dns"; Description: "DNS"; Types: custom; Flags: disablenouninstallwarning
|
|
|
|
Name: "plugins\doat"; Description: "Do At"; Types: custom; Flags: disablenouninstallwarning
|
|
|
|
Name: "plugins\exec"; Description: "Exec"; Types: custom; Flags: disablenouninstallwarning
|
|
|
|
Name: "plugins\fishlim"; Description: "FiSHLiM"; Types: custom; Flags: disablenouninstallwarning
|
|
|
|
Name: "plugins\hextray"; Description: "HexTray"; Types: custom; Flags: disablenouninstallwarning
|
2012-10-03 20:26:48 +04:00
|
|
|
Name: "plugins\mpcinfo"; Description: "mpcInfo"; Types: custom; Flags: disablenouninstallwarning
|
2012-10-21 16:38:47 +04:00
|
|
|
Name: "plugins\sysinfo"; Description: "SysInfo"; Types: custom; Flags: disablenouninstallwarning
|
2012-09-16 01:08:20 +04:00
|
|
|
Name: "plugins\upd"; Description: "Update Checker"; Types: normal custom; Flags: disablenouninstallwarning
|
|
|
|
Name: "plugins\winamp"; Description: "Winamp"; Types: custom; Flags: disablenouninstallwarning
|
|
|
|
Name: "plugins\wmpa"; Description: "Windows Media Player Announcer"; Types: custom; Flags: disablenouninstallwarning
|
|
|
|
Name: "langs"; Description: "Language Interfaces"; Types: custom; Flags: disablenouninstallwarning
|
2012-11-12 22:03:19 +04:00
|
|
|
;Name: "langs\lua"; Description: "Lua"; Types: custom; Flags: disablenouninstallwarning
|
|
|
|
;Name: "langs\lua\luawdk"; Description: "Lua-WDK"; Types: custom; Flags: disablenouninstallwarning
|
2012-09-16 01:08:20 +04:00
|
|
|
Name: "langs\perl"; Description: "Perl"; Types: custom; Flags: disablenouninstallwarning
|
|
|
|
Name: "langs\python"; Description: "Python"; Types: custom; Flags: disablenouninstallwarning
|
2012-11-12 22:03:19 +04:00
|
|
|
;Name: "langs\tcl"; Description: "Tcl"; Types: custom; Flags: disablenouninstallwarning
|
2011-11-23 04:35:45 +04:00
|
|
|
|
|
|
|
[Tasks]
|
|
|
|
Name: portable; Description: "Yes"; GroupDescription: "Portable Install (no Registry entries, no Start Menu icons, no uninstaller):"; Flags: unchecked
|
|
|
|
|
2012-11-12 05:04:58 +04:00
|
|
|
;Name: perl512; Description: "5.12"; GroupDescription: "Perl version:"; Flags: exclusive; Components: langs\perl
|
|
|
|
;Name: perl514; Description: "5.14"; GroupDescription: "Perl version:"; Flags: exclusive unchecked; Components: langs\perl
|
|
|
|
;Name: perl516; Description: "5.16"; GroupDescription: "Perl version:"; Flags: exclusive unchecked; Components: langs\perl
|
2011-11-23 04:35:45 +04: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
|
2012-07-11 23:33:10 +04:00
|
|
|
Root: HKCR; Subkey: "irc\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\hexchat.exe,0"; Flags: uninsdeletevalue; Tasks: not portable
|
2011-11-23 04:35:45 +04:00
|
|
|
Root: HKCR; Subkey: "irc\shell"; ValueType: string; ValueName: ""; ValueData: "open"; Flags: uninsdeletevalue; Tasks: not portable
|
2012-07-11 23:33:10 +04:00
|
|
|
Root: HKCR; Subkey: "irc\shell\open\command"; ValueType: string; ValueName: ""; ValueData: "{app}\hexchat.exe --url=""%1"""; Flags: uninsdeletevalue; Tasks: not portable
|
2011-11-23 04:35:45 +04:00
|
|
|
|
2012-07-14 00:49:25 +04:00
|
|
|
Root: HKCR; Subkey: ".hct"; ValueType: none; ValueName: ""; ValueData: ""; Flags: deletekey uninsdeletekey; Components:xtm; Tasks: not portable
|
|
|
|
Root: HKCR; Subkey: ".hct"; ValueType: string; ValueName: ""; ValueData: "HexChat Theme File"; Flags: uninsdeletevalue; Components:xtm; Tasks: not portable
|
|
|
|
Root: HKCR; Subkey: ".hct"; ValueType: string; ValueName: "HexChat Theme File"; ValueData: ""; Flags: uninsdeletevalue; Components:xtm; Tasks: not portable
|
|
|
|
Root: HKCR; Subkey: ".hct\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\thememan.exe,0"; Flags: uninsdeletevalue; Components:xtm; Tasks: not portable
|
|
|
|
Root: HKCR; Subkey: ".hct\shell"; ValueType: string; ValueName: ""; ValueData: "open"; Flags: uninsdeletevalue; Components:xtm; Tasks: not portable
|
|
|
|
Root: HKCR; Subkey: ".hct\shell\open\command"; ValueType: string; ValueName: ""; ValueData: "{app}\thememan.exe ""%1"""; Flags: uninsdeletevalue; Components:xtm; Tasks: not portable
|
2012-06-17 12:08:39 +04:00
|
|
|
|
2011-11-23 04:35:45 +04:00
|
|
|
[Run]
|
2012-07-11 23:33:10 +04:00
|
|
|
Filename: "{app}\hexchat.exe"; Description: "Run HexChat after closing the Wizard"; Flags: nowait postinstall skipifsilent
|
2011-11-23 04:35:45 +04:00
|
|
|
|
|
|
|
[Files]
|
2011-11-23 05:08:13 +04:00
|
|
|
; Add the ISSkin DLL used for skinning Inno Setup installations.
|
|
|
|
Source: ISSkinU.dll; DestDir: {app}; Flags: dontcopy
|
|
|
|
|
|
|
|
; Add the Visual Style resource contains resources used for skinning,
|
|
|
|
; you can also use Microsoft Visual Styles (*.msstyles) resources.
|
2011-11-28 20:55:32 +04:00
|
|
|
Source: watercolorlite-blue.cjstyles; DestDir: {tmp}; Flags: dontcopy
|
2011-11-23 05:08:13 +04:00
|
|
|
|
2011-11-23 04:35:45 +04:00
|
|
|
Source: "portable-mode"; DestDir: "{app}"; Tasks: portable
|
|
|
|
|
2012-10-22 06:40:32 +04:00
|
|
|
Source: "changelog.url"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
2012-10-22 04:34:20 +04:00
|
|
|
Source: "readme.url"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
2011-12-03 21:28:38 +04:00
|
|
|
Source: "cert.pem"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
2012-09-01 18:32:50 +04:00
|
|
|
Source: "etc\gtk-2.0\gtkrc"; DestDir: "{app}\etc\gtk-2.0"; Flags: ignoreversion; Components: gtktheme
|
2011-12-03 21:28:38 +04:00
|
|
|
;Source: "etc\gtk-2.0\gtkrc"; DestDir: "{app}\etc\gtk-2.0"; Flags: ignoreversion; Components: libs and not gtkengines
|
|
|
|
Source: "share\xml\*"; DestDir: "{app}\share\xml"; Flags: ignoreversion createallsubdirs recursesubdirs; Components: libs
|
2012-11-11 22:06:22 +04:00
|
|
|
Source: "share\doc\*"; DestDir: "{app}\share\doc"; Flags: ignoreversion createallsubdirs recursesubdirs; Components: libs
|
2011-12-03 21:28:38 +04:00
|
|
|
Source: "share\locale\*"; DestDir: "{app}\share\locale"; Flags: ignoreversion createallsubdirs recursesubdirs; Components: translations
|
|
|
|
|
2012-11-11 22:06:22 +04:00
|
|
|
Source: "atk-1.0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
Source: "cairo.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
Source: "fontconfig.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
Source: "gdk_pixbuf-2.0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
Source: "gdk-win32-2.0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
Source: "gio-2.0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
Source: "glib-2.0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
Source: "gmodule-2.0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
Source: "gobject-2.0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
Source: "gthread-2.0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
Source: "gtk-win32-2.0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
Source: "iconv.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
2011-12-03 21:28:38 +04:00
|
|
|
Source: "libeay32.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
2012-11-11 22:06:22 +04:00
|
|
|
Source: "libenchant.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
Source: "libintl.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
Source: "libpng15.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
Source: "libxml2.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
2012-11-12 22:03:19 +04:00
|
|
|
;Source: "lua51.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
2012-11-11 22:06:22 +04:00
|
|
|
Source: "pango-1.0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
Source: "pangocairo-1.0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
Source: "pangoft2-1.0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
Source: "pangowin32-1.0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
Source: "pixman-1.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
2011-12-03 21:28:38 +04:00
|
|
|
Source: "ssleay32.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
Source: "zlib1.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
|
|
|
|
Source: "lib\enchant\libenchant_myspell.dll"; DestDir: "{app}\lib\enchant"; Flags: ignoreversion; Components: libs
|
|
|
|
|
|
|
|
Source: "lib\gtk-2.0\2.10.0\engines\libwimp.dll"; DestDir: "{app}\lib\gtk-2.0\2.10.0\engines"; Flags: ignoreversion; Components: libs
|
|
|
|
|
|
|
|
;obs Source: "etc\gtkpref.png"; DestDir: "{app}\etc"; Flags: ignoreversion; Components: gtkengines
|
|
|
|
;obs Source: "lib\gtk-2.0\2.10.0\engines\libclearlooks.dll"; DestDir: "{app}\lib\gtk-2.0\2.10.0\engines"; Flags: ignoreversion; Components: gtkengines
|
|
|
|
;obs Source: "lib\gtk-2.0\2.10.0\engines\libcrux-engine.dll"; DestDir: "{app}\lib\gtk-2.0\2.10.0\engines"; Flags: ignoreversion; Components: gtkengines
|
|
|
|
;obs Source: "lib\gtk-2.0\2.10.0\engines\libglide.dll"; DestDir: "{app}\lib\gtk-2.0\2.10.0\engines"; Flags: ignoreversion; Components: gtkengines
|
|
|
|
;obs Source: "lib\gtk-2.0\2.10.0\engines\libhcengine.dll"; DestDir: "{app}\lib\gtk-2.0\2.10.0\engines"; Flags: ignoreversion; Components: gtkengines
|
|
|
|
;obs Source: "lib\gtk-2.0\2.10.0\engines\libindustrial.dll"; DestDir: "{app}\lib\gtk-2.0\2.10.0\engines"; Flags: ignoreversion; Components: gtkengines
|
|
|
|
;obs Source: "lib\gtk-2.0\2.10.0\engines\libmist.dll"; DestDir: "{app}\lib\gtk-2.0\2.10.0\engines"; Flags: ignoreversion; Components: gtkengines
|
|
|
|
;obs Source: "lib\gtk-2.0\2.10.0\engines\libmurrine.dll"; DestDir: "{app}\lib\gtk-2.0\2.10.0\engines"; Flags: ignoreversion; Components: gtkengines
|
|
|
|
;obs Source: "lib\gtk-2.0\2.10.0\engines\libredmond95.dll"; DestDir: "{app}\lib\gtk-2.0\2.10.0\engines"; Flags: ignoreversion; Components: gtkengines
|
|
|
|
;obs Source: "lib\gtk-2.0\2.10.0\engines\libthinice.dll"; DestDir: "{app}\lib\gtk-2.0\2.10.0\engines"; Flags: ignoreversion; Components: gtkengines
|
2012-07-14 01:47:41 +04:00
|
|
|
;obs Source: "plugins\hcgtkpref.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: gtkengines
|
2011-12-03 21:28:38 +04:00
|
|
|
;obs Source: "share\themes\*"; DestDir: "{app}\share\themes"; Flags: ignoreversion createallsubdirs recursesubdirs; Components: gtkengines
|
|
|
|
;obs Source: "gtk2-prefs.exe"; DestDir: "{app}"; Flags: ignoreversion; Components: gtkengines
|
|
|
|
|
2012-07-14 01:47:41 +04:00
|
|
|
Source: "plugins\hcchecksum.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\checksum
|
|
|
|
Source: "plugins\hcdns.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\dns
|
|
|
|
Source: "plugins\hcdoat.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\doat
|
|
|
|
Source: "plugins\hcexec.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\exec
|
|
|
|
Source: "plugins\hcfishlim.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\fishlim
|
2012-10-03 20:26:48 +04:00
|
|
|
Source: "etc\music.png"; DestDir: "{app}\etc"; Flags: ignoreversion; Components: plugins\winamp or plugins\mpcinfo
|
|
|
|
Source: "plugins\hcmpcinfo.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\mpcinfo
|
2011-12-03 21:28:38 +04:00
|
|
|
Source: "etc\download.png"; DestDir: "{app}\etc"; Flags: ignoreversion; Components: plugins\upd
|
2012-07-14 01:47:41 +04:00
|
|
|
Source: "plugins\hcupd.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\upd
|
|
|
|
Source: "plugins\hcwinamp.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\winamp
|
2012-10-21 08:40:28 +04:00
|
|
|
Source: "etc\system.png"; DestDir: "{app}\etc"; Flags: ignoreversion; Components: plugins\sysinfo
|
|
|
|
Source: "plugins\hcsysinfo.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\sysinfo
|
2012-10-29 03:42:52 +04:00
|
|
|
Source: "plugins\hchextray.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\hextray
|
2012-07-14 01:47:41 +04:00
|
|
|
Source: "plugins\hcwmpa.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\wmpa
|
2011-12-03 21:28:38 +04:00
|
|
|
|
2012-11-12 22:03:19 +04:00
|
|
|
;Source: "plugins\hclua.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: langs\lua
|
2012-07-14 01:47:41 +04:00
|
|
|
Source: "plugins\hcpython.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: langs\python
|
2012-11-12 22:03:19 +04:00
|
|
|
;Source: "plugins\hctcl.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: langs\tcl
|
2011-12-03 21:28:38 +04:00
|
|
|
|
2012-11-12 05:04:58 +04:00
|
|
|
;Source: "plugins\hcperl-512.dll"; DestDir: "{app}\plugins"; DestName: "hcperl.dll"; Flags: ignoreversion; Components: langs\perl; Tasks: perl512
|
|
|
|
;Source: "plugins\hcperl-514.dll"; DestDir: "{app}\plugins"; DestName: "hcperl.dll"; Flags: ignoreversion; Components: langs\perl; Tasks: perl514
|
|
|
|
Source: "plugins\hcperl-516.dll"; DestDir: "{app}\plugins"; DestName: "hcperl.dll"; Flags: ignoreversion; Components: langs\perl
|
|
|
|
; Tasks: perl516
|
2011-12-03 21:28:38 +04:00
|
|
|
|
2012-07-11 23:33:10 +04:00
|
|
|
Source: "hexchat.exe"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
|
|
|
Source: "hexchat-text.exe"; DestDir: "{app}"; Flags: ignoreversion; Components: xctext
|
2012-06-17 07:45:08 +04:00
|
|
|
Source: "thememan.exe"; DestDir: "{app}"; Flags: ignoreversion; Components: xtm
|
2011-11-23 04:35:45 +04:00
|
|
|
|
|
|
|
[Icons]
|
2012-07-11 23:33:10 +04:00
|
|
|
Name: "{group}\HexChat (x64)"; Filename: "{app}\hexchat.exe"; Tasks: not portable
|
2012-10-22 06:40:32 +04:00
|
|
|
Name: "{group}\HexChat (x64) ChangeLog"; Filename: "{app}\changelog.url"; IconFilename: "{sys}\shell32.dll"; IconIndex: 165; Tasks: not portable
|
|
|
|
Name: "{group}\HexChat (x64) ReadMe"; Filename: "{app}\readme.url"; IconFilename: "{sys}\shell32.dll"; IconIndex: 23; Tasks: not portable
|
2012-07-11 23:33:10 +04:00
|
|
|
Name: "{group}\HexChat-Text (x64)"; Filename: "{app}\hexchat-text.exe"; Components: xctext; Tasks: not portable
|
|
|
|
Name: "{group}\HexChat Theme Manager (x64)"; Filename: "{app}\thememan.exe"; Components: xtm; Tasks: not portable
|
|
|
|
Name: "{group}\Uninstall HexChat (x64)"; Filename: "{uninstallexe}"; Tasks: not portable
|
2011-11-23 04:35:45 +04:00
|
|
|
|
|
|
|
[Messages]
|
2012-07-11 23:33:10 +04:00
|
|
|
BeveledLabel= HexChat
|
2011-11-23 04:35:45 +04:00
|
|
|
|
|
|
|
[Code]
|
2012-10-13 20:55:43 +04:00
|
|
|
/////////////////////////////////////////////////////////////////////
|
|
|
|
procedure InitializeWizard;
|
|
|
|
begin
|
|
|
|
WizardForm.LicenseAcceptedRadio.Checked := True;
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
2011-11-23 04:35:45 +04:00
|
|
|
/////////////////////////////////////////////////////////////////////
|
|
|
|
// these are required for x86->x64 or reverse upgrades
|
|
|
|
/////////////////////////////////////////////////////////////////////
|
|
|
|
function GetUninstallString(): String;
|
|
|
|
var
|
|
|
|
sUnInstPath: String;
|
|
|
|
sUnInstallString: String;
|
|
|
|
begin
|
2012-07-11 23:33:10 +04:00
|
|
|
sUnInstPath := ExpandConstant('Software\Microsoft\Windows\CurrentVersion\Uninstall\HexChat (x64)_is1');
|
2011-11-23 04:35:45 +04:00
|
|
|
sUnInstallString := '';
|
|
|
|
if not RegQueryStringValue(HKLM, sUnInstPath, 'UninstallString', sUnInstallString) then
|
|
|
|
RegQueryStringValue(HKCU, sUnInstPath, 'UninstallString', sUnInstallString);
|
|
|
|
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);
|
|
|
|
if Exec(sUnInstallString, '/SILENT /NORESTART /SUPPRESSMSGBOXES','', SW_HIDE, ewWaitUntilTerminated, iResultCode) then
|
|
|
|
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;
|
2012-09-01 18:50:48 +04:00
|
|
|
DeleteFile(ExpandConstant('{app}\portable-mode'));
|
2011-11-23 04:35:45 +04:00
|
|
|
end;
|
|
|
|
end;
|
|
|
|
end;
|
2011-11-23 05:08:13 +04:00
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////
|
|
|
|
// Importing LoadSkin API from ISSkin.DLL
|
|
|
|
procedure LoadSkin(lpszPath: String; lpszIniFileName: String);
|
|
|
|
external 'LoadSkin@files:isskinu.dll stdcall';
|
|
|
|
|
|
|
|
// Importing UnloadSkin API from ISSkin.DLL
|
|
|
|
procedure UnloadSkin();
|
|
|
|
external 'UnloadSkin@files:isskinu.dll stdcall';
|
|
|
|
|
|
|
|
// Importing ShowWindow Windows API from User32.DLL
|
|
|
|
function ShowWindow(hWnd: Integer; uType: Integer): Integer;
|
|
|
|
external 'ShowWindow@user32.dll stdcall';
|
|
|
|
|
|
|
|
function InitializeSetup(): Boolean;
|
|
|
|
begin
|
|
|
|
ExtractTemporaryFile('watercolorlite-blue.cjstyles');
|
|
|
|
LoadSkin(ExpandConstant('{tmp}\watercolorlite-blue.cjstyles'), '');
|
|
|
|
Result := True;
|
|
|
|
end;
|
|
|
|
|
|
|
|
procedure DeinitializeSetup();
|
|
|
|
begin
|
|
|
|
// Hide Window before unloading skin so user does not get
|
|
|
|
// a glimpse of an unskinned window before it is closed.
|
|
|
|
ShowWindow(StrToInt(ExpandConstant('{wizardhwnd}')), 0);
|
|
|
|
UnloadSkin();
|
|
|
|
end;
|