Guest User

Untitled

a guest
Feb 1st, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. !include "MUI2.nsh"
  2.  
  3. XPStyle on
  4.  
  5. Name "Your Cryengine Game"
  6.  
  7. ; The file to write
  8. OutFile "Your Gameinstaller.exe"
  9.  
  10. InstallDir "$PROGRAMFILES\Your Studio\Your Game"
  11.  
  12. ; Request application privileges for Windows Vista/7
  13. RequestExecutionLevel user
  14.  
  15. !define FILES_ROOT ".."
  16.  
  17. ;UNCOMMENT TO EXCLUDE THE GAME FOLDER FROM THE INSTALLER
  18. ;!define LIGHT_BUILD
  19.  
  20. ; MUI Settings
  21. !define MUI_ABORTWARNING
  22.  
  23. !define MUI_ICON        "icon.ico"
  24. !define MUI_UNICON      "icon.ico"
  25.  
  26. !define MUI_HEADERIMAGE
  27. !define MUI_HEADERIMAGE_BITMAP "header.bmp"
  28.  
  29. ;Welcome page
  30. !define MUI_TEXT_WELCOME_INFO_TITLE     "Welcome to this useless installer!"
  31. !define MUI_TEXT_WELCOME_INFO_TEXT      "This is a test info text blahblubb"
  32. !define MUI_WELCOMEFINISHPAGE_BITMAP    "welcome.bmp"
  33. !insertmacro MUI_PAGE_WELCOME
  34.  
  35. ; License page
  36. !insertmacro MUI_PAGE_LICENSE                   "eula.txt"
  37.  
  38. ; Game directory page
  39. !define MUI_DIRECTORYPAGE_VARIABLE              $INSTDIR
  40. !insertmacro MUI_PAGE_DIRECTORY
  41.  
  42. ; Install files page
  43. !insertmacro MUI_PAGE_INSTFILES
  44.  
  45.  
  46.  
  47. ; The stuff to install
  48. Section "" ;No components page, name is not important
  49.  
  50.     ; Set output path to the installation directory.
  51.     SetOutPath $INSTDIR
  52.     File "${FILES_ROOT}\system.cfg"
  53.    
  54.  
  55.     SetOutPath $INSTDIR\Bin32
  56.     File /r /x *.pdb /x *.obj /x *.lib /x *.exp /x Editor.exe /x .svn /x rc /x LuaCompiler.exe "${FILES_ROOT}\Bin32\"
  57.  
  58.     SetOutPath $INSTDIR\Engine
  59.     File /x ShaderCache.pak "${FILES_ROOT}\Engine\"  
  60.  
  61.     !ifndef LIGHT_BUILD
  62.         SetOutPath $INSTDIR\Game
  63.         File /r /x *.psd /x *.cry /x .svn "${FILES_ROOT}\Game\"
  64.     !endif
  65.  
  66.     SetOutPath $INSTDIR\Tools
  67.     File "${FILES_ROOT}\Tools\CryDevLogin.exe"
  68.     SetOutPath $INSTDIR\Tools\CrashHandler
  69.     File "${FILES_ROOT}\Tools\CrashHandler\CrashHandler.exe"
  70.  
  71. SectionEnd ; end the section
  72.  
  73. ; Finish files page
  74. !define MUI_FINISHPAGE_NOAUTOCLOSE
  75. !insertmacro MUI_PAGE_FINISH
  76.  
  77. !insertmacro MUI_LANGUAGE   "English"
Add Comment
Please, Sign In to add comment