Commit 0b1bb069 authored by Remko Tronçon's avatar Remko Tronçon

Import.

git-svn-id: svn+ssh://svn.psi-im.org/home/psi/svn/win-installer/trunk@2 2d3a5ac0-73f9-4639-b284-2310bd1da355
parent 8a38c2e6
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
675 Mass Ave, Cambridge, MA 02139, USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
******************************************************************************
NSIS Installer Script for Psi 0.9.3 - ChangeLog
Current version: v1.7
Release date: 2005-01-30
Copyright © 2004-2005 Mircea Ionut Bardac (IceRAM)
e-mail: dev@mircea.bardac.net
xmpp: iceram@jabber.org
******************************************************************************
Legend:
"-" = removed
"+" = added
"!" = fixed
* v1.0 (2004-01-04) - first release
! solved FlySpray task #147
http://psi.affinix.com/flyspray/?do=details&id=147
* v1.1 (2004-01-07)
! changed compiller to: MakeNSIS v2.0rc2
(some installer translations have been updated)
+ created new install/uninstall icons
! reorganized the options for the shortcuts (simplified the structure)
! reorganized the code (much more modular)
+ made the installer fully translateable using exterior language files
* v1.2 (2004-01-11)
! reorganized language detection & string assigning
! fixed translation display
* v1.3 (2004-01-20)
! replaced some explicit refrences to Psi 0.9.1 with global variables
! the installer saves properly the language used for the installation
and automatically selects it on uninstall
+ installer saves the version of Psi it installs in a reg key
FlySpray: http://psi.affinix.com/flyspray/index.php?do=details&id=35
* v1.4 (2004-02-01)
+ created ChangeLog.txt for tracking easier the changes in the installer
- removed ChangeLog section from ReadME.txt
+ added compile directive BUIL_WITH_LANGPACKS - allows installer builds
that do not include language packs
- removed psi-base.nsi from the installer files
(same effect can be obtained by using commenting BUIL_WITH_LANGPACKS)
+ added INSTALLER_BUILD number, to allow tracking the installer rebuilds
for the same APPVERSION
+ moved installer language includes to a separate file
! optimized code
* v1.5 (2004-02-08)
+ added compile directive LANG_TEST_BUILD to build installers only for
language tests (installer languages & Psi languages packs)
! minor build improvements (added LCAPPNAME - lowercase AppName)
- removed redundant code from the install section
* v1.6 (2004-06-10)
! updated for Psi 0.9.2 release
! fixed uninstall (previous version removed the entire folder, including
custom iconsets/sounds/certs) - now it only deletes the files installed
! installer now quits if Cancel is pressed when the user is told that the
(un)install can not continue because Psi is already running
(previous version continued (un)install if Cancel was pressed)
+ separated the (un)install file lists for easier management
(psi_files_install.nsi & psi_files_uninstall.nsi)
* v1.7 (2005-01-30)
! updated for Psi 0.9.3 release
! silent uninstall of previous version, after warning the user
! clarified the upgrade warning
! cleanup: moved the string init functions to installer-functions.nsh
as a macro
! checking for a running Psi version is done before testing for a
previously installed version
+ added APPEXTRAVERSION variable to define non-final release versions
! packages including Psi language packs will be suffixed by "-i18n"
and base packages will have no suffix
! sorted the installer languages alphabetically
! fixed auto_uninstall (thanks Michal)
******************************************************************************
******************************************************************************
NSIS Installer Script for Psi 0.9.3
Copyright © 2004-2005 Mircea Ionut Bardac (IceRAM)
e-mail: dev@mircea.bardac.net
xmpp: iceram@jabber.org
[see ChangeLog.txt for version information]
******************************************************************************
** Legal notice
psi.nsi - NSIS script for installing Psi 0.9.3
Copyright © 2004-2005 Mircea Ionut Bardac (IceRAM)
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this distribution; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* See the COPYING.txt file for more information.
*******************************************************************************
** Installer Info
The script was created in order to pack Psi (http://psi.affinix.com).
The pack contains the Psi base files and language files.
LZMA Compression is used.
Compiles with: MakeNSIS v2.0 (+)
*******************************************************************************
** Thanks
Many thanks to the Psi community and especially to the Psi developers for
making such a wonderful IM application.
Lots of thanks to all the contributors to the NSIS community that inspired
and helped me build this script.
Special thanks to Michal Jazlowiecki for the 'IsAdmin' function and for
the help on debug.
*******************************************************************************
** File structure
The script assumes the files are stored in the following structure:
* INSTALLER_SOURCE
\ - psi_app
| - psi_lang
| - lang
* INSTALLER_SOURCE can be changed at the beginning of the script.
The folder contains:
- psi.nsi < main script file
- installer-functions.nsh file < some functions used by the installer
- installer-languages.nsh file < languages availabe for the installer
- the compiled setup application
- psi-l.bmp < picture displayed on the left of the installer
- psi-header-l.bmp, psi-header-r.bmp < pictures displayed in the header
- install.ico, uninstall.ico < icons for the (un)installer
* psi_app contains the Psi files exactly as they would come after
decompressing the .zip distribution
* psi_lang contains Psi's *.qm language files
* lang contains files with translations for the installer:
Example: psi_installer_LANG.nsh
*******************************************************************************
** Installer languages
The installer can be compiled with multiple language support (this has no
connection with the language packs). The interface of the installer will
be displayed in the language selected on start.
The available languages for the installer (and the codepages used to make
translations for them) can be found in the files at:
http://cvs.sourceforge.net/viewcvs.py/nsis/NSIS/Contrib/Language%20files/
In order to compile the installer with a new language, add a line
describing the installer language.
There are 2 types of translations that can be added to the installer:
1. Translations that contain, besides the standard traslation, the Psi
installer specific strings:
!insertmacro UI_LANGUAGE_LOAD "Polish"
This requires that the file psi_installer_Polish to be found in lang/
2. Example for adding the standard translation to the installer:
!insertmacro MUI_LANGUAGE "Polish"
You can't add a translation in both ways. No. 1 includes No. 2.
*******************************************************************************
** Adding a new Psi language to the installer script:
1. Search in the .nsi file for "*** FOLLOW THE PATTERN WHEN ADDING LANGUAGES"
(without quotes)
2. You'll find 3 occurrences where the file must be modified so the installer
could work properly with another language.
3. First of all, add the language to the Languages section (1st occurrence)
Example for adding Polish language:
Section /o "Polish" LangPL
SetOverwrite on
SetOutPath "$INSTDIR\"
File "${INSTALLER_SOURCE}\psi_lang\psi_pl.qm"
SectionEnd
4. Add the language file to the Uninstall section (2nd occurence)
Example for adding Polish language to the uninstall section:
Delete "$INSTDIR\psi_pl.qm"
5. The 3rd occurrence allows the installer to automatically check the
language pack selected by the user.
(after checking the installer's language)
Example for the Polish language:
StrCmp $LANGUAGE ${LANG_POLISH} 0 +2
SectionSetFlags ${LangPL} ${SF_SELECTED}
Note that ${LANG_POLISH} is already defined and must be known by the
compiler. This last function is not mandatory for the good functioning of
the installer.
*******************************************************************************
** Functionality
INSTALLER
1. Checks the language of the system and asks the user to
confirm/change it
(saves the language setting in the Registry for the uninstaller)
2. Checks if another Psi installer session is running - exists if so.
3. Checks if Psi is running, asks the user to stop it.
If not, exits installer.
4. Checks if Psi is installed, uninstalls the previous version silently.
5. Checks if the user is an admin or not and sets what kind of
Start Menu shortcuts the installer is going to create
6. Installs Psi according the user needs
6.1. Copies Psi base files
6.2. Copies Psi languages
6.3. Creates Start Menu icons (depending on the rights of the user):
- Application
- Uninstaller
- ReadME file
- Psi - Home Page - url
- Psi - Forum - url
6.4. Creates shortcuts (for Current User)
- Desktop
- Quick Launch
6.5. Adds to the Startup an entry for Psi (for Current User)
7. Offers to:
- Run Psi (checked by default)
- Open ReadME file (checked by default)
UNINSTALLER
1. Checks what language was used for the installation and uses
the same language for the uninstall
2. Checks if another Psi uninstaller session is running - exists if so.
3. Checks if Psi is running, asks the user to stop it.
If not, exits uninstaller.
4. Uninstalls Psi
install.ico

11.2 KB

;********************************************************
; installer-functions.nsh v1.1 - functions for the Psi NSIS Script file
; Copyright 2004-2005 Mircea Ionut Bardac (IceRAM)
;
; This program is free software; you can redistribute it and/or
; modify it under the terms of the GNU General Public License
; as published by the Free Software Foundation; either version 2
; of the License, or (at your option) any later version.
;
; This program is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
; GNU General Public License for more details.
;
; You should have received a copy of the GNU General Public License
; along with this file; if not, write to the Free Software
; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
;
; See ReadME.txt for more information on the script.
;*****************************************************
; ********************************
; Close Psi Instances
; Waits for all running instances of Psi to close
Function ClosePsiInstances
Push $0 ;saving stack
newcheck:
FindWindow $0 "QWidget" "Psi" 0
IntCmp $0 0 done
MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION "$LSTR_ASK_EXIT_PSI" IDRETRY newcheck
; cancel
Quit
done:
Pop $0 ; restoring stack
FunctionEnd
; function that checks if the user running the installer is an Administrator
; thanks Michal Jazlowiecki (michalj)
Function IsUserAdmin
Push $R0
ClearErrors
UserInfo::GetAccountType
IfErrors admin
Pop $R0
StrCmp $R0 "Admin" admin
NoAdmin:
; User is NOT an Admin
Pop $R0
Push "false"
Goto end_isadmin
Admin:
; User is an Admin
Pop $R0
Push "true"
end_isadmin:
FunctionEnd
; *************************************
!macro UI_LANGUAGE_LOAD LANG
!insertmacro MUI_LANGUAGE "${LANG}"
; !verbose push
; !verbose on
; IfFileExists "lang\psi_installer_${LANG}.nsh" 0 +2
!include "lang\psi_installer_${LANG}.nsh"
; !verbose off
!undef LANG
!macroend
!macro LANG_STRING NAME VALUE
LangString ${NAME} "${LANG_${LANG}}" "${VALUE}"
!macroend
!macro LANG_UNSTRING NAME VALUE
!insertmacro LANG_STRING "un.${NAME}" "${VALUE}"
!macroend
; *************************************
!macro INIT_LANG_STRINGS
; initializing the strings with the coresponding ones in the active language
StrCpy $LSTR_PSIBASE "Psi (base)"
StrCpy $LSTR_LANGUAGES "Languages"
StrCpy $LSTR_CURRENTUSER "Current User"
StrCpy $LSTR_ALLUSERS "All Users"
StrCpy $LSTR_SHORTCUTS "Shortcuts"
StrCpy $LSTR_QUICKLAUNCH "Quick Launch shortcut"
StrCpy $LSTR_DESKTOP_S "Desktop shortcut"
StrCpy $LSTR_STARTMENU_GROUP "Start Menu group"
StrCpy $LSTR_AUTOSTART "Automatic startup"
StrCpy $LSTR_ASK_EXIT_PSI "You must exit all running copies of Psi to continue!"
StrCpy $LSTR_UNINST_RUNNING "The uninstaller is already running."
StrCpy $LSTR_INST_RUNNING "The installer is already running."
StrCpy $LSTR_WARN_ADMIN_1 "You are running this installer as a normal user, NOT as an Administrator."
StrCpy $LSTR_WARN_ADMIN_2 "If you want to uninstall this application, you must use the same user or your system may become unstable."
StrCpy $LSTR_A_INSTALLED "Psi is already installed. Would you like to upgrade?$\n$\nClick <Yes> to remove the previous version or <No> install this version separately."
StrCpy $LSTR_ERR_UNINST "There were some errors uninstalling Psi. $\n$\nWould you like to continue?"
StrCmp $(STR_PSIBASE) "" +2
StrCpy $LSTR_PSIBASE $(STR_PSIBASE)
StrCmp $(STR_LANGUAGES) "" +2
StrCpy $LSTR_LANGUAGES $(STR_LANGUAGES)
StrCmp $(STR_CURRENTUSER) "" +2
StrCpy $LSTR_CURRENTUSER $(STR_CURRENTUSER)
StrCmp $(STR_ALLUSERS) "" +2
StrCpy $LSTR_ALLUSERS $(STR_ALLUSERS)
StrCmp $(STR_SHORTCUTS) "" +2
StrCpy $LSTR_SHORTCUTS $(STR_SHORTCUTS)
StrCmp $(STR_QUICKLAUNCH) "" +2
StrCpy $LSTR_QUICKLAUNCH $(STR_QUICKLAUNCH)
StrCmp $(STR_DESKTOP_S) "" +2
StrCpy $LSTR_DESKTOP_S $(STR_DESKTOP_S)
StrCmp $(STR_STARTMENU_GROUP) "" +2
StrCpy $LSTR_STARTMENU_GROUP $(STR_STARTMENU_GROUP)
StrCmp $(STR_AUTOSTART) "" +2
StrCpy $LSTR_AUTOSTART $(STR_AUTOSTART)
StrCmp $(STR_ASK_EXIT_PSI) "" +2
StrCpy $LSTR_ASK_EXIT_PSI $(STR_ASK_EXIT_PSI)
StrCmp $(STR_UNINST_RUNNING) "" +2
StrCpy $LSTR_UNINST_RUNNING $(STR_UNINST_RUNNING)
StrCmp $(STR_INST_RUNNING) "" +2
StrCpy $LSTR_INST_RUNNING $(STR_INST_RUNNING)
StrCmp $(STR_WARN_ADMIN_1) "" +2
StrCpy $LSTR_WARN_ADMIN_1 $(STR_WARN_ADMIN_1)
StrCmp $(STR_WARN_ADMIN_2) "" +2
StrCpy $LSTR_WARN_ADMIN_2 $(STR_WARN_ADMIN_2)
StrCmp $(STR_A_INSTALLED) "" +2
StrCpy $LSTR_A_INSTALLED $(STR_A_INSTALLED)
StrCmp $(STR_ERR_UNINST) "" +2
StrCpy $LSTR_ERR_UNINST $(STR_ERR_UNINST)
!macroend
; *************************************
;********************************************************
; installer-languages.nsh v1.1 - installer languages Psi NSIS Script file
; Copyright 2004-2005 Mircea Ionut Bardac (IceRAM)
;
; This program is free software; you can redistribute it and/or
; modify it under the terms of the GNU General Public License
; as published by the Free Software Foundation; either version 2
; of the License, or (at your option) any later version.
;
; This program is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
; GNU General Public License for more details.
;
; You should have received a copy of the GNU General Public License
; along with this file; if not, write to the Free Software
; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
;
; See ReadME.txt for more information on the script.
;*****************************************************
; ********************************
; Languages
; use UI_LANGUAGE_LOAD instead of MUI_LANGUAGE if you have a
; translation file for the interface components in a file like
; lang\psi_installer_LANG.nsh
!insertmacro UI_LANGUAGE_LOAD "English"
!insertmacro UI_LANGUAGE_LOAD "Catalan"
!insertmacro UI_LANGUAGE_LOAD "Czech"
!insertmacro MUI_LANGUAGE "SimpChinese"
!insertmacro UI_LANGUAGE_LOAD "German"
!insertmacro MUI_LANGUAGE "Estonian"
!insertmacro UI_LANGUAGE_LOAD "Spanish"
!insertmacro UI_LANGUAGE_LOAD "French"
!insertmacro UI_LANGUAGE_LOAD "Greek"
!insertmacro MUI_LANGUAGE "Italian"
!insertmacro MUI_LANGUAGE "Japanese"
!insertmacro UI_LANGUAGE_LOAD "Macedonian"
!insertmacro UI_LANGUAGE_LOAD "Dutch"
!insertmacro UI_LANGUAGE_LOAD "Polish"
!insertmacro MUI_LANGUAGE "Russian"
!insertmacro MUI_LANGUAGE "Slovak"
!insertmacro MUI_LANGUAGE "Swedish"
; ********************************
; Name: Badlop; Roc Valls Domnech
; Jabber ID: badlop@jabberes.org
; E-mail: badlop@ono.com
!insertmacro LANG_STRING STR_PSIBASE "Psi (base)"
!insertmacro LANG_STRING STR_LANGUAGES "Llenguatges"
!insertmacro LANG_STRING STR_CURRENTUSER "Usuari Actual"
!insertmacro LANG_STRING STR_ALLUSERS "Tots els Usuaris"
!insertmacro LANG_STRING STR_SHORTCUTS "Enllaos"
!insertmacro LANG_STRING STR_QUICKLAUNCH "Enlla d'Arrancament Rpid"
!insertmacro LANG_STRING STR_DESKTOP_S "Enlla a l'Escriptori"
!insertmacro LANG_STRING STR_STARTMENU_GROUP "Grup del Men Inici"
!insertmacro LANG_STRING STR_AUTOSTART "Arrancament automtic"
!insertmacro LANG_STRING STR_ASK_EXIT_PSI "Ha de tancar tots els Psi per a continuar!"
!insertmacro LANG_STRING STR_UNINST_RUNNING "El desinstalador ja s en marxa."
!insertmacro LANG_STRING STR_INST_RUNNING "L'instalador ja s en marxa."
!insertmacro LANG_STRING STR_WARN_ADMIN_1 "Est executant l'instalador com a usuari, no com a administrador."
!insertmacro LANG_STRING STR_WARN_ADMIN_2 "Si vol desinstalar l'aplicaci, ha d'emprar el mateix usuari o el sistema podria tornar-se inestable."
!insertmacro LANG_STRING STR_A_INSTALLED "Psi ja estava instalat. $\n$\nVols actualizar-lo?$\n$\nCliqui <S> per a esborrar la versi anterior o <No> per a instalar aquesta versi de forma separada."
!insertmacro LANG_STRING STR_ERR_UNINST "S'han produt alguns errors desinstalant Psi. $\n$\nVol continuar?"
!insertmacro LANG_STRING STR_REMOVEONLY "noms desinstalar"
\ No newline at end of file
; Translation by (please specify contact information if further updates occur):
; Name: Petr Kritof
; Jabber ID: <kristof.p|njs_netlab_cz>
; E-mail: <Petr|Kristof_CZ>
!insertmacro LANG_STRING STR_PSIBASE "Psi (zklad)"
!insertmacro LANG_STRING STR_LANGUAGES "Jazyky"
!insertmacro LANG_STRING STR_CURRENTUSER "Souasn uivatel"
!insertmacro LANG_STRING STR_ALLUSERS "Vichni uivatel"
!insertmacro LANG_STRING STR_SHORTCUTS "Zstupci"
!insertmacro LANG_STRING STR_QUICKLAUNCH "Zstupce Snadnho sputn"
!insertmacro LANG_STRING STR_DESKTOP_S "Zstupce na ploe"
!insertmacro LANG_STRING STR_STARTMENU_GROUP "Nabdka Start Menu"
!insertmacro LANG_STRING STR_AUTOSTART "Automatick sputn"
!insertmacro LANG_STRING STR_ASK_EXIT_PSI "Abys mohl pokraovat, mus ukonit vechny sputn kopie programu Psi!"
!insertmacro LANG_STRING STR_UNINST_RUNNING "Odinstalan program uz b."
!insertmacro LANG_STRING STR_INST_RUNNING "Instalan program u b."
!insertmacro LANG_STRING STR_WARN_ADMIN_1 "Spustil's instaltor jako normln uivatel, NE jako Administrator."
!insertmacro LANG_STRING STR_WARN_ADMIN_2 "Jestlie chce odinstalovat tuto aplikaci, mus to udlat pod stejnm uivatelem, jinak se tvj systm me stt nestabilnm."
!insertmacro LANG_STRING STR_A_INSTALLED "Psi u je nainstalovno. Chce upgradovat?$\n$\nStiskni <OK> pro odstrann pedchoz verze nebo <Ne> pro oddlenou instalaci."
!insertmacro LANG_STRING STR_ERR_UNINST "Bhem odinstalace Psi dolo k chybm. $\n$\nChce pokraovat?"
!insertmacro LANG_STRING STR_REMOVEONLY "jen odstranit"
; Dutch translation by / Nederlandstalige vertaling door:
; Name: Ben Branders / ByteWarrior / cRaYoN
; Jabber ID: ben.branders@jabber.dk
; E-mail: ben.branders@skynet.be
!insertmacro LANG_STRING STR_PSIBASE "Psi (basis)"
!insertmacro LANG_STRING STR_LANGUAGES "Vertalingen"
!insertmacro LANG_STRING STR_CURRENTUSER "Huidige gebruiker"
!insertmacro LANG_STRING STR_ALLUSERS "Alle gebruikers"
!insertmacro LANG_STRING STR_SHORTCUTS "Snelkoppelingen"
!insertmacro LANG_STRING STR_QUICKLAUNCH "Snelstarten (Quick Launch) snelkoppeling"
!insertmacro LANG_STRING STR_DESKTOP_S "Snelkoppeling op bureaublad"
!insertmacro LANG_STRING STR_STARTMENU_GROUP "Startmenu groep"
!insertmacro LANG_STRING STR_AUTOSTART "Automatisch opstarten"
!insertmacro LANG_STRING STR_ASK_EXIT_PSI "Je moet alle lopende kopiën van Psi afsluiten om verder te gaan!"
!insertmacro LANG_STRING STR_UNINST_RUNNING "De uninstaller is al gestart."
!insertmacro LANG_STRING STR_INST_RUNNING "De installatie is al gestart."
!insertmacro LANG_STRING STR_WARN_ADMIN_1 "U bent aan het installeren als een normale gebruiker, NIET als een administrator."
!insertmacro LANG_STRING STR_WARN_ADMIN_2 "Als u dit programma wilt verwijderen, moet u dezelfde gebruiker gebruiken of uw systeem kan onstabiel worden."
!insertmacro LANG_STRING STR_A_INSTALLED "Psi is reeds geïnstalleerd. Wilt u upgraden? $\n$\nKlik <Ja> om de vorige versie te verwijderen of <Nee> om deze versie apart te installeren."
!insertmacro LANG_STRING STR_ERR_UNINST "Er waren enkele fouten bij het verwijderen van Psi. $\n$\nWilt u verder gaan?"
!insertmacro LANG_STRING STR_REMOVEONLY "enkel verwijderen"
; Translation by (please specify contact information if further updates occur):
; Name: Mircea Ionut Bardac /IceRAM
; Jabber ID: iceram@jabber.org
; E-mail: projects@mircea.bardac.net
!insertmacro LANG_STRING STR_PSIBASE "Psi (base)"
!insertmacro LANG_STRING STR_LANGUAGES "Languages"
!insertmacro LANG_STRING STR_CURRENTUSER "Current User"
!insertmacro LANG_STRING STR_ALLUSERS "All Users"
!insertmacro LANG_STRING STR_SHORTCUTS "Shortcuts"
!insertmacro LANG_STRING STR_QUICKLAUNCH "Quick Launch shortcut"
!insertmacro LANG_STRING STR_DESKTOP_S "Desktop shortcut"
!insertmacro LANG_STRING STR_STARTMENU_GROUP "Start Menu group"
!insertmacro LANG_STRING STR_AUTOSTART "Automatic startup"
!insertmacro LANG_STRING STR_ASK_EXIT_PSI "You must exit all running copies of Psi to continue!"
!insertmacro LANG_STRING STR_UNINST_RUNNING "The uninstaller is already running."
!insertmacro LANG_STRING STR_INST_RUNNING "The installer is already running."
!insertmacro LANG_STRING STR_WARN_ADMIN_1 "You are running this installer as a normal user, NOT as an Administrator."
!insertmacro LANG_STRING STR_WARN_ADMIN_2 "If you want to uninstall this application, you must use the same user or your system may become unstable."
!insertmacro LANG_STRING STR_A_INSTALLED "Psi is already installed. Would you like to upgrade?$\n$\nClick <Yes> to remove the previous version or <No> install this version separately."
!insertmacro LANG_STRING STR_ERR_UNINST "There were some errors uninstalling Psi. $\n$\nWould you like to continue?"
!insertmacro LANG_STRING STR_REMOVEONLY "remove only"
; Translation by (please specify contact information if further updates occur):
; Name: Minipouss
; Jabber ID: aniamaniac@jabber.org
; E-mail: alreb@tele2.fr
!insertmacro LANG_STRING STR_PSIBASE "Psi (base)"
!insertmacro LANG_STRING STR_LANGUAGES "Langues"
!insertmacro LANG_STRING STR_CURRENTUSER "Utilisateur actuel"
!insertmacro LANG_STRING STR_ALLUSERS "Tout les utilisateurs"
!insertmacro LANG_STRING STR_SHORTCUTS "Raccourcis"
!insertmacro LANG_STRING STR_QUICKLAUNCH "Raccourci pour le lancement rapide"
!insertmacro LANG_STRING STR_DESKTOP_S "Raccourci sur le bureau"
!insertmacro LANG_STRING STR_STARTMENU_GROUP "Groupe du Menu Dmarrer"
!insertmacro LANG_STRING STR_AUTOSTART "Dmarrage automatique"
!insertmacro LANG_STRING STR_ASK_EXIT_PSI "Vous devez quitter toutes les copies de Psi qui sont ouvertes avant de continuer!"
!insertmacro LANG_STRING STR_UNINST_RUNNING "Le dsinstalleur est dja en cours d'utilisation."
!insertmacro LANG_STRING STR_INST_RUNNING "L'installeur est dja en cours d'utilisation."
!insertmacro LANG_STRING STR_WARN_ADMIN_1 "Vous avez lanc cette installation en tant qu'utilisateur standard, et PAS en tant qu'Administrateur."
!insertmacro LANG_STRING STR_WARN_ADMIN_2 "Si vous voulez dsinstaller cette application, vous devez utiliser le mme utilisateur ou votre systme risque de devenir instable."
!insertmacro LANG_STRING STR_A_INSTALLED "Psi est dja install. Voulez-vous le mettre jour?$\n$\nCliquez <Oui> pour enlever l'ancienne version ou <Non> pour installer version sparment."
!insertmacro LANG_STRING STR_ERR_UNINST "Il y a eu des erreurs lors de la dsinstallation de Psi. $\n$\nVoulez-vous continuer?"
!insertmacro LANG_STRING STR_UNINSTALLONLY "dsinstallation uniquement"
; Translation by (please specify contact information if further updates occur):
; Name: Patrick Hanft
; Jabber ID: patrick@phlogfile.de
; E-mail: patrick@phlogfile.de
!insertmacro LANG_STRING STR_PSIBASE "Psi (base)"
!insertmacro LANG_STRING STR_LANGUAGES "Sprachen"
!insertmacro LANG_STRING STR_CURRENTUSER "Aktueller Nutzer"
!insertmacro LANG_STRING STR_ALLUSERS "Alle Nutzer"
!insertmacro LANG_STRING STR_SHORTCUTS "Verknpfungen"
!insertmacro LANG_STRING STR_QUICKLAUNCH "Verknpfung in der Schnellstartleiste"
!insertmacro LANG_STRING STR_DESKTOP_S "Desktopverknpfung"
!insertmacro LANG_STRING STR_STARTMENU_GROUP "Startmen-Gruppe"
!insertmacro LANG_STRING STR_AUTOSTART "Automatischer Start"
!insertmacro LANG_STRING STR_ASK_EXIT_PSI "Alle laufenden Instanzen von Psi mssen beendet werden, bevor mit der Installation fortgefahren werden kann!"
!insertmacro LANG_STRING STR_UNINST_RUNNING "Das Deinstallationsprogramm ist bereits gestartet."
!insertmacro LANG_STRING STR_INST_RUNNING "Das Installationsprogramm ist bereits gestartet."
!insertmacro LANG_STRING STR_WARN_ADMIN_1 "Sie haben das Installationsprogramm als normaler Nutzer, NICHT als Administrator gestartet."
!insertmacro LANG_STRING STR_WARN_ADMIN_2 "Wenn Sie das Programm deinstallieren mchten, mssen Sie das als der gleiche Nutzer tun, unter dem das Programm installiert wurde. Andernfalls kann das System instabil werden.."
!insertmacro LANG_STRING STR_A_INSTALLED "Psi ist bereits installiert. Mchten Sie auf die neue Version updaten?$\n$\nKlicken Sie <Ja> um die vorherige Version zu entfernen oder <Nein> um die neue Version parallel zu installieren."
!insertmacro LANG_STRING STR_ERR_UNINST "Es gab bei der Deinstallation einige Fehler. $\n$\nMchten Sie fortfahren?"
!insertmacro LANG_STRING STR_UNINSTALLONLY "nur deinstallieren"
\ No newline at end of file
; Name: Nikos Kouremenos (zeppelin)
; Jabber ID: nkour@jabber.org
; E-mail: kourem@gmail.com
!insertmacro LANG_STRING STR_PSIBASE "Psi ()"
!insertmacro LANG_STRING STR_LANGUAGES ""
!insertmacro LANG_STRING STR_CURRENTUSER " "
!insertmacro LANG_STRING STR_ALLUSERS " "
!insertmacro LANG_STRING STR_SHORTCUTS ""
!insertmacro LANG_STRING STR_QUICKLAUNCH " Quick Launch"
!insertmacro LANG_STRING STR_DESKTOP_S " "
!insertmacro LANG_STRING STR_STARTMENU_GROUP " "
!insertmacro LANG_STRING STR_AUTOSTART " "
!insertmacro LANG_STRING STR_ASK_EXIT_PSI " Psi !"
!insertmacro LANG_STRING STR_UNINST_RUNNING " ."
!insertmacro LANG_STRING STR_INST_RUNNING " ."
!insertmacro LANG_STRING STR_WARN_ADMIN_1 " , ."
!insertmacro LANG_STRING STR_WARN_ADMIN_2 " , ."
!insertmacro LANG_STRING STR_A_INSTALLED " Psi . ;$\n$\n <Yes> <No> "
!insertmacro LANG_STRING STR_ERR_UNINST " Psi. $\n$\n ;"
!insertmacro LANG_STRING STR_REMOVEONLY " "
; Translation by:
; Name: Novica Nakov
; Jabber ID: novica@bagra.net.mk
; E-mail: novican@mt.net.mk
!insertmacro LANG_STRING STR_PSIBASE "Psi ()"
!insertmacro LANG_STRING STR_LANGUAGES ""
!insertmacro LANG_STRING STR_CURRENTUSER " "
!insertmacro LANG_STRING STR_ALLUSERS " "
!insertmacro LANG_STRING STR_SHORTCUTS ""
!insertmacro LANG_STRING STR_QUICKLAUNCH " "
!insertmacro LANG_STRING STR_DESKTOP_S " "
!insertmacro LANG_STRING STR_STARTMENU_GROUP " Start"
!insertmacro LANG_STRING STR_AUTOSTART " "
!insertmacro LANG_STRING STR_ASK_EXIT_PSI " Psi!"
!insertmacro LANG_STRING STR_UNINST_RUNNING " ."
!insertmacro LANG_STRING STR_INST_RUNNING " ."
!insertmacro LANG_STRING STR_WARN_ADMIN_1 " , ."
!insertmacro LANG_STRING STR_WARN_ADMIN_2 " , ."
!insertmacro LANG_STRING STR_A_INSTALLED "Psi . ? $\n$\n <> <> ."
!insertmacro LANG_STRING STR_ERR_UNINST " Psi. $\n$\n ?"
!insertmacro LANG_STRING STR_REMOVEONLY " "
; Translation by:
; Name: Irek Chmielowiec /irekc
; Jabber ID: irek@chrome.pl
; E-mail: irekc@gazeta.pl
!insertmacro LANG_STRING STR_PSIBASE "Psi (podstawowe)"
!insertmacro LANG_STRING STR_LANGUAGES "Pliki jzykowe"
!insertmacro LANG_STRING STR_CURRENTUSER "Aktualny uytkownik"
!insertmacro LANG_STRING STR_ALLUSERS "Wszyscy uytkownicy"
!insertmacro LANG_STRING STR_SHORTCUTS "Utwrz skrty"
!insertmacro LANG_STRING STR_QUICKLAUNCH "Pasek szybkiego uruchamiania"
!insertmacro LANG_STRING STR_DESKTOP_S "Pulpit"
!insertmacro LANG_STRING STR_STARTMENU_GROUP "Menu Start"
!insertmacro LANG_STRING STR_AUTOSTART "Uruchamiaj przy starcie systemu"
!insertmacro LANG_STRING STR_ASK_EXIT_PSI "Naley zamkn wszystkie dziaajce kopie Psi aby kontynuowa instalacj!"
!insertmacro LANG_STRING STR_UNINST_RUNNING "Deinstalator jest ju uruchomiony."
!insertmacro LANG_STRING STR_INST_RUNNING "Instalator jest ju uruchomiony."
!insertmacro LANG_STRING STR_WARN_ADMIN_1 "Uruchamiasz instalator jako zwyky uytkownik, NIE jako Administrator."
!insertmacro LANG_STRING STR_WARN_ADMIN_2 "Aby odinstalowa aplikacj musisz uy tego samego konta uytkownika, w innym przypadku moe to spowodowa niestabilno systemu."
!insertmacro LANG_STRING STR_A_INSTALLED "Inna wersja Psi jest ju zainstalowana. Czy zastpi istniejc ju wersj? $\n$\nNacinij <Tak> aby usun isniejc wersj lub <Nie> aby zainstalowa now wersj oddzielnie."
!insertmacro LANG_STRING STR_ERR_UNINST "Wystpiy bdy podczas deinstalacji Psi. $\n$\nKontynuowa?"
!insertmacro LANG_STRING STR_REMOVEONLY "tylko odinstalowanie"
; Translation by (please specify contact information if further updates occur):
; Name: Badlop
; Jabber ID: badlop@jabberes.org
; E-mail: badlop@ono.com
!insertmacro LANG_STRING STR_PSIBASE "Psi (base)"
!insertmacro LANG_STRING STR_LANGUAGES "Lenguajes"
!insertmacro LANG_STRING STR_CURRENTUSER "Usuario actual"
!insertmacro LANG_STRING STR_ALLUSERS "Todos los usuarios"
!insertmacro LANG_STRING STR_SHORTCUTS "Accesos directos"
!insertmacro LANG_STRING STR_QUICKLAUNCH "Acceso directo en la Barra de Inicio Rpido"
!insertmacro LANG_STRING STR_DESKTOP_S "Acceso directo en el Escritorio"
!insertmacro LANG_STRING STR_STARTMENU_GROUP "Grupo del Men de Inicio"
!insertmacro LANG_STRING STR_AUTOSTART "Inicio automtico"
!insertmacro LANG_STRING STR_ASK_EXIT_PSI "Debes cerrar todas las copias de Psi para continuar!"
!insertmacro LANG_STRING STR_UNINST_RUNNING "El desinstalador ya est ejecutndose."
!insertmacro LANG_STRING STR_INST_RUNNING "El instalador ya est ejecutndose."
!insertmacro LANG_STRING STR_WARN_ADMIN_1 "Ests ejecutando este instalador como usuario normal, NO como un Administrator."
!insertmacro LANG_STRING STR_WARN_ADMIN_2 "Si quieres desinstalar esta aplicacin debes usar el mismo usuario o tu sistema se volver inestable."
!insertmacro LANG_STRING STR_A_INSTALLED "Psi ya estaba instalado.$\n$\nDeseas actualizarlo?$\n$\nPulsa <S> para desinstalar la versin anterior o <No> para instalar esta versin de forma separada."
!insertmacro LANG_STRING STR_ERR_UNINST "Ocurri algn error al desinstalar Psi. $\n$\nQuieres continuar?"
!insertmacro LANG_STRING STR_REMOVEONLY "borrar solo"
psi-l.bmp

51.3 KB

;*******************************************************************************
; psi.nsi v1.7 - NSIS script for installing Psi 0.9.3
; Copyright 2004-2005 Mircea Ionut Bardac (IceRAM)
;
; This program is free software; you can redistribute it and/or
; modify it under the terms of the GNU General Public License
; as published by the Free Software Foundation; either version 2
; of the License, or (at your option) any later version.
;
; This program is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
; GNU General Public License for more details.
;
; You should have received a copy of the GNU General Public License
; along with this file; if not, write to the Free Software
; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
;
; See ReadME.txt for more information on the script.
;*******************************************************************************
; Installer Script Version
!define INSTALLER_VERSION "1.7"
!define INSTALLER_BUILD "1"
; ^ update whenever you add something to the installer and rebuild it
; without changing APPVERSION
; ^ reset to 0 when you change APPVERSION
;!define BUILD_WITH_LANGPACKS
; ^ comment if you want to build the installer without language packs
;!define LANG_TEST_BUILD
; ^ uncomment if you want to build a test installer
!ifdef LANG_TEST_BUILD
!ifndef BUILD_WITH_LANGPACKS
!define BUILD_WITH_LANGPACKS
!endif
!endif
; Application name
!define APPNAME "Psi"
!define APPVERSION "0.9.3"
!define APPEXTRAVERSION ""
!define APPFULLVERSION "${APPVERSION}${APPEXTRAVERSION}"
!define APPNAMEANDVERSION "${APPNAME} ${APPFULLVERSION}"
!define LCAPPNAME "psi" ; lowercase APPNAME
; Version information for the installer executable
VIAddVersionKey ProductName "${APPNAME}"
VIAddVersionKey ProductVersion "${APPFULLVERSION}"
VIAddVersionKey Comments "${APPNAMEANDVERSION} Installer - Win32 Installer v${INSTALLER_VERSION} build ${INSTALLER_BUILD} 2004-2005 Mircea Ionut Bardac (IceRAM)"
VIAddVersionKey CompanyName ""
VIAddVersionKey LegalCopyright ""
VIAddVersionKey FileDescription "${APPNAMEANDVERSION} Installer (build ${INSTALLER_BUILD}) - Win32 Installer v${INSTALLER_VERSION}"
VIAddVersionKey FileVersion "${INSTALLER_VERSION}b${INSTALLER_BUILD}"
VIAddVersionKey InternalName "${APPNAMEANDVERSION} Installer (build ${INSTALLER_BUILD}) - Win32 Installer v${INSTALLER_VERSION}"
VIAddVersionKey LegalTrademarks ""
!ifdef LANG_TEST_BUILD
VIAddVersionKey OriginalFilename "${LCAPPNAME}-${APPFULLVERSION}-win-langtest.exe"
VIAddVersionKey PrivateBuild "Language Packs Included: all available"
!else
!ifdef BUILD_WITH_LANGPACKS
VIAddVersionKey OriginalFilename "${LCAPPNAME}-${APPFULLVERSION}-win-setup-i18n.exe"
VIAddVersionKey PrivateBuild "Language Packs Included: yes"
!else
VIAddVersionKey OriginalFilename "${LCAPPNAME}-${APPFULLVERSION}-win-setup.exe"
VIAddVersionKey PrivateBuild "Language Packs Included: none"
!endif
!endif
VIAddVersionKey SpecialBuild "Build number: ${INSTALLER_BUILD}"
VIProductVersion "${APPVERSION}.${INSTALLER_BUILD}"
SetCompressor lzma
Var DONE_INIT
Var RUN_BY_ADMIN
Var INST_CONTEXT
var LSTR_SHORTCUTS
var LSTR_CURRENTUSER
var LSTR_ALLUSERS
var LSTR_QUICKLAUNCH
var LSTR_DESKTOP_S
var LSTR_STARTMENU_GROUP
var LSTR_ASK_EXIT_PSI
var LSTR_UNINST_RUNNING
var LSTR_INST_RUNNING
var LSTR_WARN_ADMIN_1
var LSTR_WARN_ADMIN_2
var LSTR_PSIBASE
var LSTR_LANGUAGES
var LSTR_AUTOSTART
var LSTR_A_INSTALLED
var LSTR_ERR_UNINST
!include "Sections.nsh"
!include "installer-functions.nsh"
!define XPSTYLE on
BrandingText "- ${APPNAMEANDVERSION} installer - build ${INSTALLER_BUILD} / script ver. ${INSTALLER_VERSION} / 2004-2005 Mircea Ionut Bardac (IceRAM) "
!define HOME_URL "http://psi.affinix.com/"
!define INSTALLER_SOURCE "C:\dev\psi_installer"
; Main Install settings
Name "${APPNAMEANDVERSION}"
InstallDir "$PROGRAMFILES\Psi"
!ifdef LANG_TEST_BUILD
OutFile "${LCAPPNAME}-${APPFULLVERSION}-win-langtest.exe"
!else
!ifdef BUILD_WITH_LANGPACKS
OutFile "${LCAPPNAME}-${APPFULLVERSION}-win-setup-i18n.exe"
!else
OutFile "${LCAPPNAME}-${APPFULLVERSION}-win-setup.exe"
!endif
!endif
InstallDirRegKey HKLM "Software\Affinix\${APPNAME}" ""
; Modern interface settings
!include "MUI.nsh"
;--------------------------------
;Page settings
!define MUI_ICON "${INSTALLER_SOURCE}\install.ico"
!define MUI_UNICON "${INSTALLER_SOURCE}\uninstall.ico"
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP "${INSTALLER_SOURCE}\psi-header-l.bmp"
!define MUI_HEADERIMAGE_BITMAP_RTL "${INSTALLER_SOURCE}\psi-header-r.bmp"
!define MUI_HEADERIMAGE_UNBITMAP "${INSTALLER_SOURCE}\psi-header-l.bmp"
!define MUI_HEADERIMAGE_UNBITMAP_RTL "${INSTALLER_SOURCE}\psi-header-r.bmp"
!define MUI_ABORTWARNING
!define MUI_COMPONENTSPAGE_NODESC
!define MUI_FINISHPAGE_RUN "$INSTDIR\Psi.exe"
!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\Readme.txt"
!define MUI_FINISHPAGE_LINK "Psi - Home page"
!define MUI_FINISHPAGE_LINK_LOCATION "http://psi.affinix.com/"
!define MUI_WELCOMEFINISHPAGE_BITMAP "${INSTALLER_SOURCE}\psi-l.bmp"
!define MUI_UNWELCOMEFINISHPAGE_BITMAP "${INSTALLER_SOURCE}\psi-l.bmp"
;!define MUI_LICENSEPAGE_CHECKBOX
;--------------------------------
;Language Selection Dialog Settings
;Remember the installer language
!define MUI_LANGDLL_REGISTRY_ROOT "HKLM"
!define MUI_LANGDLL_REGISTRY_KEY "Software\Affinix\${APPNAME}"
!define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language"
PAGE custom InitRoutines
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "${INSTALLER_SOURCE}\psi_app\COPYING"
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
UNINSTPAGE custom un.InitRoutines
!insertmacro MUI_UNPAGE_WELCOME
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_UNPAGE_FINISH
;--------------------------------
; Languages
!include "installer-languages.nsh"
;--------------------------------
;Reserve Files
!insertmacro MUI_RESERVEFILE_LANGDLL
;--------------------------------
; macro for creating urls
!Macro "CreateURL" "URLFile" "URLSite"
WriteINIStr "$INSTDIR\${URLFile}.url" "InternetShortcut" "URL" "${URLSite}"
!macroend
;--------------------------------
;*********************************
; Sections of the installer
Section "!$LSTR_PSIBASE" SectionBase
; Set Section properties
SetOverwrite on
SectionIn RO
; Set Section Files and Shortcuts
!ifndef LANG_TEST_BUILD
!include "psi_files_install.nsi"
!else
SetOutPath "$INSTDIR\"
File "${INSTALLER_SOURCE}\psi_app\COPYING" ;install only one file when LANG_TEST_BUILD
!endif
SetOutPath "$INSTDIR\"
!insertmacro "CreateURL" "Psi - Home page" "http://psi.affinix.com/"
!insertmacro "CreateURL" "Psi - Forum" "http://psi.affinix.com/forums/"
!insertmacro "CreateURL" "Psi - Documentation" "http://psi.affinix.com/psi_docs/"
SectionEnd
Section "Crystal Iconsets" SectionCrystalIconsets
; Set Section properties
SetOutPath "$INSTDIR\iconsets\roster"
File "${INSTALLER_SOURCE}\psi_app\iconsets\roster\crystal_aim.jisp"
File "${INSTALLER_SOURCE}\psi_app\iconsets\roster\crystal_icq.jisp"
File "${INSTALLER_SOURCE}\psi_app\iconsets\roster\crystal_msn.jisp"
File "${INSTALLER_SOURCE}\psi_app\iconsets\roster\crystal_roster.jisp"
File "${INSTALLER_SOURCE}\psi_app\iconsets\roster\crystal_transport.jisp"
File "${INSTALLER_SOURCE}\psi_app\iconsets\roster\crystal_yahoo.jisp"
SetOutPath "$INSTDIR\iconsets\system"
File "${INSTALLER_SOURCE}\psi_app\iconsets\system\crystal_system.jisp"
SectionEnd
; ********************************
!ifdef BUILD_WITH_LANGPACKS
SubSection "$LSTR_LANGUAGES" SectionLang
; Czech
Section /o "Czech" LangCS
SetOverwrite on
SetOutPath "$INSTDIR\"
File "${INSTALLER_SOURCE}\psi_lang\psi_cs.qm"
SectionEnd
; Dutch
Section /o "Dutch" LangNL
SetOverwrite on
SetOutPath "$INSTDIR\"
File "${INSTALLER_SOURCE}\psi_lang\psi_nl.qm"
SectionEnd
; Estonian
Section /o "Estonian" LangET
SetOverwrite on
SetOutPath "$INSTDIR\"
File "${INSTALLER_SOURCE}\psi_lang\psi_et.qm"
SectionEnd
; French
Section /o "French" LangFR
SetOverwrite on
SetOutPath "$INSTDIR\"
File "${INSTALLER_SOURCE}\psi_lang\psi_fr.qm"
SectionEnd
; German
Section /o "German" LangDE
SetOverwrite on
SetOutPath "$INSTDIR\"
File "${INSTALLER_SOURCE}\psi_lang\psi_de.qm"
SectionEnd
; Greek
Section /o "Greek" LangEL
SetOverwrite on
SetOutPath "$INSTDIR\"
File "${INSTALLER_SOURCE}\psi_lang\psi_el.qm"
SectionEnd
; Macedonian
Section /o "Macedonian" LangMK
SetOverwrite on
SetOutPath "$INSTDIR\"
File "${INSTALLER_SOURCE}\psi_lang\psi_mk.qm"
SectionEnd
; Polish
Section /o "Polish" LangPL
SetOverwrite on
SetOutPath "$INSTDIR\"
File "${INSTALLER_SOURCE}\psi_lang\psi_pl.qm"
SectionEnd
; Simplified Chinese
Section /o "Simplified Chinese" LangZH
SetOverwrite on
SetOutPath "$INSTDIR\"
File "${INSTALLER_SOURCE}\psi_lang\psi_zh.qm"
SectionEnd
; Spanish
Section /o "Spanish" LangES
SetOverwrite on
SetOutPath "$INSTDIR\"
File "${INSTALLER_SOURCE}\psi_lang\psi_es.qm"
SectionEnd
; Russian
Section /o "Russian" LangRU
SetOverwrite on
SetOutPath "$INSTDIR\"
File "${INSTALLER_SOURCE}\psi_lang\psi_ru.qm"
SectionEnd
; Slovak
Section /o "Slovak" LangSK
SetOverwrite on
SetOutPath "$INSTDIR\"
File "${INSTALLER_SOURCE}\psi_lang\psi_sk.qm"
SectionEnd
; Vietnamese
Section /o "Vietnamese" LangVI
SetOverwrite on
SetOutPath "$INSTDIR\"
File "${INSTALLER_SOURCE}\psi_lang\psi_vi.qm"
SectionEnd
; *** FOLLOW THE PATTERN WHEN ADDING LANGUAGES
SubSectionEnd
!endif
Section "$LSTR_STARTMENU_GROUP ($INST_CONTEXT)" SectionSM
StrCmp $RUN_BY_ADMIN "true" sm_admin
sm_normal:
SetShellVarContext current
Goto sm_done
sm_admin:
SetShellVarContext all
sm_done:
CreateDirectory "$SMPROGRAMS\Psi"
SetOutPath "$INSTDIR\"
CreateShortCut "$SMPROGRAMS\Psi\Psi - Forum.lnk" "$INSTDIR\Psi - Forum.url"
CreateShortCut "$SMPROGRAMS\Psi\Psi - Documentation.lnk" "$INSTDIR\Psi - Documentation.url"
CreateShortCut "$SMPROGRAMS\Psi\Psi - Home page.lnk" "$INSTDIR\Psi - Home page.url"
CreateShortCut "$SMPROGRAMS\Psi\Psi.lnk" "$INSTDIR\Psi.exe"
CreateShortCut "$SMPROGRAMS\Psi\Uninstall.lnk" "$INSTDIR\uninstall.exe"
CreateShortCut "$SMPROGRAMS\Psi\ReadME.lnk" "$INSTDIR\Readme.txt"
SetShellVarContext current
SectionEnd
; ********************************
SubSection "$LSTR_SHORTCUTS ($LSTR_CURRENTUSER)" SectionShortcuts
Section "$LSTR_DESKTOP_S" SectionSD
SetShellVarContext current
SetOutPath "$INSTDIR\"
CreateShortCut "$DESKTOP\Psi.lnk" "$INSTDIR\Psi.exe"
SectionEnd
Section /o "$LSTR_QUICKLAUNCH" SectionQuickLaunch
SetShellVarContext current
SetOutPath "$INSTDIR\"
CreateShortCut "$QUICKLAUNCH\Psi.lnk" "$INSTDIR\Psi.exe"
SectionEnd
SubSectionEnd
Section "$LSTR_AUTOSTART ($LSTR_CURRENTUSER)" SectionAutomaticStartup
SetShellVarContext current
SetOutPath "$INSTDIR\"
CreateShortCut "$SMSTARTUP\Psi.lnk" "$INSTDIR\Psi.exe"
; WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Run" "Psi" "$INSTDIR\Psi.exe"
; ^ doesn't work - Psi is not started with the correct working dir
SectionEnd
Section -FinishSection
StrCmp $RUN_BY_ADMIN "true" lastsettings_is_admin
WriteRegStr HKCU "Software\Affinix\${APPNAME}" "" "$INSTDIR"
WriteRegStr HKCU "Software\Affinix\${APPNAME}" "Version" "${APPFULLVERSION}"
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" "DisplayName" "${APPNAME} (remove only)"
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" "UninstallString" "$INSTDIR\uninstall.exe"
Goto lastsettings_done
lastsettings_is_admin:
WriteRegStr HKLM "Software\Affinix\${APPNAME}" "" "$INSTDIR"
WriteRegStr HKLM "Software\Affinix\${APPNAME}" "Version" "${APPFULLVERSION}"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" "DisplayName" "${APPNAME} (remove only)"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" "UninstallString" "$INSTDIR\uninstall.exe"
lastsettings_done:
WriteUninstaller "$INSTDIR\uninstall.exe"
SectionEnd
; ***************************************
; installer initialization
Function InitRoutines
StrCmp $DONE_INIT "1" done_init
StrCpy $DONE_INIT "1"
; MessageBox MB_OK "Installing in $LANGUAGE"
!insertmacro INIT_LANG_STRINGS
; allow only one instance of the installer
System::Call 'kernel32::CreateMutexA(i 0, i 0, t "psi${APPFULLVERSION}-installer") i .r1 ?e'
Pop $R0
StrCmp $R0 0 +3
MessageBox MB_OK "$LSTR_INST_RUNNING"
Quit
; ****************
; close active Psi sessions
Call ClosePsiInstances
; ****************
; check for an existing installation of Psi
Call UninstallPreviousPsi
; ****************
Call IsUserAdmin
Pop $R0
StrCpy $RUN_BY_ADMIN $R0 ; saving information
StrCmp $R0 "true" is_admin
; not an admin
MessageBox MB_OK|MB_ICONINFORMATION "$LSTR_WARN_ADMIN_1$\n$\n$LSTR_WARN_ADMIN_2"
StrCpy $INST_CONTEXT $LSTR_CURRENTUSER
goto done_init
is_admin:
StrCpy $INST_CONTEXT $LSTR_ALLUSERS
done_init:
FunctionEnd
Function .onInit
; permit the user to choose the installer language
; the setting will be used to automatically select a language pack if availaible
!insertmacro MUI_LANGDLL_DISPLAY
; ****************
; expand Shorcuts Section
SectionGetFlags ${SectionShortcuts} $0
IntOp $0 $0 | ${SF_EXPAND}
SectionSetFlags ${SectionShortcuts} $0
; ****************
!ifdef BUILD_WITH_LANGPACKS
; automatically choose language pack to install
StrCmp $LANGUAGE ${LANG_CZECH} 0 +2
SectionSetFlags ${LangCS} ${SF_SELECTED}
StrCmp $LANGUAGE ${LANG_ESTONIAN} 0 +2
SectionSetFlags ${LangET} ${SF_SELECTED}
StrCmp $LANGUAGE ${LANG_DUTCH} 0 +2
SectionSetFlags ${LangNL} ${SF_SELECTED}
StrCmp $LANGUAGE ${LANG_FRENCH} 0 +2
SectionSetFlags ${LangFR} ${SF_SELECTED}
StrCmp $LANGUAGE ${LANG_GERMAN} 0 +2
SectionSetFlags ${LangDE} ${SF_SELECTED}
StrCmp $LANGUAGE ${LANG_GREEK} 0 +2
SectionSetFlags ${LangEL} ${SF_SELECTED}
StrCmp $LANGUAGE ${LANG_MACEDONIAN} 0 +2
SectionSetFlags ${LangMK} ${SF_SELECTED}
StrCmp $LANGUAGE ${LANG_POLISH} 0 +2
SectionSetFlags ${LangPL} ${SF_SELECTED}
StrCmp $LANGUAGE ${LANG_SIMPCHINESE} 0 +2
SectionSetFlags ${LangZH} ${SF_SELECTED}
StrCmp $LANGUAGE ${LANG_SPANISH} 0 +2
SectionSetFlags ${LangES} ${SF_SELECTED}
StrCmp $LANGUAGE ${LANG_RUSSIAN} 0 +2
SectionSetFlags ${LangRU} ${SF_SELECTED}
StrCmp $LANGUAGE ${LANG_SLOVAK} 0 +2
SectionSetFlags ${LangSK} ${SF_SELECTED}
; no Vietnamese AutoSelection
; *** FOLLOW THE PATTERN WHEN ADDING LANGUAGES
; ****************
!endif
StrCpy $DONE_INIT "0"
; init strings now
FunctionEnd
; ******************************************************
; Uninstall functions
; function that checks if the user running the UNinstaller is an Administrator
Function un.IsUserAdmin
Push $R0
Push $R1
Push $R2
ClearErrors
UserInfo::GetName
IfErrors Win9x
Pop $R1
UserInfo::GetAccountType
Pop $R2
StrCmp $R2 "Admin" 0 Continue
StrCpy $R0 "true"
Goto Done
Continue:
StrCmp $R2 "" Win9x
StrCpy $R0 "false"
Goto Done
Win9x:
StrCpy $R0 "true"
Done:
Pop $R2
Pop $R1
Exch $R0
FunctionEnd
; ********************************
; Close Psi Instances
; Waits for all running instances of Psi to close
Function un.ClosePsiInstances
Push $0 ;saving stack
newcheck:
FindWindow $0 "QWidget" "Psi" 0
IntCmp $0 0 done
MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION "$LSTR_ASK_EXIT_PSI" IDRETRY newcheck
; cancel
Quit
done:
Pop $0 ; restoring stack
FunctionEnd
Function un.InitRoutines
; MessageBox MB_OK "Uninstalling"
StrCmp $DONE_INIT "1" done_un_init
StrCpy $DONE_INIT "1"
!insertmacro INIT_LANG_STRINGS
; allow only one instance of the uninstaller
System::Call 'kernel32::CreateMutexA(i 0, i 0, t "psi${APPFULLVERSION}-uninstaller") i .r1 ?e'
Pop $R0
StrCmp $R0 0 +3
MessageBox MB_OK "$LSTR_UNINST_RUNNING"
Abort
;ask the user to close all psi instances on uninstall
Call un.ClosePsiInstances
done_un_init:
FunctionEnd
Function un.onInit
; ****************
;uninstall saved language setting
!insertmacro MUI_UNGETLANGUAGE
StrCpy $DONE_INIT "0"
FunctionEnd
;Uninstall section
Section Uninstall
;Remove from registry...
Call un.IsUserAdmin
Pop $R0
StrCmp $R0 "true" uninstall_is_admin
DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}"
DeleteRegKey HKCU "Software\Affinix\${APPNAME}"
Goto uninstall_done
uninstall_is_admin:
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}"
DeleteRegKey HKLM "Software\Affinix\${APPNAME}"
uninstall_done:
; Delete self
Delete "$INSTDIR\uninstall.exe"
; Delete Crystal Iconsets
Delete "$INSTDIR\iconsets\roster\crystal_aim.jisp"
Delete "$INSTDIR\iconsets\roster\crystal_icq.jisp"
Delete "$INSTDIR\iconsets\roster\crystal_msn.jisp"
Delete "$INSTDIR\iconsets\roster\crystal_roster.jisp"
Delete "$INSTDIR\iconsets\roster\crystal_transport.jisp"
Delete "$INSTDIR\iconsets\roster\crystal_yahoo.jisp"
Delete "$INSTDIR\iconsets\system\crystal_system.jisp"
; Delete links
Delete "$INSTDIR\Psi - Forum.url";
Delete "$INSTDIR\Psi - Home page.url";
Delete "$INSTDIR\Psi - Documentation.url";
; Delete Shortcuts
SetShellVarContext current
Delete "$DESKTOP\Psi.lnk"
Delete "$SMPROGRAMS\Psi\Psi.lnk"
Delete "$SMPROGRAMS\Psi\Uninstall.lnk"
Delete "$SMPROGRAMS\Psi\ReadME.lnk"
Delete "$QUICKLAUNCH\Psi.lnk"
Delete "$SMPROGRAMS\Psi\Psi - Forum.lnk"
Delete "$SMPROGRAMS\Psi\Psi - Home page.lnk"
Delete "$SMPROGRAMS\Psi\Psi - Documentation.lnk"
RMDir "$SMPROGRAMS\Psi"
SetShellVarContext all
Delete "$DESKTOP\Psi.lnk"
Delete "$SMPROGRAMS\Psi\Psi.lnk"
Delete "$SMPROGRAMS\Psi\Uninstall.lnk"
Delete "$SMPROGRAMS\Psi\ReadME.lnk"
Delete "$QUICKLAUNCH\Psi.lnk"
Delete "$SMPROGRAMS\Psi\Psi - Forum.lnk"
Delete "$SMPROGRAMS\Psi\Psi - Home page.lnk"
Delete "$SMPROGRAMS\Psi\Psi - Documentation.lnk"
RMDir "$SMPROGRAMS\Psi"
; DeleteRegValue HKCU "Software\Microsoft\Windows\CurrentVersion\Run" "Psi"
; ^ Registry shortcut doesn't work
SetShellVarContext current
Delete "$SMSTARTUP\Psi.lnk"
!ifdef BUILD_WITH_LANGPACKS
; Delete Language files
Delete "$INSTDIR\psi_cs.qm"
Delete "$INSTDIR\psi_et.qm"
Delete "$INSTDIR\psi_nl.qm"
Delete "$INSTDIR\psi_fr.qm"
Delete "$INSTDIR\psi_de.qm"
Delete "$INSTDIR\psi_el.qm"
Delete "$INSTDIR\psi_mk.qm"
Delete "$INSTDIR\psi_pl.qm"
Delete "$INSTDIR\psi_zh.qm"
Delete "$INSTDIR\psi_es.qm"
Delete "$INSTDIR\psi_ru.qm"
Delete "$INSTDIR\psi_sk.qm"
Delete "$INSTDIR\psi_vi.qm"
; *** FOLLOW THE PATTERN WHEN ADDING LANGUAGES
!endif
; Clean up Psi (base)
!include "psi_files_uninstall.nsi"
SectionEnd
Function UninstallPreviousPsi
Call IsUserAdmin
Pop $R0
StrCpy $RUN_BY_ADMIN $R0 ; saving information
StrCmp $R0 "true" unppsi_is_admin
ReadRegStr $R0 HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" "UninstallString"
ReadRegStr $R1 HKCU "Software\Affinix\${APPNAME}" ""
goto unppsi_done
unppsi_is_admin:
ReadRegStr $R0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" "UninstallString"
ReadRegStr $R1 HKLM "Software\Affinix\${APPNAME}" ""
unppsi_done:
; $R0 holds the path to the uninstaller
; $R1 holds the install dir
StrCmp $R0 "" auto_uninstall_done
MessageBox MB_YESNO|MB_ICONEXCLAMATION "$LSTR_A_INSTALLED" \
IDYES auto_uninstall_yes \
IDNO auto_uninstall_done
;Run the uninstaller
auto_uninstall_yes:
ClearErrors
ExecWait '$R0 /S _?=$INSTDIR'
;Uninstall silently
;Do not copy the uninstaller to a temp file
IfErrors no_remove_uninstaller
Goto auto_uninstall_done
no_remove_uninstaller:
MessageBox MB_YESNO|MB_ICONQUESTION "$LSTR_ERR_UNINST" \
IDYES auto_uninstall_done \
IDNO auto_uninstall_exit
auto_uninstall_exit:
Quit
auto_uninstall_done:
FunctionEnd
; eof
;
; List of files to be INSTALLED (Base section)
;
SetOutPath "$INSTDIR\"
File "psi_app\Readme.txt"
File "psi_app\idleui.dll"
File "psi_app\qt-mt333.dll"
File "psi_app\Install.txt"
File "psi_app\qca.dll"
File "psi_app\COPYING"
File "psi_app\ssleay32.dll"
File "psi_app\libeay32.dll"
File "psi_app\Psi.exe"
SetOutPath "$INSTDIR\crypto"
File "psi_app\crypto\qca-tls.dll"
SetOutPath "$INSTDIR\certs"
File "psi_app\certs\README"
File "psi_app\certs\rootcert.xml"
SetOutPath "$INSTDIR\sound"
File "psi_app\sound\online.wav"
File "psi_app\sound\chat1.wav"
File "psi_app\sound\chat2.wav"
File "psi_app\sound\offline.wav"
File "psi_app\sound\send.wav"
File "psi_app\sound\ft_incoming.wav"
File "psi_app\sound\ft_complete.wav"
SetOutPath "$INSTDIR\iconsets\emoticons\default"
File "psi_app\iconsets\emoticons\default\devil.png"
File "psi_app\iconsets\emoticons\default\tongue.png"
File "psi_app\iconsets\emoticons\default\girl.png"
File "psi_app\iconsets\emoticons\default\blush.png"
File "psi_app\iconsets\emoticons\default\drink.png"
File "psi_app\iconsets\emoticons\default\cry.png"
File "psi_app\iconsets\emoticons\default\yes.png"
File "psi_app\iconsets\emoticons\default\rainbow.png"
File "psi_app\iconsets\emoticons\default\hugright.png"
File "psi_app\iconsets\emoticons\default\coolglasses.png"
File "psi_app\iconsets\emoticons\default\unhappy.png"
File "psi_app\iconsets\emoticons\default\pussy.png"
File "psi_app\iconsets\emoticons\default\beer.png"
File "psi_app\iconsets\emoticons\default\music.png"
File "psi_app\iconsets\emoticons\default\mail.png"
File "psi_app\iconsets\emoticons\default\heart.png"
File "psi_app\iconsets\emoticons\default\biggrin.png"
File "psi_app\iconsets\emoticons\default\brflower.png"
File "psi_app\iconsets\emoticons\default\kiss.png"
File "psi_app\iconsets\emoticons\default\flower.png"
File "psi_app\iconsets\emoticons\default\smile.png"
File "psi_app\iconsets\emoticons\default\coffee.png"
File "psi_app\iconsets\emoticons\default\no.png"
File "psi_app\iconsets\emoticons\default\oh.png"
File "psi_app\iconsets\emoticons\default\angry.png"
File "psi_app\iconsets\emoticons\default\wink.png"
File "psi_app\iconsets\emoticons\default\icondef.xml"
File "psi_app\iconsets\emoticons\default\star.png"
File "psi_app\iconsets\emoticons\default\bat.png"
File "psi_app\iconsets\emoticons\default\brheart.png"
File "psi_app\iconsets\emoticons\default\cuffs.png"
File "psi_app\iconsets\emoticons\default\stare.png"
File "psi_app\iconsets\emoticons\default\phone.png"
File "psi_app\iconsets\emoticons\default\lamp.png"
File "psi_app\iconsets\emoticons\default\photo.png"
File "psi_app\iconsets\emoticons\default\frowning.png"
File "psi_app\iconsets\emoticons\default\boy.png"
File "psi_app\iconsets\emoticons\default\hugleft.png"
SetOutPath "$INSTDIR\iconsets\emoticons\"
File "psi_app\iconsets\emoticons\README"
SetOutPath "$INSTDIR\iconsets\roster\aim"
File "psi_app\iconsets\roster\aim\online.png"
File "psi_app\iconsets\roster\aim\dnd.png"
File "psi_app\iconsets\roster\aim\away.png"
File "psi_app\iconsets\roster\aim\offline.png"
File "psi_app\iconsets\roster\aim\icondef.xml"
File "psi_app\iconsets\roster\aim\xa.png"
SetOutPath "$INSTDIR\iconsets\roster\icq"
File "psi_app\iconsets\roster\icq\online.png"
File "psi_app\iconsets\roster\icq\dnd.png"
File "psi_app\iconsets\roster\icq\away.png"
File "psi_app\iconsets\roster\icq\chat.png"
File "psi_app\iconsets\roster\icq\offline.png"
File "psi_app\iconsets\roster\icq\invisible.png"
File "psi_app\iconsets\roster\icq\icondef.xml"
File "psi_app\iconsets\roster\icq\xa.png"
SetOutPath "$INSTDIR\iconsets\roster\msn"
File "psi_app\iconsets\roster\msn\online.png"
File "psi_app\iconsets\roster\msn\dnd.png"
File "psi_app\iconsets\roster\msn\away.png"
File "psi_app\iconsets\roster\msn\offline.png"
File "psi_app\iconsets\roster\msn\icondef.xml"
SetOutPath "$INSTDIR\iconsets\roster\sms"
File "psi_app\iconsets\roster\sms\online.png"
File "psi_app\iconsets\roster\sms\dnd.png"
File "psi_app\iconsets\roster\sms\away.png"
File "psi_app\iconsets\roster\sms\offline.png"
File "psi_app\iconsets\roster\sms\icondef.xml"
File "psi_app\iconsets\roster\sms\xa.png"
SetOutPath "$INSTDIR\iconsets\roster\default"
File "psi_app\iconsets\roster\default\headline.png"
File "psi_app\iconsets\roster\default\online.png"
File "psi_app\iconsets\roster\default\dnd.png"
File "psi_app\iconsets\roster\default\message.png"
File "psi_app\iconsets\roster\default\away.png"
File "psi_app\iconsets\roster\default\chat.png"
File "psi_app\iconsets\roster\default\system.png"
File "psi_app\iconsets\roster\default\ffc.png"
File "psi_app\iconsets\roster\default\file.png"
File "psi_app\iconsets\roster\default\offline.png"
File "psi_app\iconsets\roster\default\invisible.png"
File "psi_app\iconsets\roster\default\groupempty.png"
File "psi_app\iconsets\roster\default\groupclose.png"
File "psi_app\iconsets\roster\default\icondef.xml"
File "psi_app\iconsets\roster\default\xa.png"
File "psi_app\iconsets\roster\default\noauth.png"
File "psi_app\iconsets\roster\default\groupopen.png"
File "psi_app\iconsets\roster\default\ask.png"
File "psi_app\iconsets\roster\default\connect.png"
File "psi_app\iconsets\roster\default\perr.png"
SetOutPath "$INSTDIR\iconsets\roster\transport"
File "psi_app\iconsets\roster\transport\online.png"
File "psi_app\iconsets\roster\transport\dnd.png"
File "psi_app\iconsets\roster\transport\away.png"
File "psi_app\iconsets\roster\transport\offline.png"
File "psi_app\iconsets\roster\transport\icondef.xml"
File "psi_app\iconsets\roster\transport\xa.png"
SetOutPath "$INSTDIR\iconsets\roster\yahoo"
File "psi_app\iconsets\roster\yahoo\online.png"
File "psi_app\iconsets\roster\yahoo\dnd.png"
File "psi_app\iconsets\roster\yahoo\away.png"
File "psi_app\iconsets\roster\yahoo\offline.png"
File "psi_app\iconsets\roster\yahoo\icondef.xml"
File "psi_app\iconsets\roster\yahoo\xa.png"
SetOutPath "$INSTDIR\iconsets\roster"
File "psi_app\iconsets\roster\README"
SetOutPath "$INSTDIR\iconsets\roster\stellar-icq"
File "psi_app\iconsets\roster\stellar-icq\online.png"
File "psi_app\iconsets\roster\stellar-icq\dnd.png"
File "psi_app\iconsets\roster\stellar-icq\away.png"
File "psi_app\iconsets\roster\stellar-icq\ffc.png"
File "psi_app\iconsets\roster\stellar-icq\offline.png"
File "psi_app\iconsets\roster\stellar-icq\invisible.png"
File "psi_app\iconsets\roster\stellar-icq\icondef.xml"
File "psi_app\iconsets\roster\stellar-icq\xa.png"
File "psi_app\iconsets\roster\stellar-icq\noauth.png"
File "psi_app\iconsets\roster\stellar-icq\ask.png"
SetOutPath "$INSTDIR\iconsets\roster\gadugadu"
File "psi_app\iconsets\roster\gadugadu\online.png"
File "psi_app\iconsets\roster\gadugadu\away.png"
File "psi_app\iconsets\roster\gadugadu\offline.png"
File "psi_app\iconsets\roster\gadugadu\invisible.png"
File "psi_app\iconsets\roster\gadugadu\icondef.xml"
SetOutPath "$INSTDIR\iconsets\roster\lightbulb"
File "psi_app\iconsets\roster\lightbulb\online.png"
File "psi_app\iconsets\roster\lightbulb\dnd.png"
File "psi_app\iconsets\roster\lightbulb\message.png"
File "psi_app\iconsets\roster\lightbulb\away.png"
File "psi_app\iconsets\roster\lightbulb\chat.png"
File "psi_app\iconsets\roster\lightbulb\system.png"
File "psi_app\iconsets\roster\lightbulb\ffc.png"
File "psi_app\iconsets\roster\lightbulb\offline.png"
File "psi_app\iconsets\roster\lightbulb\invisible.png"
File "psi_app\iconsets\roster\lightbulb\groupempty.png"
File "psi_app\iconsets\roster\lightbulb\groupclose.png"
File "psi_app\iconsets\roster\lightbulb\icondef.xml"
File "psi_app\iconsets\roster\lightbulb\xa.png"
File "psi_app\iconsets\roster\lightbulb\groupopen.png"
SetOutPath "$INSTDIR\iconsets\system\default"
File "psi_app\iconsets\system\default\edit.png"
File "psi_app\iconsets\system\default\key_bad.png"
File "psi_app\iconsets\system\default\xml.png"
File "psi_app\iconsets\system\default\key.png"
File "psi_app\iconsets\system\default\options.png"
File "psi_app\iconsets\system\default\filemanager.png"
File "psi_app\iconsets\system\default\account.png"
File "psi_app\iconsets\system\default\browse.png"
File "psi_app\iconsets\system\default\icon_16.png"
File "psi_app\iconsets\system\default\arrow_right.png"
File "psi_app\iconsets\system\default\vcard.png"
File "psi_app\iconsets\system\default\icon_32.png"
File "psi_app\iconsets\system\default\icon_48.png"
File "psi_app\iconsets\system\default\history.png"
File "psi_app\iconsets\system\default\arrow_down.png"
File "psi_app\iconsets\system\default\ssl_yes.png"
File "psi_app\iconsets\system\default\editcut.png"
File "psi_app\iconsets\system\default\groupchat.png"
File "psi_app\iconsets\system\default\psimain.png"
File "psi_app\iconsets\system\default\arrow_left.png"
File "psi_app\iconsets\system\default\jabber.png"
File "psi_app\iconsets\system\default\remove.png"
File "psi_app\iconsets\system\default\key_unknown.png"
File "psi_app\iconsets\system\default\tip.png"
File "psi_app\iconsets\system\default\icon_mac.png"
File "psi_app\iconsets\system\default\reload.png"
File "psi_app\iconsets\system\default\smile.png"
File "psi_app\iconsets\system\default\add.png"
File "psi_app\iconsets\system\default\ok.png"
File "psi_app\iconsets\system\default\editclear.png"
File "psi_app\iconsets\system\default\changeacc.png"
File "psi_app\iconsets\system\default\arrow_up.png"
File "psi_app\iconsets\system\default\upload.png"
File "psi_app\iconsets\system\default\send.png"
File "psi_app\iconsets\system\default\icondef.xml"
File "psi_app\iconsets\system\default\chatclear.png"
File "psi_app\iconsets\system\default\configure_toolbars.png"
File "psi_app\iconsets\system\default\play_sounds.png"
File "psi_app\iconsets\system\default\url.png"
File "psi_app\iconsets\system\default\edittrash.png"
File "psi_app\iconsets\system\default\ssl_no.png"
File "psi_app\iconsets\system\default\search.png"
File "psi_app\iconsets\system\default\close.png"
File "psi_app\iconsets\system\default\play.png"
File "psi_app\iconsets\system\default\editcopy.png"
File "psi_app\iconsets\system\default\quit.png"
File "psi_app\iconsets\system\default\psilogo.png"
File "psi_app\iconsets\system\default\register.png"
File "psi_app\iconsets\system\default\info.png"
File "psi_app\iconsets\system\default\editpaste.png"
File "psi_app\iconsets\system\default\pgp.png"
File "psi_app\iconsets\system\default\time.png"
File "psi_app\iconsets\system\default\key2.png"
File "psi_app\iconsets\system\default\stop.png"
File "psi_app\iconsets\system\default\editdelete.png"
File "psi_app\iconsets\system\default\download.png"
File "psi_app\iconsets\system\default\cancel.png"
File "psi_app\iconsets\system\default\eye_blue.png"
File "psi_app\iconsets\system\default\help.png"
; SetOutPath "$INSTDIR\iconsets\system\default\clients"
; File "psi_app\iconsets\system\default\clients\tkabber.png"
; File "psi_app\iconsets\system\default\clients\gossip.png"
; File "psi_app\iconsets\system\default\clients\pandion.png"
; File "psi_app\iconsets\system\default\clients\msn.png"
; File "psi_app\iconsets\system\default\clients\jajc.png"
; File "psi_app\iconsets\system\default\clients\exodus.png"
; File "psi_app\iconsets\system\default\clients\aim.png"
; File "psi_app\iconsets\system\default\clients\gabber.png"
; File "psi_app\iconsets\system\default\clients\unknown.png"
; File "psi_app\iconsets\system\default\clients\kopete.png"
; File "psi_app\iconsets\system\default\clients\yahoo.png"
; File "psi_app\iconsets\system\default\clients\gadu.png"
; File "psi_app\iconsets\system\default\clients\trillian.png"
; File "psi_app\iconsets\system\default\clients\icq.png"
; File "psi_app\iconsets\system\default\clients\gaim.png"
; File "psi_app\iconsets\system\default\clients\nitro.png"
SetOutPath "$INSTDIR\iconsets\system"
File "psi_app\iconsets\system\README"
;
; List of files to be INSTALLED (Base section)
;
Delete "$INSTDIR\Readme.txt"
Delete "$INSTDIR\idleui.dll"
Delete "$INSTDIR\qt-mt333.dll"
Delete "$INSTDIR\Install.txt"
Delete "$INSTDIR\qca.dll"
Delete "$INSTDIR\COPYING"
Delete "$INSTDIR\ssleay32.dll"
Delete "$INSTDIR\libeay32.dll"
Delete "$INSTDIR\Psi.exe"
Delete "$INSTDIR\crypto\qca-tls.dll"
Delete "$INSTDIR\certs\README"
Delete "$INSTDIR\certs\rootcert.xml"
Delete "$INSTDIR\sound\online.wav"
Delete "$INSTDIR\sound\chat1.wav"
Delete "$INSTDIR\sound\chat2.wav"
Delete "$INSTDIR\sound\offline.wav"
Delete "$INSTDIR\sound\send.wav"
Delete "$INSTDIR\sound\ft_incoming.wav"
Delete "$INSTDIR\sound\ft_complete.wav"
Delete "$INSTDIR\iconsets\emoticons\default\devil.png"
Delete "$INSTDIR\iconsets\emoticons\default\tongue.png"
Delete "$INSTDIR\iconsets\emoticons\default\girl.png"
Delete "$INSTDIR\iconsets\emoticons\default\blush.png"
Delete "$INSTDIR\iconsets\emoticons\default\drink.png"
Delete "$INSTDIR\iconsets\emoticons\default\cry.png"
Delete "$INSTDIR\iconsets\emoticons\default\yes.png"
Delete "$INSTDIR\iconsets\emoticons\default\rainbow.png"
Delete "$INSTDIR\iconsets\emoticons\default\hugright.png"
Delete "$INSTDIR\iconsets\emoticons\default\coolglasses.png"
Delete "$INSTDIR\iconsets\emoticons\default\unhappy.png"
Delete "$INSTDIR\iconsets\emoticons\default\pussy.png"
Delete "$INSTDIR\iconsets\emoticons\default\beer.png"
Delete "$INSTDIR\iconsets\emoticons\default\music.png"
Delete "$INSTDIR\iconsets\emoticons\default\mail.png"
Delete "$INSTDIR\iconsets\emoticons\default\heart.png"
Delete "$INSTDIR\iconsets\emoticons\default\biggrin.png"
Delete "$INSTDIR\iconsets\emoticons\default\brflower.png"
Delete "$INSTDIR\iconsets\emoticons\default\kiss.png"
Delete "$INSTDIR\iconsets\emoticons\default\flower.png"
Delete "$INSTDIR\iconsets\emoticons\default\smile.png"
Delete "$INSTDIR\iconsets\emoticons\default\coffee.png"
Delete "$INSTDIR\iconsets\emoticons\default\no.png"
Delete "$INSTDIR\iconsets\emoticons\default\oh.png"
Delete "$INSTDIR\iconsets\emoticons\default\angry.png"
Delete "$INSTDIR\iconsets\emoticons\default\wink.png"
Delete "$INSTDIR\iconsets\emoticons\default\icondef.xml"
Delete "$INSTDIR\iconsets\emoticons\default\star.png"
Delete "$INSTDIR\iconsets\emoticons\default\bat.png"
Delete "$INSTDIR\iconsets\emoticons\default\brheart.png"
Delete "$INSTDIR\iconsets\emoticons\default\cuffs.png"
Delete "$INSTDIR\iconsets\emoticons\default\stare.png"
Delete "$INSTDIR\iconsets\emoticons\default\phone.png"
Delete "$INSTDIR\iconsets\emoticons\default\lamp.png"
Delete "$INSTDIR\iconsets\emoticons\default\photo.png"
Delete "$INSTDIR\iconsets\emoticons\default\frowning.png"
Delete "$INSTDIR\iconsets\emoticons\default\boy.png"
Delete "$INSTDIR\iconsets\emoticons\default\hugleft.png"
Delete "$INSTDIR\iconsets\emoticons\README"
Delete "$INSTDIR\iconsets\roster\aim\online.png"
Delete "$INSTDIR\iconsets\roster\aim\dnd.png"
Delete "$INSTDIR\iconsets\roster\aim\away.png"
Delete "$INSTDIR\iconsets\roster\aim\offline.png"
Delete "$INSTDIR\iconsets\roster\aim\icondef.xml"
Delete "$INSTDIR\iconsets\roster\aim\xa.png"
Delete "$INSTDIR\iconsets\roster\icq\online.png"
Delete "$INSTDIR\iconsets\roster\icq\dnd.png"
Delete "$INSTDIR\iconsets\roster\icq\away.png"
Delete "$INSTDIR\iconsets\roster\icq\chat.png"
Delete "$INSTDIR\iconsets\roster\icq\offline.png"
Delete "$INSTDIR\iconsets\roster\icq\invisible.png"
Delete "$INSTDIR\iconsets\roster\icq\icondef.xml"
Delete "$INSTDIR\iconsets\roster\icq\xa.png"
Delete "$INSTDIR\iconsets\roster\msn\online.png"
Delete "$INSTDIR\iconsets\roster\msn\dnd.png"
Delete "$INSTDIR\iconsets\roster\msn\away.png"
Delete "$INSTDIR\iconsets\roster\msn\offline.png"
Delete "$INSTDIR\iconsets\roster\msn\icondef.xml"
Delete "$INSTDIR\iconsets\roster\sms\online.png"
Delete "$INSTDIR\iconsets\roster\sms\dnd.png"
Delete "$INSTDIR\iconsets\roster\sms\away.png"
Delete "$INSTDIR\iconsets\roster\sms\offline.png"
Delete "$INSTDIR\iconsets\roster\sms\icondef.xml"
Delete "$INSTDIR\iconsets\roster\sms\xa.png"
Delete "$INSTDIR\iconsets\roster\default\headline.png"
Delete "$INSTDIR\iconsets\roster\default\online.png"
Delete "$INSTDIR\iconsets\roster\default\dnd.png"
Delete "$INSTDIR\iconsets\roster\default\message.png"
Delete "$INSTDIR\iconsets\roster\default\away.png"
Delete "$INSTDIR\iconsets\roster\default\chat.png"
Delete "$INSTDIR\iconsets\roster\default\system.png"
Delete "$INSTDIR\iconsets\roster\default\ffc.png"
Delete "$INSTDIR\iconsets\roster\default\file.png"
Delete "$INSTDIR\iconsets\roster\default\offline.png"
Delete "$INSTDIR\iconsets\roster\default\invisible.png"
Delete "$INSTDIR\iconsets\roster\default\groupempty.png"
Delete "$INSTDIR\iconsets\roster\default\groupclose.png"
Delete "$INSTDIR\iconsets\roster\default\icondef.xml"
Delete "$INSTDIR\iconsets\roster\default\xa.png"
Delete "$INSTDIR\iconsets\roster\default\noauth.png"
Delete "$INSTDIR\iconsets\roster\default\groupopen.png"
Delete "$INSTDIR\iconsets\roster\default\ask.png"
Delete "$INSTDIR\iconsets\roster\default\connect.png"
Delete "$INSTDIR\iconsets\roster\default\perr.png"
Delete "$INSTDIR\iconsets\roster\transport\online.png"
Delete "$INSTDIR\iconsets\roster\transport\dnd.png"
Delete "$INSTDIR\iconsets\roster\transport\away.png"
Delete "$INSTDIR\iconsets\roster\transport\offline.png"
Delete "$INSTDIR\iconsets\roster\transport\icondef.xml"
Delete "$INSTDIR\iconsets\roster\transport\xa.png"
Delete "$INSTDIR\iconsets\roster\yahoo\online.png"
Delete "$INSTDIR\iconsets\roster\yahoo\dnd.png"
Delete "$INSTDIR\iconsets\roster\yahoo\away.png"
Delete "$INSTDIR\iconsets\roster\yahoo\offline.png"
Delete "$INSTDIR\iconsets\roster\yahoo\icondef.xml"
Delete "$INSTDIR\iconsets\roster\yahoo\xa.png"
Delete "$INSTDIR\iconsets\roster\README"
Delete "$INSTDIR\iconsets\roster\stellar-icq\online.png"
Delete "$INSTDIR\iconsets\roster\stellar-icq\dnd.png"
Delete "$INSTDIR\iconsets\roster\stellar-icq\away.png"
Delete "$INSTDIR\iconsets\roster\stellar-icq\ffc.png"
Delete "$INSTDIR\iconsets\roster\stellar-icq\offline.png"
Delete "$INSTDIR\iconsets\roster\stellar-icq\invisible.png"
Delete "$INSTDIR\iconsets\roster\stellar-icq\icondef.xml"
Delete "$INSTDIR\iconsets\roster\stellar-icq\xa.png"
Delete "$INSTDIR\iconsets\roster\stellar-icq\noauth.png"
Delete "$INSTDIR\iconsets\roster\stellar-icq\ask.png"
Delete "$INSTDIR\iconsets\roster\gadugadu\online.png"
Delete "$INSTDIR\iconsets\roster\gadugadu\away.png"
Delete "$INSTDIR\iconsets\roster\gadugadu\offline.png"
Delete "$INSTDIR\iconsets\roster\gadugadu\invisible.png"
Delete "$INSTDIR\iconsets\roster\gadugadu\icondef.xml"
Delete "$INSTDIR\iconsets\roster\lightbulb\online.png"
Delete "$INSTDIR\iconsets\roster\lightbulb\dnd.png"
Delete "$INSTDIR\iconsets\roster\lightbulb\message.png"
Delete "$INSTDIR\iconsets\roster\lightbulb\away.png"
Delete "$INSTDIR\iconsets\roster\lightbulb\chat.png"
Delete "$INSTDIR\iconsets\roster\lightbulb\system.png"
Delete "$INSTDIR\iconsets\roster\lightbulb\ffc.png"
Delete "$INSTDIR\iconsets\roster\lightbulb\offline.png"
Delete "$INSTDIR\iconsets\roster\lightbulb\invisible.png"
Delete "$INSTDIR\iconsets\roster\lightbulb\groupempty.png"
Delete "$INSTDIR\iconsets\roster\lightbulb\groupclose.png"
Delete "$INSTDIR\iconsets\roster\lightbulb\icondef.xml"
Delete "$INSTDIR\iconsets\roster\lightbulb\xa.png"
Delete "$INSTDIR\iconsets\roster\lightbulb\groupopen.png"
Delete "$INSTDIR\iconsets\system\default\edit.png"
Delete "$INSTDIR\iconsets\system\default\key_bad.png"
Delete "$INSTDIR\iconsets\system\default\xml.png"
Delete "$INSTDIR\iconsets\system\default\key.png"
Delete "$INSTDIR\iconsets\system\default\options.png"
Delete "$INSTDIR\iconsets\system\default\filemanager.png"
Delete "$INSTDIR\iconsets\system\default\account.png"
Delete "$INSTDIR\iconsets\system\default\browse.png"
Delete "$INSTDIR\iconsets\system\default\icon_16.png"
Delete "$INSTDIR\iconsets\system\default\arrow_right.png"
Delete "$INSTDIR\iconsets\system\default\vcard.png"
Delete "$INSTDIR\iconsets\system\default\icon_32.png"
Delete "$INSTDIR\iconsets\system\default\icon_48.png"
Delete "$INSTDIR\iconsets\system\default\history.png"
Delete "$INSTDIR\iconsets\system\default\arrow_down.png"
Delete "$INSTDIR\iconsets\system\default\ssl_yes.png"
Delete "$INSTDIR\iconsets\system\default\editcut.png"
Delete "$INSTDIR\iconsets\system\default\groupchat.png"
Delete "$INSTDIR\iconsets\system\default\psimain.png"
Delete "$INSTDIR\iconsets\system\default\arrow_left.png"
Delete "$INSTDIR\iconsets\system\default\jabber.png"
Delete "$INSTDIR\iconsets\system\default\remove.png"
Delete "$INSTDIR\iconsets\system\default\key_unknown.png"
Delete "$INSTDIR\iconsets\system\default\tip.png"
Delete "$INSTDIR\iconsets\system\default\icon_mac.png"
Delete "$INSTDIR\iconsets\system\default\reload.png"
Delete "$INSTDIR\iconsets\system\default\smile.png"
Delete "$INSTDIR\iconsets\system\default\add.png"
Delete "$INSTDIR\iconsets\system\default\ok.png"
Delete "$INSTDIR\iconsets\system\default\editclear.png"
Delete "$INSTDIR\iconsets\system\default\changeacc.png"
Delete "$INSTDIR\iconsets\system\default\arrow_up.png"
Delete "$INSTDIR\iconsets\system\default\upload.png"
Delete "$INSTDIR\iconsets\system\default\send.png"
Delete "$INSTDIR\iconsets\system\default\icondef.xml"
Delete "$INSTDIR\iconsets\system\default\chatclear.png"
Delete "$INSTDIR\iconsets\system\default\configure_toolbars.png"
Delete "$INSTDIR\iconsets\system\default\play_sounds.png"
Delete "$INSTDIR\iconsets\system\default\url.png"
Delete "$INSTDIR\iconsets\system\default\edittrash.png"
Delete "$INSTDIR\iconsets\system\default\ssl_no.png"
Delete "$INSTDIR\iconsets\system\default\search.png"
Delete "$INSTDIR\iconsets\system\default\close.png"
Delete "$INSTDIR\iconsets\system\default\play.png"
Delete "$INSTDIR\iconsets\system\default\editcopy.png"
Delete "$INSTDIR\iconsets\system\default\quit.png"
Delete "$INSTDIR\iconsets\system\default\psilogo.png"
Delete "$INSTDIR\iconsets\system\default\register.png"
Delete "$INSTDIR\iconsets\system\default\info.png"
Delete "$INSTDIR\iconsets\system\default\editpaste.png"
Delete "$INSTDIR\iconsets\system\default\pgp.png"
Delete "$INSTDIR\iconsets\system\default\time.png"
Delete "$INSTDIR\iconsets\system\default\key2.png"
Delete "$INSTDIR\iconsets\system\default\stop.png"
Delete "$INSTDIR\iconsets\system\default\editdelete.png"
Delete "$INSTDIR\iconsets\system\default\download.png"
Delete "$INSTDIR\iconsets\system\default\cancel.png"
Delete "$INSTDIR\iconsets\system\default\eye_blue.png"
Delete "$INSTDIR\iconsets\system\default\help.png"
; Delete "$INSTDIR\iconsets\system\default\clients\tkabber.png"
; Delete "$INSTDIR\iconsets\system\default\clients\gossip.png"
; Delete "$INSTDIR\iconsets\system\default\clients\pandion.png"
; Delete "$INSTDIR\iconsets\system\default\clients\msn.png"
; Delete "$INSTDIR\iconsets\system\default\clients\jajc.png"
; Delete "$INSTDIR\iconsets\system\default\clients\exodus.png"
; Delete "$INSTDIR\iconsets\system\default\clients\aim.png"
; Delete "$INSTDIR\iconsets\system\default\clients\gabber.png"
; Delete "$INSTDIR\iconsets\system\default\clients\unknown.png"
; Delete "$INSTDIR\iconsets\system\default\clients\kopete.png"
; Delete "$INSTDIR\iconsets\system\default\clients\yahoo.png"
; Delete "$INSTDIR\iconsets\system\default\clients\gadu.png"
; Delete "$INSTDIR\iconsets\system\default\clients\trillian.png"
; Delete "$INSTDIR\iconsets\system\default\clients\icq.png"
; Delete "$INSTDIR\iconsets\system\default\clients\gaim.png"
; Delete "$INSTDIR\iconsets\system\default\clients\nitro.png"
Delete "$INSTDIR\iconsets\system\README"
; Remove remaining directories
; RMDir "$INSTDIR\iconsets\system\default\clients"
RMDir "$INSTDIR\iconsets\system\default"
RMDir "$INSTDIR\iconsets\system"
RMDir "$INSTDIR\iconsets\roster\lightbulb"
RMDir "$INSTDIR\iconsets\roster\gadugadu"
RMDir "$INSTDIR\iconsets\roster\stellar-icq"
RMDir "$INSTDIR\iconsets\roster\yahoo"
RMDir "$INSTDIR\iconsets\roster\transport"
RMDir "$INSTDIR\iconsets\roster\default"
RMDir "$INSTDIR\iconsets\roster\sms"
RMDir "$INSTDIR\iconsets\roster\aim"
RMDir "$INSTDIR\iconsets\roster\msn"
RMDir "$INSTDIR\iconsets\roster\icq"
RMDir "$INSTDIR\iconsets\roster"
RMDir "$INSTDIR\iconsets\emoticons\default"
RMDir "$INSTDIR\iconsets\emoticons"
RMDir "$INSTDIR\iconsets"
RMDir "$INSTDIR\crypto"
RMDir "$INSTDIR\certs"
RMDir "$INSTDIR\sound"
RMDir "$INSTDIR\"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment