aboutsummaryrefslogtreecommitdiffstats
path: root/Installer
diff options
context:
space:
mode:
authorjaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-10-10 11:35:06 +0000
committerjaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c>2007-10-10 11:35:06 +0000
commit07eb7eff4c565009491065f564843e82ecb5863f (patch)
treeabcbfc151aa3f44220cbe4e8fff1a19dbfe958b0 /Installer
parent1591510930318a0a552e67004a9deb495db5312a (diff)
downloadusdx-07eb7eff4c565009491065f564843e82ecb5863f.tar.gz
usdx-07eb7eff4c565009491065f564843e82ecb5863f.tar.xz
usdx-07eb7eff4c565009491065f564843e82ecb5863f.zip
Updated installer to Canni's better version :)
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/1.01@491 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--Installer/License.txt125
-rw-r--r--Installer/UltraStarDeluxe.nsi669
-rw-r--r--Installer/header.bmpbin0 -> 25818 bytes
-rw-r--r--Installer/header.pngbin0 -> 6273 bytes
-rw-r--r--Installer/ioSpecial.ini19
-rw-r--r--Installer/left-164x314.pngbin0 -> 37561 bytes
-rw-r--r--Installer/left.bmpbin0 -> 618006 bytes
-rw-r--r--Installer/modern.bmpbin0 -> 1652 bytes
-rw-r--r--Installer/ustar.icobin0 -> 22486 bytes
9 files changed, 504 insertions, 309 deletions
diff --git a/Installer/License.txt b/Installer/License.txt
new file mode 100644
index 00000000..4964fc70
--- /dev/null
+++ b/Installer/License.txt
@@ -0,0 +1,125 @@
+The GNU General Public License (GPL)
+Version 2, June 1991
+Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+59 Temple Place, Suite 330, Boston, MA 02111-1307 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.
+
+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
+
+How to Apply These Terms to Your New Programs
+
+If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
+
+To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.
+
+one line to give the program's name and a brief idea of what it does.
+Copyright (C)
+
+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 program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this when it starts in an interactive mode:
+
+Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names:
+
+Yoyodyne, Inc., hereby disclaims all copyright interest
+in the program `Gnomovision' (which makes passes at compilers)
+written by James Hacker.
+
+signature of Ty Coon, 1 April 1989
+Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License.
diff --git a/Installer/UltraStarDeluxe.nsi b/Installer/UltraStarDeluxe.nsi
index 5dd8df66..8993ccd5 100644
--- a/Installer/UltraStarDeluxe.nsi
+++ b/Installer/UltraStarDeluxe.nsi
@@ -1,31 +1,141 @@
-; Script generated by the HM NIS Edit Script Wizard.
-
-; HM NIS Edit Wizard helper defines
-!define PRODUCT_NAME "UltraStar Deluxe"
-!define PRODUCT_VERSION "1.01"
-!define PRODUCT_PUBLISHER "UltraStar Deluxe Team"
-!define PRODUCT_WEB_SITE "http://www.UltraStarDeluxe.org"
-!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\UltraStar.exe"
+; --------------------------------------------------------------
+; UltraStar Deluxe - Installation Wizard with NSIS (USDXIWWNSIS)
+; --------------------------------------------------------------
+
+!include "MUI.nsh" ; Include the macros for the Modern User Interface
+
+SetCompressor bzip2
+
+; XPStyle on
+
+; ------------------------------------------------------
+; Declaration of Variables (Change to whatever you want)
+; ------------------------------------------------------
+
+!define version "1.01" ; Current version of UltraStar Deluxe
+!define p_name "UltraStar Deluxe" ; Just the name of the program
+!define publisher "USDX Team" ; Publisher
+!define homepage "http://www.ultrastardeluxe.org/" ; Project Homepage
+
+
+!define icon_inst ".\ustar.ico" ; Icon for Installation
+!define icon_uninst ".\ustar.ico" ; Icon for Uninstallation
+!define bmp_header ".\header.png" ; Bitmap of the Installation Header (Size: 150x57 px)
+!define bmp_side ".\left-164x314.png" ; Bitmap on the left side of Welcome & Finish Page (Size: 164x314 px)
+!define mui_ini ".\ioSpecial.ini" ; Installation Options for Welcome & Finish Page
+!define license_bgcolor "FFFFFF" ; RGB Background Color for Licence agreement
+!define bmp_check ".\modern.bmp" ; Bitmap of Checks at Components Selection Page
+!define directory_bgcolor "FFFFFF" ; RGB Background Color for Directory textbox
+!define smp_bgcolor "FFFFFF" ; RGB Background of Startmenu List and Textbox
+;!define dets_bgcolor "FFFFFF" ; Background Color of Details Screen while files are being extracted
+!define file_license ".\License.txt" ; Choose the file with the license agreement
+
+!define eng_sec1_desc "These are the basic files needed by UltraStar Deluxe" ; English Description of Base components
+!define ger_sec1_desc "Dies sind die von UltraStar Deluxe benötigten Grunddateien" ; German Description of Base components
+
+!define eng_sec2_desc "This will add the example song Dead Smiling Pirates - I 18 from the CreativeCommons database" ; English Description of the Example Song
+!define ger_sec2_desc "Dies fügt den Beispielsong Dead Smiling Pirates - I 18 aus der CreativeCommons Datenbank hinzu" ; German Description of the Example Song
+
+!define eng_sec1 "Base components" ; English Name of the component section1
+!define ger_sec1 "Basiskomponenten" ; German Name of the component section1
+
+!define eng_sec2 "Example Song" ; English Name of the component section2
+!define ger_sec2 "Beispielsong" ; German Name of the component section2
+
+; -------------------------------
+; Strings for Installation Wizard
+; -------------------------------
+
+!define MUI_WELCOMEPAGE_TITLE "$(wp_title)"
+
+!define MUI_WELCOMEPAGE_TEXT "$(wp_text)"
+;!define MUI_FINISHPAGE_SHOWREADME_TEXT "$(fp_showreadme)"
+!define MUI_FINISHPAGE_LINK "$(fp_link)"
+!define MUI_UNCONFIRMPAGE_TEXT_TOP "UltraStar Deluxe - $(sm_uninstall)"
+
+!define MUI_LICENSEPAGE_RADIOBUTTONS
+!define MUI_WELCOMEPAGE_TITLE_3LINES
+
+!define MUI_FINISHPAGE_TITLE_3LINES
+
+;!define MUI_FINISHPAGE_RUN .\Ultrastar.exe ; Do not work as i expected :(
+;!define MUI_FINISHPAGE_RUN_NOTCHECKED ;
+;!define MUI_FINISHPAGE_SHOWREADME .\documentation.pdf ;
+
+!define MUI_FINISHPAGE_LINK_LOCATION http://sourceforge.net/projects/ultrastardx
+!define MUI_FINISHPAGE_NOREBOOTSUPPORT
+!define MUI_FINISHPAGE_TEXT_LARGE
+!define MUI_FINISHPAGE_TEXT "$(fp_text)"
+
+; The other (multi) language Strings are at the bottom of this file
+
+; --------------------------------------------------
+; Do not change anything from here on ...
+; ... expect you are mog and know what you are doing
+; --------------------------------------------------
+
+Name "${p_name} V.${version}"
+Brandingtext "${p_name} Installation"
+OutFile "Install ${p_name} V.${version}.exe"
+
+InstallDir "$PROGRAMFILES\${p_name}"
+
+ShowInstDetails show
+ShowUnInstDetails show
+
+!define PRODUCT_NAME "${p_name}"
+!define PRODUCT_VERSION "${version}"
+!define PRODUCT_PUBLISHER "${publisher}"
+!define PRODUCT_WEB_SITE "${homepage}"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
!define PRODUCT_STARTMENU_REGVAL "NSIS:StartMenuDir"
-SetCompressor bzip2
+; Modern User Interface (MUI) Stuff
+
+!define MUI_ICON "${icon_inst}" ; Icon for Installation
+!define MUI_UNICON "${icon_uninst}" ; Icon for Uninstallation
+
+!define MUI_HEADERIMAGE
+!define MUI_HEADERIMAGE_BITMAP "${bmp_header}" ; Header Bitmap of the installation (Size: 150x57 px)
+!define MUI_HEADERIMAGE_UNBITMAP "${bmp_header}" ; Header Bitmap of the uninstallation (Size: 150x57 px)
+!define MUI_WELCOMEFINISHPAGE_BITMAP "${bmp_side}" ; Left Side Bitmap of Welcome & Finish Page while Installation (Size: 164x314 px)
+!define MUI_UNWELCOMEFINISHPAGE_BITMAP "${bmp_side}" ; Left Side Bitmap of Welcome & Finish Page while Uninstallation (Size: 164x314 px)
+!define MUI_BGCOLOR "FFFFFF" ; RGB Background color (for header, welcome & finish page)
+!define MUI_WELCOMEFINISHPAGE_INI "${mui_ini}" ; Installation Options for Welcome & Finish Page (Installation)
+!define MUI_UNWELCOMEFINISHPAGE_INI "${mui_ini}" ; Installation Options for Welcome & Finish Page (Uninstallation)
+!define MUI_LICENSEPAGE_BGCOLOR "${license_bgcolor}" ; Background Color of Licence agreement
+!define MUI_COMPONENTSPAGE_CHECKBITMAP "${bmp_check}" ; Bitmap of Checks at Components Selection Page
+!define MUI_DIRECTORYPAGE_BGCOLOR "${directory_bgcolor}" ; RGB Background Color for Directory textbox
+!define MUI_STARTMENUPAGE_BGCOLOR "${smp_bgcolor}" ; RGB Background of Startmenu List and Textbox
+;!define MUI_INSTFILESPAGE_COLORS "${dets_bgcolor}" ; Background Color of Details Screen while files are being extracted
-; MUI 1.67 compatible ------
-!include "MUI.nsh"
+!define MUI_FINISHPAGE_NOAUTOCLOSE ; Allows user to check the log file of installation (Comment out if unwanted)
+!define MUI_UNFINISHPAGE_NOAUTOCLOSE ; Allows user to check the log file of uninstallation (Comment out if unwanted)
-; MUI Settings
!define MUI_ABORTWARNING
-!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico"
-!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"
+!define MUI_ABORTWARNING_TEXT $(str_abort) ; Abort Warning message
+!define MUI_ABORTWARNING_CANCEL_DEFAULT ; Default: Cancel abort (Comment out if unwanted)
+
+
+;Language Dialog Box Settings
+;!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
+;!define PRODUCT_UNINST_ROOT_KEY "HKLM"
+;!define MUI_LANGDLL_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}"
+;!define MUI_LANGDLL_REGISTRY_KEY "${PRODUCT_UNINST_KEY}"
+;!define MUI_LANGDLL_REGISTRY_VALUENAME "NSIS:Language"
+
+; --------------------------------------------------
+; Begin of the installation routine
+; --------------------------------------------------
+
+; Pages for MUI Installation
-; Welcome page
!insertmacro MUI_PAGE_WELCOME
-; License page
-;!insertmacro MUI_PAGE_LICENSE "..\..\..\..\path\to\licence\YourSoftwareLicence.txt"
-; Directory page
+!insertmacro MUI_PAGE_LICENSE "${file_license}"
+!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
+
; Start menu page
var ICONS_GROUP
!define MUI_STARTMENUPAGE_NODISABLE
@@ -34,58 +144,83 @@ var ICONS_GROUP
!define MUI_STARTMENUPAGE_REGISTRY_KEY "${PRODUCT_UNINST_KEY}"
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "${PRODUCT_STARTMENU_REGVAL}"
!insertmacro MUI_PAGE_STARTMENU Application $ICONS_GROUP
-; Instfiles page
+
!insertmacro MUI_PAGE_INSTFILES
-; Finish page
-!define MUI_FINISHPAGE_RUN "$INSTDIR\UltraStar.exe"
!insertmacro MUI_PAGE_FINISH
-; Uninstaller pages
+; Pages for MUI Uninstallation
+
+!insertmacro MUI_UNPAGE_WELCOME
+!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
+!insertmacro MUI_UNPAGE_FINISH
; Language files
+
!insertmacro MUI_LANGUAGE "English"
+!insertmacro MUI_LANGUAGE "German"
-; Reserve files
-!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
+; ---------------------------------------------------------
+; Section1: Main components of UltraStar Deluxe
+; ---------------------------------------------------------
-; MUI end ------
+LangString DESC_Section1 ${LANG_ENGLISH} "${eng_sec1_desc}" ; Adds the description to section1
+LangString DESC_Section1 ${LANG_GERMAN} "${ger_sec1_desc}"
-Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
-OutFile "UltraStar-DX-1_01-SETUP.exe"
-InstallDir "$PROGRAMFILES\UltraStar Deluxe"
-InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
-ShowInstDetails show
-ShowUnInstDetails show
+LangString sec1 ${LANG_ENGLISH} "${eng_sec1}" ; Name of section1
+LangString sec1 ${LANG_GERMAN} "${ger_sec1}"
-Section "MainSection" SEC01
- SetOutPath "$INSTDIR"
- SetOverwrite ifnewer
- File "..\config.ini"
- File "..\UltraStar.exe"
- File "..\sqlite3.dll"
- File "..\smpeg.dll"
- File "..\SDL.dll"
- File "..\bass.dll"
- SetOutPath "$INSTDIR\Languages\"
- File "..\Languages\Catalan.ini"
+Section $(sec1) Section1
+ SectionIn RO ; readonly
+ SetOutPath $INSTDIR
+ SetOverwrite try
+
+; Create required directories:
+
+ CreateDirectory "$INSTDIR\Covers"
+ CreateDirectory "$INSTDIR\Languages"
+ CreateDirectory "$INSTDIR\Plugins"
+ CreateDirectory "$INSTDIR\Skins"
+ CreateDirectory "$INSTDIR\Skins\Classic"
+ CreateDirectory "$INSTDIR\Skins\Deluxe"
+ CreateDirectory "$INSTDIR\Songs"
+ CreateDirectory "$INSTDIR\Sounds"
+ CreateDirectory "$INSTDIR\Themes"
+
+; Extract files to the directories:
+
+ File "..\InstallerDependencies\bass.dll"
+ File "..\InstallerDependencies\Changelog.german.txt"
+ File "..\InstallerDependencies\Changelog.txt"
+ File "..\InstallerDependencies\documentation.pdf"
+ File "..\InstallerDependencies\License.txt"
+ File "..\InstallerDependencies\ReadMe.txt"
+ File "..\InstallerDependencies\SDL.dll"
+ File "..\InstallerDependencies\smpeg.dll"
+ File "..\InstallerDependencies\sqlite3.dll"
+
+ File "..\ScoreConverter.exe"
+ File "..\Ultrastar.exe"
+
+ SetOutPath $INSTDIR\Covers\"
+ File "..\Covers\Covers.ini"
+ File "..\Covers\NoCover.jpg"
+
+ SetOutPath $INSTDIR\Languages\"
File "..\Languages\Dutch.ini"
File "..\Languages\English.ini"
File "..\Languages\French.ini"
File "..\Languages\German.ini"
- File "..\Languages\Italian.ini"
- File "..\Languages\Norwegian.ini"
- File "..\Languages\Spanish.ini"
- File "..\Languages\Swedish.ini"
File "..\Languages\readme.txt"
-
- SetOutPath "$INSTDIR\Songs"
- SetOutPath "$INSTDIR\Screenshots"
- SetOutPath "$INSTDIR\Covers"
- SetOutPath "$INSTDIR\Plugins"
- SetOutPath "$INSTDIR\Playlists"
-
- SetOutPath "$INSTDIR\Skins\Classic"
+ File "..\Languages\Swedish.ini"
+
+ SetOutPath $INSTDIR\Plugins\"
+ File "..\Plugins\Blind.dll"
+ File "..\Plugins\Duell.dll"
+ File "..\Plugins\Hold_The_Line.dll"
+ File "..\Plugins\Until5000.dll"
+
+ SetOutPath $INSTDIR\Skins\Classic\"
File "..\Skins\Classic\Star.ini"
File "..\Skins\Classic\[button]13.jpg"
File "..\Skins\Classic\[button]alt.jpg"
@@ -169,15 +304,18 @@ Section "MainSection" SEC01
File "..\Skins\Classic\[stat]mainBG1.jpg"
File "..\Skins\Classic\[stat]mainBG2.jpg"
File "..\Skins\Classic\[stat]mainBG3.jpg"
- SetOutPath "$INSTDIR\Skins\Deluxe"
+
+ SetOutPath $INSTDIR\Skins\Deluxe\"
File "..\Skins\Deluxe\Blue.ini"
+ File "..\Skins\Deluxe\Fall.ini"
File "..\Skins\Deluxe\Summer.ini"
-
File "..\Skins\Deluxe\Winter.ini"
File "..\Skins\Deluxe\[bg-load]blue.jpg"
+ File "..\Skins\Deluxe\[bg-load]fall.jpg"
File "..\Skins\Deluxe\[bg-load]summer.jpg"
File "..\Skins\Deluxe\[bg-load]winter.jpg"
File "..\Skins\Deluxe\[bg-main]blue.jpg"
+ File "..\Skins\Deluxe\[bg-main]fall.jpg"
File "..\Skins\Deluxe\[bg-main]summer.jpg"
File "..\Skins\Deluxe\[bg-main]winter.jpg"
File "..\Skins\Deluxe\[button]13.jpg"
@@ -239,9 +377,23 @@ Section "MainSection" SEC01
File "..\Skins\Deluxe\[score]level.jpg"
File "..\Skins\Deluxe\[score]levelRound.jpg"
File "..\Skins\Deluxe\[score]Line.jpg"
- File "..\Skins\Deluxe\[sing]timeBar1.jpg"
+ File "..\Skins\Deluxe\[sing]lineBonusPopUp.jpg"
+ File "..\Skins\Deluxe\[sing]LyricsBall.bmp"
+ File "..\Skins\Deluxe\[sing]lyricsHelpBar.bmp"
+ File "..\Skins\Deluxe\[sing]notesBgLeft.bmp"
+ File "..\Skins\Deluxe\[sing]notesBgMid.bmp"
+ File "..\Skins\Deluxe\[sing]notesBgRight.bmp"
+ File "..\Skins\Deluxe\[sing]notesLeft.bmp"
+ File "..\Skins\Deluxe\[sing]notesMid.bmp"
+ File "..\Skins\Deluxe\[sing]notesRight.bmp"
+ File "..\Skins\Deluxe\[sing]p.jpg"
+ File "..\Skins\Deluxe\[sing]scoreBg.jpg"
+ File "..\Skins\Deluxe\[sing]singBarBack.jpg"
+ File "..\Skins\Deluxe\[sing]singBarBar.jpg"
+ File "..\Skins\Deluxe\[sing]singBarFront.jpg"
File "..\Skins\Deluxe\[sing]textBar.jpg"
File "..\Skins\Deluxe\[sing]timeBar.jpg"
+ File "..\Skins\Deluxe\[sing]timeBar1.jpg"
File "..\Skins\Deluxe\[sing]timeBarBG.jpg"
File "..\Skins\Deluxe\[special]bar1.jpg"
File "..\Skins\Deluxe\[special]bar2.jpg"
@@ -249,7 +401,8 @@ Section "MainSection" SEC01
File "..\Skins\Deluxe\[stat]mainBG1.jpg"
File "..\Skins\Deluxe\[stat]mainBG2.jpg"
File "..\Skins\Deluxe\[stat]mainBG3.jpg"
- SetOutPath "$INSTDIR\Sounds"
+
+ SetOutPath $INSTDIR\Sounds\"
File "..\Sounds\Common back.mp3"
File "..\Sounds\Common start.mp3"
File "..\Sounds\credits-outro-tune.mp3"
@@ -260,277 +413,175 @@ Section "MainSection" SEC01
File "..\Sounds\select music change music 50.mp3"
File "..\Sounds\select music change music.mp3"
File "..\Sounds\wome-credits-tune.mp3"
- SetOutPath "$INSTDIR\Themes"
+
+ SetOutPath $INSTDIR\Themes\"
File "..\Themes\Classic.ini"
File "..\Themes\Deluxe.ini"
-; Shortcuts
+; Create shortcuts
+
+ SetOutPath $INSTDIR\
+
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
+ CreateDirectory "${p_name}"
+; CreateShortCut "$STARTMENU.lnk" "$INSTDIR\Ultrastar.exe"
+; CreateShortCut "$DESKTOP.lnk" "$INSTDIR\Ultrastar.exe"
+; CreateShortCut "$SMPROGRAMS.lnk" "$INSTDIR\Ultrastar.exe"
+; WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
CreateDirectory "$SMPROGRAMS\$ICONS_GROUP"
- CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\UltraStar Deluxe.lnk" "$INSTDIR\UltraStar.exe"
- CreateShortCut "$DESKTOP\UltraStar Deluxe.lnk" "$INSTDIR\UltraStar.exe"
- !insertmacro MUI_STARTMENU_WRITE_END
-SectionEnd
+ CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Website.lnk" "http://ultrastardx.sourceforge.net/"
+ CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\$(sm_uninstall).lnk" "$INSTDIR\Uninstall.exe"
+ CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\$(sm_shortcut).lnk" "$INSTDIR\Ultrastar.exe"
-Section -AdditionalIcons
- !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
- WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
- CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url"
- CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Uninstall.lnk" "$INSTDIR\uninst.exe"
!insertmacro MUI_STARTMENU_WRITE_END
-SectionEnd
-Section -Post
- WriteUninstaller "$INSTDIR\uninst.exe"
- WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\UltraStar.exe"
- WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
- WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
- WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\UltraStar.exe"
+; Create Uninstaller:
+
+ WriteUninstaller $INSTDIR\Uninstall.exe
+
+ WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "${p_name}"
+ WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\Uninstall.exe"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
+
SectionEnd
+; ---------------------------------------------------------
+; Section2: Example Song "Dead Smiling Pirates"
+; ---------------------------------------------------------
-Function un.onUninstSuccess
- HideWindow
- MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) was successfully removed from your computer."
-FunctionEnd
+LangString DESC_Section2 ${LANG_ENGLISH} "${eng_sec2_desc}"
+LangString DESC_Section2 ${LANG_GERMAN} "${ger_sec2_desc}"
-Function un.onInit
- MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Are you sure you want to completely remove $(^Name) and all of its components?" IDYES +2
- Abort
-FunctionEnd
+LangString sec2 ${LANG_ENGLISH} "${eng_sec2}"
+LangString sec2 ${LANG_GERMAN} "${ger_sec2}"
-Section Uninstall
- !insertmacro MUI_STARTMENU_GETFOLDER "Application" $ICONS_GROUP
- Delete "$INSTDIR\${PRODUCT_NAME}.url"
- Delete "$INSTDIR\uninst.exe"
- Delete "$INSTDIR\Deluxe.ini"
- Delete "$INSTDIR\Classic.ini"
- Delete "$INSTDIR\wome-credits-tune.mp3"
- Delete "$INSTDIR\select music change music.mp3"
- Delete "$INSTDIR\select music change music 50.mp3"
- Delete "$INSTDIR\rimshot022b.mp3"
- Delete "$INSTDIR\option change col.mp3"
- Delete "$INSTDIR\menu swoosh.mp3"
- Delete "$INSTDIR\dismissed.mp3"
- Delete "$INSTDIR\credits-outro-tune.mp3"
- Delete "$INSTDIR\Common start.mp3"
- Delete "$INSTDIR\Common back.mp3"
- Delete "$INSTDIR\Skins\Deluxe\[stat]mainBG3.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[stat]mainBG2.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[stat]mainBG1.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[stat]detailBG1.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[special]bar2.jpg"
- Delete "$INSTDIR\DeluxSkins\e\[special]bar1.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[sing]timeBarBG.png"
- Delete "$INSTDIR\Skins\Deluxe\[sing]timeBar.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[sing]textBar.png"
- Delete "$INSTDIR\Skins\Deluxe\[sing]singBarFront.png"
- Delete "$INSTDIR\Skins\Deluxe\[sing]singBarBar.png"
- Delete "$INSTDIR\Skins\Deluxe\[sing]singBarBar.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[sing]singBarBack.png"
- Delete "$INSTDIR\Skins\Deluxe\[sing]scoreBg.png"
- Delete "$INSTDIR\Skins\Deluxe\[sing]scoreBg.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[sing]p.png"
- Delete "$INSTDIR\Skins\Deluxe\[sing]notesRight.png"
- Delete "$INSTDIR\Skins\Deluxe\[sing]notesPlainRight.png"
- Delete "$INSTDIR\Skins\Deluxe\[sing]notesPlainMid.png"
- Delete "$INSTDIR\Skins\Deluxe\[sing]notesPlainLeft.png"
- Delete "$INSTDIR\Skins\Deluxe\[sing]notesMid.png"
- Delete "$INSTDIR\Skins\Deluxe\[sing]notesLeft.png"
- Delete "$INSTDIR\Skins\Deluxe\[sing]notesBgRight.png"
- Delete "$INSTDIR\Skins\Deluxe\[sing]notesBgMid.png"
- Delete "$INSTDIR\Skins\Deluxe\[sing]notesBgLeft.png"
- Delete "$INSTDIR\Skins\Deluxe\[sing]lyricsHelpBar.bmp"
- Delete "$INSTDIR\Skins\Deluxe\[sing]LyricsBall.bmp"
- Delete "$INSTDIR\Skins\Deluxe\[sing]lineBonusPopUp.png"
- Delete "$INSTDIR\Skins\Deluxe\[sing]lineBonusPopUp.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[score]Line.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[score]levelRound.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[score]level.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[score]endcap.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[score]box.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[party]winTeamButton3.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[party]winTeamButton2.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[party]winTeamButton1.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[party]winDecoration.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[party]teamPoints.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[party]scoreDecoration.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[party]scoreBG2.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[party]scoreBG1.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[party]roundTeamButton.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[party]roundBG4.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[party]roundBG3.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[party]roundBG2.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[party]roundBG1.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[party]pointer.bmp"
- Delete "$INSTDIR\Skins\Deluxe\[party]playerTeamButton.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[party]playerButton.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[party]Joker.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[menu]songMenuSelectBg.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[menu]songMenuBg.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[menu]PopUpFg.JPG"
- Delete "$INSTDIR\Skins\Deluxe\[menu]PopUpBg.JPG"
- Delete "$INSTDIR\Skins\Deluxe\[menu]jumpToBg.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[main]songSelection2.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[main]songSelection1.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[main]songCover.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[main]selectbg.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[main]playerNumberBox.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[main]mainBar.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[main]buttonf.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[main]button.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[icon]video.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[icon]stats.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[icon]songmenu.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[icon]search.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[icon]score.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[icon]question.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[icon]party.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[icon]options.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[icon]main.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[icon]error.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[icon]cd.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[helper]rectangle.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[helper]buttonFade.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[effect]perfectNoteStar.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[effect]goldenNoteStar.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[button]p.png"
- Delete "$INSTDIR\Skins\Deluxe\[button]navi.png"
- Delete "$INSTDIR\Skins\Deluxe\[button]m.png"
- Delete "$INSTDIR\Skins\Deluxe\[button]j.png"
- Delete "$INSTDIR\Skins\Deluxe\[button]esc.png"
- Delete "$INSTDIR\Skins\Deluxe\[button]enter.png"
- Delete "$INSTDIR\Skins\Deluxe\[button]az.png"
- Delete "$INSTDIR\Skins\Deluxe\[button]alt.png"
- Delete "$INSTDIR\Skins\Deluxe\[button]13.png"
- Delete "$INSTDIR\Skins\Deluxe\[bg-main]winter.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[bg-main]summer.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[bg-main]blue.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[bg-load]winter.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[bg-load]summer.jpg"
- Delete "$INSTDIR\Skins\Deluxe\[bg-load]blue.jpg"
- Delete "$INSTDIR\Skins\Deluxe\Winter.ini"
-
- Delete "$INSTDIR\Skins\Deluxe\Summer.ini"
- Delete "$INSTDIR\Skins\Deluxe\Blue.ini"
- Delete "$INSTDIR\Skins\Classic\[stat]mainBG3.jpg"
- Delete "$INSTDIR\Skins\Classic\[stat]mainBG2.jpg"
- Delete "$INSTDIR\Skins\Classic\[stat]mainBG1.jpg"
- Delete "$INSTDIR\Skins\Classic\[stat]detailBG1.jpg"
- Delete "$INSTDIR\Skins\Classic\[song]selection.jpg"
- Delete "$INSTDIR\Skins\Classic\[song]EqualizerBG.jpg"
- Delete "$INSTDIR\Skins\Classic\[song]BGFade.jpg"
- Delete "$INSTDIR\Skins\Classic\[sing]textBar.jpg"
- Delete "$INSTDIR\Skins\Classic\[sing]singBarFront.jpg"
- Delete "$INSTDIR\Skins\Classic\[sing]singBarBar.jpg"
- Delete "$INSTDIR\Skins\Classic\[sing]singBarBack.jpg"
- Delete "$INSTDIR\Skins\Classic\[sing]scoreBg.jpg"
- Delete "$INSTDIR\Skins\Classic\[sing]p.jpg"
- Delete "$INSTDIR\Skins\Classic\[sing]notesRight.bmp"
- Delete "$INSTDIR\Skins\Classic\[sing]notesMid.bmp"
- Delete "$INSTDIR\Skins\Classic\[sing]notesLeft.bmp"
- Delete "$INSTDIR\Skins\Classic\[sing]notesBgRight.bmp"
- Delete "$INSTDIR\Skins\Classic\[sing]notesBgMid.bmp"
- Delete "$INSTDIR\Skins\Classic\[sing]notesBgLeft.bmp"
- Delete "$INSTDIR\Skins\Classic\[sing]lyricsHelpBar.bmp"
- Delete "$INSTDIR\Skins\Classic\[sing]LyricsBall.bmp"
- Delete "$INSTDIR\Skins\Classic\[sing]lineBonusPopUp.jpg"
- Delete "$INSTDIR\Skins\Classic\[score]line.jpg"
- Delete "$INSTDIR\Skins\Classic\[score]levelround.jpg"
- Delete "$INSTDIR\Skins\Classic\[score]level.jpg"
- Delete "$INSTDIR\Skins\Classic\[score]box.jpg"
- Delete "$INSTDIR\Skins\Classic\[party]winTeamButton3.jpg"
- Delete "$INSTDIR\Skins\Classic\[party]winTeamButton2.jpg"
- Delete "$INSTDIR\Skins\Classic\[party]winTeamButton1.jpg"
- Delete "$INSTDIR\Skins\Classic\[party]winDecoration.jpg"
- Delete "$INSTDIR\Skins\Classic\[party]teamPoints.jpg"
- Delete "$INSTDIR\Skins\Classic\[party]scoreDecoration.jpg"
- Delete "$INSTDIR\Skins\Classic\[party]scoreBG2.jpg"
- Delete "$INSTDIR\Skins\Classic\[party]scoreBG1.jpg"
- Delete "$INSTDIR\Skins\Classic\[party]roundTeamButton.jpg"
- Delete "$INSTDIR\Skins\Classic\[party]roundBG4.jpg"
- Delete "$INSTDIR\Skins\Classic\[party]roundBG3.jpg"
- Delete "$INSTDIR\Skins\Classic\[party]roundBG2.jpg"
- Delete "$INSTDIR\Skins\Classic\[party]roundBG1.jpg"
- Delete "$INSTDIR\Skins\Classic\[party]pointer.bmp"
- Delete "$INSTDIR\Skins\Classic\[party]playerTeamButton.jpg"
- Delete "$INSTDIR\Skins\Classic\[party]playerButton.jpg"
- Delete "$INSTDIR\Skins\Classic\[party]Joker.jpg"
- Delete "$INSTDIR\Skins\Classic\[menu]songMenuSelectBG.jpg"
- Delete "$INSTDIR\Skins\Classic\[menu]songMenuButtonBG.jpg"
- Delete "$INSTDIR\Skins\Classic\[menu]songMenuBorder.jpg"
- Delete "$INSTDIR\Skins\Classic\[menu]songMenuBg.jpg"
- Delete "$INSTDIR\Skins\Classic\[menu]PopUpFg.JPG"
- Delete "$INSTDIR\Skins\Classic\[menu]PopUpBg.JPG"
- Delete "$INSTDIR\Skins\Classic\[menu]jumpToBg.jpg"
- Delete "$INSTDIR\Skins\Classic\[main]square.jpg"
- Delete "$INSTDIR\Skins\Classic\[main]songCover.jpg"
- Delete "$INSTDIR\Skins\Classic\[main]Logo.jpg"
- Delete "$INSTDIR\Skins\Classic\[main]ButtonEditor.jpg"
- Delete "$INSTDIR\Skins\Classic\[main]Button3.jpg"
- Delete "$INSTDIR\Skins\Classic\[main]Button2.jpg"
- Delete "$INSTDIR\Skins\Classic\[main]Button.jpg"
- Delete "$INSTDIR\Skins\Classic\[main]Bar1.jpg"
- Delete "$INSTDIR\Skins\Classic\[main]Bar.jpg"
- Delete "$INSTDIR\Skins\Classic\[mainbutton]Stats.jpg"
- Delete "$INSTDIR\Skins\Classic\[mainbutton]Solo.jpg"
- Delete "$INSTDIR\Skins\Classic\[mainbutton]Options.jpg"
- Delete "$INSTDIR\Skins\Classic\[mainbutton]Multi.jpg"
- Delete "$INSTDIR\Skins\Classic\[mainbutton]Exit.jpg"
- Delete "$INSTDIR\Skins\Classic\[icon]video.jpg"
- Delete "$INSTDIR\Skins\Classic\[icon]stats.jpg"
- Delete "$INSTDIR\Skins\Classic\[icon]Star.jpg"
- Delete "$INSTDIR\Skins\Classic\[icon]question.jpg"
- Delete "$INSTDIR\Skins\Classic\[icon]error.jpg"
- Delete "$INSTDIR\Skins\Classic\[helper]rectangle.jpg"
- Delete "$INSTDIR\Skins\Classic\[effect]perfectNoteStar.jpg"
- Delete "$INSTDIR\Skins\Classic\[effect]goldenNoteStar.jpg"
- Delete "$INSTDIR\Skins\Classic\[button]p.jpg"
- Delete "$INSTDIR\Skins\Classic\[button]navi.jpg"
- Delete "$INSTDIR\Skins\Classic\[button]m.jpg"
- Delete "$INSTDIR\Skins\Classic\[button]j.jpg"
- Delete "$INSTDIR\Skins\Classic\[button]esc.jpg"
- Delete "$INSTDIR\Skins\Classic\[button]enter.jpg"
- Delete "$INSTDIR\Skins\Classic\[button]e.jpg"
- Delete "$INSTDIR\Skins\Classic\[button]az.jpg"
- Delete "$INSTDIR\Skins\Classic\[button]alt.jpg"
- Delete "$INSTDIR\Skins\Classic\[button]13.jpg"
- Delete "$INSTDIR\Skins\Classic\Star.ini"
- Delete "$INSTDIR\bass.dll"
- Delete "$INSTDIR\SDL.dll"
- Delete "$INSTDIR\smpeg.dll"
- Delete "$INSTDIR\sqlite3.dll"
- Delete "$INSTDIR\UltraStar.exe"
- Delete "$INSTDIR\config.ini"
+Section /o $(sec2) Section2
+ SetOverwrite try
+ SetOutPath "$INSTDIR"
+ CreateDirectory "$INSTDIR\Songs\Dead Smiling Pirates - I 18 [DEMO]"
+ SetOutPath "$INSTDIR\Songs\Dead Smiling Pirates - I 18 [DEMO]\"
- Delete "$INSTDIR\Languages\Catalan.ini"
- Delete "$INSTDIR\Languages\Dutch.ini"
- Delete "$INSTDIR\Languages\English.ini"
- Delete "$INSTDIR\Languages\French.ini"
- Delete "$INSTDIR\Languages\German.ini"
- Delete "$INSTDIR\Languages\Italian.ini"
- Delete "$INSTDIR\Languages\Norwegian.ini"
- Delete "$INSTDIR\Languages\Spanish.ini"
- Delete "$INSTDIR\Languages\Swedish.ini"
- Delete "$INSTDIR\Languages\readme.txt"
+ File "..\Songs\Dead Smiling Pirates - I 18 [DEMO]\Dead Smiling Pirates - I 18 [BG].jpg"
+ File "..\Songs\Dead Smiling Pirates - I 18 [DEMO]\Dead Smiling Pirates - I 18 [CO].jpg"
+ File "..\Songs\Dead Smiling Pirates - I 18 [DEMO]\Dead Smiling Pirates - I 18.ogg"
+ File "..\Songs\Dead Smiling Pirates - I 18 [DEMO]\Dead Smiling Pirates - I 18.txt"
+ File "..\Songs\Dead Smiling Pirates - I 18 [DEMO]\License.txt"
-
+SectionEnd
+
+; ---------------------------------------------------------
+; Section3: Uninstallation Wizard
+; ---------------------------------------------------------
+
+Section Uninstall
+ !insertmacro MUI_STARTMENU_GETFOLDER "Application" $ICONS_GROUP
+
+; Delete "$INSTDIR\${PRODUCT_NAME}.url"
+ Delete "$SMPROGRAMS\$ICONS_GROUP\Uninstall.lnk"
+ Delete "$SMPROGRAMS\$ICONS_GROUP\Deinstallieren.lnk"
+ Delete "$SMPROGRAMS\$ICONS_GROUP\Website.lnk"
+ Delete "$SMPROGRAMS\$ICONS_GROUP\UltraStar Deluxe spielen.lnk"
+ Delete "$SMPROGRAMS\$ICONS_GROUP\Play UltraStar Deluxe.lnk"
+; Delete "$SMPROGRAMS.lnk"
+; Delete "$DESKTOP.lnk"
+; Delete "$STARTMENU.lnk"
+
+ Delete "$INSTDIR\*.*"
+ RMDir /r "$INSTDIR\Covers"
+ RMDir /r "$INSTDIR\Languages"
+ RMDir /r "$INSTDIR\Plugins"
+ RMDir /r "$INSTDIR\Skins\Classic"
+ RMDir /r "$INSTDIR\Skins\Deluxe"
+ RMDir /r "$INSTDIR\Skins"
+ RMDir /r "$INSTDIR\Songs"
+ RMDir /r "$INSTDIR\Sounds"
+ RMDir /r "$INSTDIR\Themes"
+ RMDir /r "$INSTDIR\Screenshots"
+ RMDir /r "$INSTDIR\Playlists"
+
+ RMDir "$SMPROGRAMS\$ICONS_GROUP"
- Delete "$SMPROGRAMS\$ICONS_GROUP\Uninstall.lnk"
- Delete "$SMPROGRAMS\$ICONS_GROUP\Website.lnk"
- Delete "$DESKTOP\UltraStar Deluxe.lnk"
- Delete "$SMPROGRAMS\$ICONS_GROUP\UltraStar Deluxe.lnk"
+ DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
- RMDir "$SMPROGRAMS\$ICONS_GROUP"
- RMDir "$INSTDIR\Deluxe"
- RMDir "$INSTDIR\Classic"
- RMDir "$INSTDIR"
+ Delete "$INSTDIR\Uninstall.exe"
+ RMDIR $INSTDIR"
- DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
- DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
- SetAutoClose true
SectionEnd
+!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
+ !insertmacro MUI_DESCRIPTION_TEXT ${Section1} $(DESC_Section1)
+ !insertmacro MUI_DESCRIPTION_TEXT ${Section2} $(DESC_Section2)
+!insertmacro MUI_FUNCTION_DESCRIPTION_END
+
+; -----------------------------------------------------------------------
+; Language Strings for Installation / Uninstallation Wizard
+; These Strings can be edited, like the variables at the top
+; BUG: Some of the LangStrings do not work - do not know why :(
+; I commented them out of the whole source. Maybe someone else can fix it
+; -----------------------------------------------------------------------
+
+LangString str_continue ${LANG_GERMAN} "Dies wird UltraStar Deluxe installieren. Fortsetzen?"
+LangString str_continue ${LANG_ENGLISH} "This will install UltraStar Deluxe. Continue?"
+
+LangString str_abort ${LANG_ENGLISH} "Are you sure to abort Installation?"
+LangString str_abort ${LANG_GERMAN} "Wollen Sie die Installation wirklich abbrechen?"
+
+LangString uninst_begin ${LANG_ENGLISH} "This will uninstall UltraStar Deluxe completely (with Songs!). Continue ?"
+LangString uninst_begin ${LANG_GERMAN} "Dies wird UltraStar Deluxe vollständig deinstallieren (inkl. Songs!). Fortfahren?"
+
+LangString uninst_success ${LANG_ENGLISH} "We are sad because the uninstallation finished successfully! Hope you enjoyed UltraStar Deluxe."
+LangString uninst_success ${LANG_GERMAN} "Wir sind traurig, da die Deinstallation erfolgreich verlief. Wir hoffen du hast UltraStar Deluxe genossen."
+
+LangString str_header ${LANG_ENGLISH} "Custom options for Installation"
+LangString str_header ${LANG_GERMAN} "Eigene Optionen zur Installation"
+
+LangString str_header_subtitle ${LANG_ENGLISH} ""
+LangString str_header_subtitle ${LANG_GERMAN} ""
+
+LangString sm_shortcut ${LANG_GERMAN} "UltraStar Deluxe spielen" ; Name for start Icon in startmenu
+LangString sm_shortcut ${LANG_ENGLISH} "Play UltraStar Deluxe"
+
+LangString sm_uninstall ${LANG_GERMAN} "Deinstallieren" ; Name for uninstall icon in startmenu
+LangString sm_uninstall ${LANG_ENGLISH} "Uninstall"
+
+LangString wp_title ${LANG_GERMAN} "Willkommen zur Installationsroutine von UltraStar Deluxe" ; Title String in Welcome Page
+LangString wp_title ${LANG_ENGLISH} "Welcome to the UltraStar Deluxe Setup Wizard"
+
+LangString wp_text ${LANG_GERMAN} "Dieser Assistent wird Sie durch die Installation von UltraStar Deluxe begleiten. UltraStar Deluxe ist ein kostenloses quelloffenes Karaokespiel, welches Singstar ähnelt. Diese Installationsroutine enthält den Bonus Song 'Dead Smiling Pirates - I 18' aus der CreativeCommons Datenbank, der optional installiert werden kann.\n\r\n\rDas UltraStar Deluxe Team wünscht viel Spaß\n\rProjekthomepage: http://sourceforge.net/projects/ultrastardx"
+LangString wp_text ${LANG_ENGLISH} "This wizard will guide you through the Installation of UltraStar Deluxe. UltraStar Deluxe is a free open source Karaoke game, which can be compared with Singstar. These Installation Wizard includes the bonus track 'Dead Smiling Pirates - I 18' from the CreativeCommons database and which can be installed seperatly.\n\r\n\rThe UltraStar Deluxe Team wishes you fun\n\rProject website: http://sourceforge.net/projects/ultrastardx"
+
+LangString fp_showreadme ${LANG_GERMAN} "Dokumentation ansehen (PDF)" ; "Show Readme" String in Finish Page
+LangString fp_showreadme ${LANG_ENGLISH} "See documentation (PDF)"
+
+LangString fp_text ${LANG_GERMAN} "UltraStar wurde erfolgreich auf Ihrem System installiert.\n\rBesuchen Sie unsere Projektwebseite um die neusten Updates und News zu erhalten."
+LangString fp_text ${LANG_ENGLISH} "UltraStar was installed successfully on you system.\n\rVisit out project website to get latest news and updates."
+
+LangString fp_link ${LANG_GERMAN} "Projektwebseite" ; Link to developers website - String in Finish Page
+LangString fp_link ${LANG_ENGLISH} "Project website"
+
+LangString uncp_text ${LANG_GERMAN} "Willkommen beim Deinstallations-Assistent für UltraStar Deluxe"
+LangString uncp_text ${LANG_ENGLISH} "Welcome to the UltraStar Deluxe Uninstall Wizard"
+
+; ------------------------------------------------------------------
+; Functions for the beginning of the installation and uninstallation
+; ------------------------------------------------------------------
+
+; Function for Installation
+
+Function .onInit
+ !insertmacro MUI_LANGDLL_DISPLAY
+ ; MessageBox MB_YESNO $(str_continue) IDYES continue
+ ; Abort ; Do not work as I expected :(
+ ; continue:
+FunctionEnd
+
+; Function for Uninstallation
+
+Function un.onInit
+ !insertmacro MUI_LANGDLL_DISPLAY
+ ; MessageBox MB_YESNO "$(uninst_begin)" IDYES continue
+ ; Abort ; causes uninstaller to quit.
+ ; continue:
+FunctionEnd \ No newline at end of file
diff --git a/Installer/header.bmp b/Installer/header.bmp
new file mode 100644
index 00000000..5d1ecc72
--- /dev/null
+++ b/Installer/header.bmp
Binary files differ
diff --git a/Installer/header.png b/Installer/header.png
new file mode 100644
index 00000000..88d8f747
--- /dev/null
+++ b/Installer/header.png
Binary files differ
diff --git a/Installer/ioSpecial.ini b/Installer/ioSpecial.ini
new file mode 100644
index 00000000..55dc5a69
--- /dev/null
+++ b/Installer/ioSpecial.ini
@@ -0,0 +1,19 @@
+[Settings]
+Rect=1044
+NumFields=3
+[Field 1]
+Type=bitmap
+Left=0
+Right=109
+Top=0
+Bottom=193
+Flags=RESIZETOFIT
+[Field 2]
+Type=label
+Left=120
+Right=315
+Top=10
+[Field 3]
+Type=label
+Left=120
+Right=315 \ No newline at end of file
diff --git a/Installer/left-164x314.png b/Installer/left-164x314.png
new file mode 100644
index 00000000..1182eabf
--- /dev/null
+++ b/Installer/left-164x314.png
Binary files differ
diff --git a/Installer/left.bmp b/Installer/left.bmp
new file mode 100644
index 00000000..68370f63
--- /dev/null
+++ b/Installer/left.bmp
Binary files differ
diff --git a/Installer/modern.bmp b/Installer/modern.bmp
new file mode 100644
index 00000000..62468ded
--- /dev/null
+++ b/Installer/modern.bmp
Binary files differ
diff --git a/Installer/ustar.ico b/Installer/ustar.ico
new file mode 100644
index 00000000..e5b21364
--- /dev/null
+++ b/Installer/ustar.ico
Binary files differ