Update Installer.nsi

This commit is contained in:
sab 2022-03-22 12:27:28 -04:00 committed by GitHub
parent 19cf3b3d2e
commit a336a6c7fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,13 +2,10 @@
Name "The Sims 2 Starter Pack (Web installer by osab)" Name "The Sims 2 Starter Pack (Web installer by osab)"
OutFile "TS2 Starter Pack WebInstall (osab).exe" OutFile "TS2 Starter Pack WebInstall (osab).exe"
RequestExecutionLevel admin RequestExecutionLevel admin
Section "Install"
definstdir "$PROGRAMFILES32/The Sims 2 Starter Pack/"
PageEx Directory PageEx Directory
$INSTDIR "$PROGRAMFILES32/The Sims 2 Starter Pack/"
DirVar $INSTDIR DirVar $INSTDIR
PageExEnd PageExEnd
SectionEnd
PageEx InstFiles PageEx InstFiles
Section "Download" Section "Download"
AddSize 25000000 AddSize 25000000
@ -17,18 +14,15 @@ Section "Download"
SetOverwrite ifnewer SetOverwrite ifnewer
NSISdl::download "https://download2347.mediafire.com/86cbr7or049g/ejbhtnu8itob4t0/osab_Sims+2+Starter+Pack.7z" "osab_Sims 2 Starter Pack.7z"; NSISdl::download "https://download2347.mediafire.com/86cbr7or049g/ejbhtnu8itob4t0/osab_Sims+2+Starter+Pack.7z" "osab_Sims 2 Starter Pack.7z";
SectionEnd SectionEnd
Section "Extract" Section "Extract"
SetOutPath - SetOutPath -
ReserveFile $PLUGINSDIR/osab_Sims 2 Starter Pack.7z ReserveFile $PLUGINSDIR/osab_Sims 2 Starter Pack.7z
Nsis7z::ExtractWithDetails "osab_Sims 2 Starter Pack.7z" "Extracting game archive %s..." Nsis7z::ExtractWithDetails "osab_Sims 2 Starter Pack.7z" "Extracting game archive %s..."
Delete "$PLUGINSDIR\osab_Sims 2 Starter Pack.7z" Delete "$PLUGINSDIR\osab_Sims 2 Starter Pack.7z"
SectionEnd SectionEnd
Section "Touchup" Section "Touchup"
SetOutPath $INSTDIR/__Installer/ SetOutPath $INSTDIR/__Installer/
ReserveFile Touchup.exe ReserveFile Touchup.exe
Exec '"Touchup.exe" install -locale en_US -installPath $INSTDIR -autologging' Exec '"Touchup.exe" install -locale en_US -installPath $INSTDIR -autologging'
SectionEnd SectionEnd
PageExEnd PageExEnd