aboutsummaryrefslogtreecommitdiffstats
path: root/mediaplugin/installer/settings/files_main_install.nsh
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-10-19 16:39:31 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-10-19 16:39:31 +0000
commit0b60f71cb853b35e53d0b407493dbcfc098ed40e (patch)
tree03221c792a89f8c885288a73d1041ea5dc7aee4f /mediaplugin/installer/settings/files_main_install.nsh
parenta52499fa9f5e7f37c70bfb7a4145554168ec30f0 (diff)
downloadusdx-0b60f71cb853b35e53d0b407493dbcfc098ed40e.tar.gz
usdx-0b60f71cb853b35e53d0b407493dbcfc098ed40e.tar.xz
usdx-0b60f71cb853b35e53d0b407493dbcfc098ed40e.zip
initial commit
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@2684 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'mediaplugin/installer/settings/files_main_install.nsh')
-rw-r--r--mediaplugin/installer/settings/files_main_install.nsh90
1 files changed, 90 insertions, 0 deletions
diff --git a/mediaplugin/installer/settings/files_main_install.nsh b/mediaplugin/installer/settings/files_main_install.nsh
new file mode 100644
index 00000000..10afc6f6
--- /dev/null
+++ b/mediaplugin/installer/settings/files_main_install.nsh
@@ -0,0 +1,90 @@
+; ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~
+; UltraStar Deluxe Installer: Main components
+; ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~ ~+~
+
+; Remove old files from previous versions
+IfFileExists $INSTDIR\ScoreConverter.exe 0 +2
+Delete "$INSTDIR\ScoreConverter.exe"
+IfFileExists $INSTDIR\USdx.exe 0 +2
+Delete "$INSTDIR\USdx.exe"
+IfFileExists $INSTDIR\covers.cache 0 +2
+Delete "$INSTDIR\covers.cache"
+IfFileExists $INSTDIR\avcodec-51.dll 0 +2
+Delete "$INSTDIR\avcodec-51.dll"
+IfFileExists $INSTDIR\avformat-50.dll 0 +2
+Delete "$INSTDIR\avformat-50.dll"
+IfFileExists $INSTDIR\avutil-49.dll 0 +2
+Delete "$INSTDIR\avutil-49.dll"
+IfFileExists $INSTDIR\bass.dll 0 +2
+Delete "$INSTDIR\bass.dll"
+IfFileExists $INSTDIR\SDL.dll 0 +2
+Delete "$INSTDIR\SDL.dll"
+IfFileExists $INSTDIR\sqlite3.dll 0 +2
+Delete "$INSTDIR\sqlite3.dll"
+
+RMDir /r "$INSTDIR\Themes"
+RMDir /r "$INSTDIR\Skins"
+RMDir /r "$INSTDIR\Plugins"
+RMDir /r "$INSTDIR\Languages"
+
+; Create Directories:
+
+CreateDirectory $INSTDIR\plugins
+CreateDirectory $INSTDIR\covers
+CreateDirectory $INSTDIR\songs
+
+${If} $UseAppData == true
+
+ ; Create folders in appdata for current user
+ SetShellVarContext current
+ CreateDirectory $UserDataPath
+ CreateDirectory $UserDataPath\screenshots
+ CreateDirectory $UserDataPath\playlists
+
+ SetOutPath "$INSTDIR"
+
+ CreateShortCut "screenshots.lnk" "$UserDataPath\screenshots"
+ CreateShortCut "playlists.lnk" "$UserDataPath\playlists"
+ CreateShortCut "config.ini.lnk" "$ConfigIniPath"
+
+ SetShellVarContext all
+${EndIf}
+
+; themes, languages, sounds, fonts, visuals dir
+
+SetOutPath "$INSTDIR"
+
+File /r /x .svn /x .gitignore ..\game\themes
+File /r /x .svn /x .gitignore ..\game\languages
+File /r /x .svn /x .gitignore ..\game\sounds
+File /r /x .svn /x .gitignore ..\game\fonts
+File /r /x .svn /x .gitignore ..\game\resources
+File /r /x .svn /x .gitignore ..\game\visuals
+
+; Root dir:
+
+File .\dependencies\dll\*.dll
+
+File ..\ChangeLog.txt
+File ..\ChangeLog.GERMAN.txt
+File ..\game\LuaCommands.odt
+File ..\README.txt
+File .\dependencies\documents\license.txt
+File .\dependencies\documents\documentation.pdf
+
+File "..\${exe}.exe"
+
+; Covers dir:
+
+SetOutPath "$INSTDIR\covers"
+
+IfFileExists $INSTDIR\covers\covers.ini +2 0
+File ..\game\covers\covers.ini
+File ..\game\covers\NoCover.jpg
+
+; Plugins dir:
+
+SetOutPath "$INSTDIR\plugins\"
+File "..\game\plugins\*.*"
+
+SetOutPath "$INSTDIR" \ No newline at end of file