Guest User

alice install script / test

a guest
Jun 3rd, 2011
436
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. ;--------------------------------
  2. ; The name of the installer
  3. Name "Alice-installer"
  4. ; The file to write
  5. OutFile "Alice-installer.exe"
  6. ; The default installation directory
  7. InstallDir "$PROGRAMFILES\Rockstar Games\Grand Theft Auto IV"
  8. ;--------------------------------
  9. ; Pages
  10. Page directory
  11. Page instfiles
  12.  
  13. UninstPage uninstConfirm
  14. UninstPage instfiles
  15. ;--------------------------------
  16. ; The stuff to install
  17. Section "Alice-installer (required)"
  18. ; Set output path to the installation directory.
  19. SetOutPath $INSTDIR
  20. ; Put file there
  21. Rename GTAIV.exe GTAIV-V7.exe
  22. File testtesttest.txt
  23. SetOutPath $INSTDIR\Alice
  24. File devilmod.lua
  25. SetOutPath $INSTDIR
  26. WriteUninstaller "uninstall-Alice.exe"
  27.  
  28. SectionEnd
  29. ;--------------------------------
  30. ; Uninstaller
  31. Section "uninstall"
  32.  
  33. MessageBox MB_YESNO "do you want to backup the Alice scripts?" IDYES true IDNO false
  34. true:
  35. DetailPrint "Alice scripts are saved at Desktop\Alice"
  36.  
  37. CreateDirectory $DESKTOP\Alice
  38. CopyFiles $INSTDIR\Alice\*.* $DESKTOP\Alice
  39. Goto next
  40. false:
  41. DetailPrint "All Alice scripts have been deleted"
  42. next:
  43. ; Remove files and uninstaller
  44. Rename $INSTDIR\GTAIV-V7.exe $INSTDIR\GTAIV.exe
  45. Delete "$INSTDIR\testtesttest.txt"
  46. Delete "$INSTDIR\uninstall-Alice.exe"
  47. RMDir /r /REBOOTOK "$INSTDIR\Alice"
  48. SectionEnd
Advertisement
Add Comment
Please, Sign In to add comment