; Azza's WOW Addons.nsi ; ; Made by Azza! ; E-mail : ommokazza@naver.com ; ;-------------------------------- Var ProgramName Var WowInstDir ; The name of the installer Name "WOW Addons For ¸®Ä¡" ; The file to write OutFile "WOW_Addons_For_¸®Ä¡.exe" ; Caption Caption $ProgramName ; The default installation directory InstallDirRegKey HKLM "SOFTWARE\Blizzard Entertainment\World of Warcraft" "InstallPath" ;-------------------------------- ; Pages ;Page components Page directory Page instfiles ;-------------------------------- Function .onInit StrCpy $ProgramName "WOW Addons For ¸®Ä¡ Ver0.1" ReadRegStr $WowInstDir HKLM "SOFTWARE\Blizzard Entertainment\World of Warcraft" "InstallPath" StrCpy $INSTDIR $WowInstDir StrCmp $WowInstDir "" not_inst_wow 0 IfFileExists $WowInstDir\Interface\ommoks.txt 0 inst_start MessageBox MB_YESNOCANCEL "º» ÆÄÀϵéÀÌ ÀÌ¹Ì ¼³Ä¡µÇ¾î ÀÖ½À´Ï´Ù. »èÁ¦ÇÒ±î¿ä? (»èÁ¦/µ¤¾î¾²±â/Ãë¼Ò)" IDYES uninst_start IDNO over_write Abort inst_start: Rename /REBOOTOK $WowInstDir\Interface $WowInstDir\Interface.oac Rename /REBOOTOK $WowInstDir\WTF $WowInstDir\WTF.oac Return over_write: RMDir /r /REBOOTOK $WowInstDir\Interface RMDir /r /REBOOTOK $WowInstDir\WTF ; RMDir /r /REBOOTOK $WowInstDir\WDB Return uninst_start: RMDir /r /REBOOTOK $WowInstDir\Interface RMDir /r /REBOOTOK $WowInstDir\WTF ; RMDir /r /REBOOTOK $WowInstDir\WDB Rename /REBOOTOK $WowInstDir\Interface.oac $WowInstDir\Interface Rename /REBOOTOK $WowInstDir\WTF.oac $WowInstDir\WTF ; Rename /REBOOTOK $WowInstDir\WDB.oac $WowInstDir\WDB ; Look change file restore ; SetOutPath $WowInstDir\Data ; Exec '"restore.bat"' MessageBox MB_OK "»èÁ¦ÇÏ¿´½À´Ï´Ù" Abort not_inst_wow: MessageBox MB_OK "¸ÕÀú ¿ùµå ¿Àºê ¿öÅ©·¡ÇÁÆ®¸¦ ¼³Ä¡ÇØ ÁÖ¼¼¿ä " Abort FunctionEnd Function .onInstSuccess ; look change file processing ; ReadRegStr $WowInstDir HKLM "SOFTWARE\Blizzard Entertainment\World of Warcraft" "InstallPath" ; SetOutPath $WowInstDir\Data ; Exec '"backup.bat"' FunctionEnd ; Install Section Section "" ; Set output path to the installation directory. SetOutPath $WowInstDir ; Put file there File /r Interface File /r WTF ; File /r Data SectionEnd