Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;--------------------------------
- ; The name of the installer
- Name "Alice-installer"
- ; The file to write
- OutFile "Alice-installer.exe"
- ; The default installation directory
- InstallDir "$PROGRAMFILES\Rockstar Games\Grand Theft Auto IV"
- ;--------------------------------
- ; Pages
- Page directory
- Page instfiles
- UninstPage uninstConfirm
- UninstPage instfiles
- ;--------------------------------
- ; The stuff to install
- Section "Alice-installer (required)"
- ; Set output path to the installation directory.
- SetOutPath $INSTDIR
- ; Put file there
- Rename GTAIV.exe GTAIV-V7.exe
- File testtesttest.txt
- SetOutPath $INSTDIR\Alice
- File devilmod.lua
- SetOutPath $INSTDIR
- WriteUninstaller "uninstall-Alice.exe"
- SectionEnd
- ;--------------------------------
- ; Uninstaller
- Section "uninstall"
- MessageBox MB_YESNO "do you want to backup the Alice scripts?" IDYES true IDNO false
- true:
- DetailPrint "Alice scripts are saved at Desktop\Alice"
- CreateDirectory $DESKTOP\Alice
- CopyFiles $INSTDIR\Alice\*.* $DESKTOP\Alice
- Goto next
- false:
- DetailPrint "All Alice scripts have been deleted"
- next:
- ; Remove files and uninstaller
- Rename $INSTDIR\GTAIV-V7.exe $INSTDIR\GTAIV.exe
- Delete "$INSTDIR\testtesttest.txt"
- Delete "$INSTDIR\uninstall-Alice.exe"
- RMDir /r /REBOOTOK "$INSTDIR\Alice"
- SectionEnd
Advertisement
Add Comment
Please, Sign In to add comment