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