Ignore:
Timestamp:
Sep 29, 2008, 9:34:18 PM (16 years ago)
Author:
maron
Message:

addon verze 1.0, včetně generovacích souborů a všeho okolo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • client_files/_czwow/CzWoW.nsi

    r1 r12  
    1313  !define FULL_TITLE "Clientská èestina WoW"
    1414  !define CREATOR "maron"
    15   !define CHANGELOG_FILE "CzWoW.txt"
     15  !define CHANGELOG_FILE "CzWoW.html"
    1616  !define CHANGELOG_FILE_NAME "O èeštinì.lnk"
    1717  !define STARTER "WoW.exe"
    18   !define Homepage "Heroes of Fantasy.url"
    1918
    2019
     
    8382  ; Write the uninstall keys for Windows
    8483  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${TITLE}" "DisplayName" "${FULL_TITLE}"
    85   WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${TITLE}" "UninstallString" '"$INSTDIR\uninstall.exe"'
     84  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${TITLE}" "UninstallString" '"$INSTDIR\${TITLE}-Uninstall.exe"'
    8685  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${TITLE}" "NoModify" 1
    8786  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${TITLE}" "NoRepair" 1
    8887
    8988 
    90   SetOutPath "$INSTDIR"
     89  SetOutPath "$INSTDIR\CzWoW"
    9190 
    9291  ;ADD YOUR OWN FILES HERE...
    93   File "${CHANGELOG_FILE}"
     92  File "CzWoW\${CHANGELOG_FILE}"
     93  File "CzWoW\*.*"
    9494   
    9595  ;Store installation folder
     
    101101SectionEnd
    102102
    103 Section "Texty" Texts
     103Section "Addon" Addon
    104104   SetOutPath "$INSTDIR\Interface\AddOns\CzWoW\"   
    105105   File "Interface\AddOns\CzWoW\*.*"   
     
    108108SectionEnd
    109109
     110Section "Èeské texty" CZTexts
     111   SetOutPath "$INSTDIR\Interface\AddOns\CzWoW\"   
     112   File "CZ\*.*"   
     113SectionEnd
     114
     115Section "Slovenské texty" SKTexts
     116   SetOutPath "$INSTDIR\Interface\AddOns\CzWoW\"   
     117   File "SK\*.*"   
     118SectionEnd
     119
    110120Section "Fonty" Fonts
    111121   SetOutPath "$INSTDIR\Data\Fonts\"   
     
    113123SectionEnd
    114124
    115 Section "Zvuky" Sound
     125Section "Zvuk" Sound
    116126   SetOutPath "$INSTDIR\Data\Sound\"   
    117127   File "Data\Sound\*.*"   
     
    232242SectionEnd
    233243
    234 Section "Pøidat do nabídky Start" start
     244Section "Nabídka Start" start
    235245  CreateDirectory "$SMPROGRAMS\${FULL_TITLE}"
    236246  CreateShortCut "$SMPROGRAMS\${FULL_TITLE}\Uninstall.lnk" "$INSTDIR\${TITLE}-uninstall.exe"
    237   CreateShortCut "$SMPROGRAMS\${FULL_TITLE}\${CHANGELOG_FILE_NAME}" "$INSTDIR\${CHANGELOG_FILE}" 
    238   CreateShortCut "$SMPROGRAMS\${FULL_TITLE}\${TITLE}.lnk" "$INSTDIR\${STARTER}"   
    239 SectionEnd
    240 
    241 Section "Umístit ikonu na plochu" desk
    242   CreateShortCut "$DESKTOP\${TITLE}.lnk" "$INSTDIR\${STARTER}" "" ""
     247  CreateShortCut "$SMPROGRAMS\${FULL_TITLE}\${CHANGELOG_FILE_NAME}" "$INSTDIR\czwow\${CHANGELOG_FILE}" 
     248  ;CreateShortCut "$SMPROGRAMS\${FULL_TITLE}\${TITLE}.lnk" "$INSTDIR\${STARTER}"   
     249  CreateShortCut "$SMPROGRAMS\${FULL_TITLE}\Domovská stránka.lnk" "http://wowpreklad.zdechov.net/" "" "$INSTDIR\czwow\Heroes.ico"
    243250SectionEnd
    244251
    245252Section "Zobrazit informace" info
    246   ExecShell "open" "${CHANGELOG_FILE}" 
     253  ExecShell "open" "$INSTDIR\czwow\${CHANGELOG_FILE}" 
    247254SectionEnd
    248255
    249256Section "Zpustit WoW" wow
    250   ExecShell "open" "${starter}"
     257  ExecShell "open" "$INSTDIR\${starter}"
    251258SectionEnd
    252259
     
    268275  !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
    269276  !insertmacro MUI_DESCRIPTION_TEXT ${Nutne} "Vyberte potøebné souèásti."
    270   !insertmacro MUI_DESCRIPTION_TEXT ${Texts} "Obsahuje pøeložené nìkteré clientské texty"
     277  !insertmacro MUI_DESCRIPTION_TEXT ${Addon} "Obsahuje nutné souèásti addonu"
     278  !insertmacro MUI_DESCRIPTION_TEXT ${CZTexts} "Obsahuje èeské texty. V pøípadì zaškrtnutí obou budou preferovány slovenské texty"
     279  !insertmacro MUI_DESCRIPTION_TEXT ${SKTexts} "Obsahuje slovenské texty. V pøípadì zaškrtnutí obou budou preferovány slovenské texty"
    271280  !insertmacro MUI_DESCRIPTION_TEXT ${Fonts} "Obsahuje èeské fonty pro spráné zobrazování diakritiky"
    272281  !insertmacro MUI_DESCRIPTION_TEXT ${Sound} "Obsahuje zvukové hlášky z warcraft III"
    273282  !insertmacro MUI_DESCRIPTION_TEXT ${info} "Zobrazit iformace, o verzích, o balíèku"
    274   !insertmacro MUI_DESCRIPTION_TEXT ${desk} "Umístit zástupce wow na plochu"
     283  ;!insertmacro MUI_DESCRIPTION_TEXT ${desk} "Umístit zástupce wow na plochu"
    275284  !insertmacro MUI_DESCRIPTION_TEXT ${start} "Umístit zástupce do nabítky start"
    276285  !insertmacro MUI_DESCRIPTION_TEXT ${wow} "Spustit wow.exe"
     
    282291
    283292Section "Uninstall"
    284   ;mazání halvních èásti
    285   Delete "$INSTDIR\CzWoW.txt"
     293  ;mazání hlavních èásti
    286294  Delete "$INSTDIR\${TITLE}-Uninstall.exe"
    287  
     295  Delete "$INSTDIR\CzWoW\*.*"   
     296  RMDir "$INSTDIR\CzWoW"
     297
    288298  ;mazání fontù
    289299  Delete "$INSTDIR\Data\Fonts\*.*"
     
    397407   RMDir "$INSTDIR\Data\Sound\Character\NightElf\NightElfVocalMale"
    398408   RMDir "$INSTDIR\Data\Sound\Character\Tauren\TaurenMale"
     409   
     410   RMDir "$INSTDIR\Data\Sound\Character\Gnome"
     411   RMDir "$INSTDIR\Data\Sound\Character\Human"
     412   RMDir "$INSTDIR\Data\Sound\Character\NightElf"
     413   RMDir "$INSTDIR\Data\Sound\Character\Tauren"
    399414
    400415   Delete "$INSTDIR\Data\Sound\Interface\NPC\Human\Male\*.*"   
     
    403418   RMDir "$INSTDIR\Data\Sound\Interface\NPC\Human\Female"
    404419   RMDir "$INSTDIR\Data\Sound\Interface\NPC\Human\Male"
     420   RMDir "$INSTDIR\Data\Sound\Interface\NPC\Human\"
     421   RMDir "$INSTDIR\Data\Sound\Interface\NPC"
    405422 
    406423   Delete "$INSTDIR\Data\Sound\Music\GlueScreenMusic\*.*"   
    407424   RMDir "$INSTDIR\Data\Sound\Music\GlueScreenMusic"
    408425
    409    RMDir "$INSTDIR\Data\Sound"
    410  
     426   RMDir "$INSTDIR\Data\Sound\Character"
     427   RMDir "$INSTDIR\Data\Sound\Creature"
     428   RMDir "$INSTDIR\Data\Sound\Interface"
     429   RMDir "$INSTDIR\Data\Sound\Music"
     430
     431   RMDir "$INSTDIR\Data\Sound" 
    411432 
    412433  ;mazání textù
     
    416437  RMDir "$INSTDIR\Interface\AddOns\ProffBot\"
    417438
     439  ;Delete "$DESKTOP\${TITLE}.lnk"
     440
    418441  Delete "$SMPROGRAMS\${FULL_TITLE}\*.*"
    419442  RMDir "$SMPROGRAMS\${FULL_TITLE}"
    420443
    421   Delete "$DESKTOP\${TITLE}.lnk"
    422 
    423444  DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${TITLE}"
    424445  DeleteRegKey /ifempty HKCU "Software\${CREATOR}\${FULL_TITLE}"
     446 
     447
    425448
    426449SectionEnd
Note: See TracChangeset for help on using the changeset viewer.