mirror of
https://github.com/voicemxil/TSStories-Starter-Pack.git
synced 2025-01-22 08:11:49 -05:00
v13
This commit is contained in:
parent
052edfcf19
commit
c248d34c0c
7 changed files with 189 additions and 96 deletions
Binary file not shown.
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 928 KiB |
Binary file not shown.
Before Width: | Height: | Size: 100 KiB After Width: | Height: | Size: 134 KiB |
BIN
bin/Web Installer/TSStoriesStarterPack-WebInstaller.x64.exe
Normal file
BIN
bin/Web Installer/TSStoriesStarterPack-WebInstaller.x64.exe
Normal file
Binary file not shown.
Binary file not shown.
|
@ -1,13 +1,14 @@
|
|||
!macro downloadPack packName packLink outputFile packSHA256
|
||||
${Do}
|
||||
DetailPrint "Downloading ${packName} from ${packLink}. Closing the download window will interrupt the download."
|
||||
inetc::get /POPUP "Downloading ${packName}..." "${packLink}" "${outputFile}"
|
||||
NScurl::http GET "${packLink}" "${outputFile}" /RESUME /INSIST /END
|
||||
Pop $0 # return value = exit code, "OK" means OK
|
||||
DetailPrint "${packName} download status: $0"
|
||||
filecheck::calcFileHash "${outputFile}" sha256
|
||||
NScurl::sha256 "${outputFile}"
|
||||
Pop $R1
|
||||
${if} $R1 == "${packSHA256}"
|
||||
ExecWait '"${outputFile}" -InstallPath="$INSTDIR" -o"$INSTDIR" -y -gm1'
|
||||
DetailPrint "Extracting ${packName} from ${outputFile}..."
|
||||
Nsis7z::ExtractWithDetails "${outputFile}" "Extracting ${packName} %s..."
|
||||
${Break}
|
||||
${else}
|
||||
${If} ${Cmd} `MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION "${outputFile} seems to be corrupted. This may be due to a bad connection or interrupted download. If you continue to see this message after retrying, consult the Discord. Would you like to retry?" /SD IDRETRY IDRETRY`
|
||||
|
|
|
@ -1,77 +1,163 @@
|
|||
!include LogicLib.nsh
|
||||
!macro setLanguage gameKey
|
||||
SetRegView 32
|
||||
System::Call 'kernel32::GetSystemDefaultLangID() i .r7'
|
||||
System::Call 'kernel32::GetSystemDefaultLangID() i .r7'
|
||||
Pop $R7
|
||||
DetailPrint "Detected Language: $7"
|
||||
${If} $7 == 1033 ; English
|
||||
${OrIf} $7 == 4105
|
||||
${OrIf} $7 == 7177
|
||||
${OrIf} $7 == 8201
|
||||
${OrIf} $7 == 9225
|
||||
${OrIf} $7 == 10249
|
||||
${OrIf} $7 == 11273
|
||||
${OrIf} $7 == 12297
|
||||
${OrIf} $7 == 13321
|
||||
${OrIf} $7 == 14345
|
||||
${OrIf} $7 == 15369
|
||||
${OrIf} $7 == 16393
|
||||
${OrIf} $7 == 17417
|
||||
${OrIf} $7 == 18441
|
||||
DetailPrint "Game Language = English"
|
||||
WriteRegDWORD HKLM32 "Software\${gameKey}\1.0" "Language" "1"
|
||||
WriteRegStr HKLM32 "Software\${gameKey}\1.0" "LanguageName" "English US"
|
||||
${ElseIf} $7 == 1036 ; French
|
||||
${OrIf} $7 == 2060
|
||||
${OrIf} $7 == 3084
|
||||
${OrIf} $7 == 4108
|
||||
${OrIf} $7 == 5132
|
||||
${OrIf} $7 == 6156
|
||||
${OrIf} $7 == 7180
|
||||
${OrIf} $7 == 8204
|
||||
${OrIf} $7 == 9228
|
||||
${OrIf} $7 == 10252
|
||||
${OrIf} $7 == 11276
|
||||
${OrIf} $7 == 12300
|
||||
${OrIf} $7 == 13324
|
||||
${OrIf} $7 == 14348
|
||||
${OrIf} $7 == 15372
|
||||
${OrIf} $7 == 58380
|
||||
DetailPrint "Game Language = Fremch"
|
||||
WriteRegDWORD HKLM32 "Software\${gameKey}\1.0" "Language" "2"
|
||||
WriteRegStr HKLM32 "Software\${gameKey}\1.0" "LanguageName" "French"
|
||||
${ElseIf} $7 == 1031 ; German
|
||||
${OrIf} $7 == 2055
|
||||
${OrIf} $7 == 3079
|
||||
${OrIf} $7 == 4103
|
||||
${OrIf} $7 == 5127
|
||||
DetailPrint "Game Language = German"
|
||||
WriteRegDWORD HKLM32 "Software\${gameKey}\1.0" "Language" "3"
|
||||
WriteRegStr HKLM32 "Software\${gameKey}\1.0" "LanguageName" "German"
|
||||
${ElseIf} $7 == 1040 ; Italian
|
||||
${OrIf} $7 == 2064
|
||||
DetailPrint "Game Language = Italian"
|
||||
WriteRegDWORD HKLM32 "Software\${gameKey}\1.0" "Language" "4"
|
||||
WriteRegStr HKLM32 "Software\${gameKey}\1.0" "LanguageName" "Italian"
|
||||
${ElseIf} $7 == 1034 ; Spanish
|
||||
WriteRegDWORD HKLM32 "Software\${gameKey}\1.0" "Language" "5"
|
||||
WriteRegStr HKLM32 "Software\${gameKey}\1.0" "LanguageName" "Spanish"
|
||||
${ElseIf} $7 = 2058 ; Spanish (Mexico)
|
||||
${OrIf} $7 == 2058 ; Spanish (Mexico)
|
||||
${OrIf} $7 == 3082
|
||||
${OrIf} $7 == 4106
|
||||
${OrIf} $7 == 5130
|
||||
${OrIf} $7 == 6154
|
||||
${OrIf} $7 == 7178
|
||||
${OrIf} $7 == 8202
|
||||
${OrIf} $7 == 9226
|
||||
${OrIf} $7 == 10250
|
||||
${OrIf} $7 == 11274
|
||||
${OrIf} $7 == 12298
|
||||
${OrIf} $7 == 13322
|
||||
${OrIf} $7 == 14346
|
||||
${OrIf} $7 == 15370
|
||||
${OrIf} $7 == 16394
|
||||
${OrIf} $7 == 17418
|
||||
${OrIf} $7 == 18442
|
||||
${OrIf} $7 == 19446
|
||||
${OrIf} $7 == 20490
|
||||
${OrIf} $7 == 21514
|
||||
${OrIf} $7 == 58378
|
||||
DetailPrint "Game Language = Spanish"
|
||||
WriteRegDWORD HKLM32 "Software\${gameKey}\1.0" "Language" "5"
|
||||
WriteRegStr HKLM32 "Software\${gameKey}\1.0" "LanguageName" "Spanish"
|
||||
${ElseIf} $7 == 1053 ; Swedish
|
||||
${OrIf} $7 == 2077
|
||||
DetailPrint "Game Language = Swedish"
|
||||
WriteRegDWORD HKLM32 "Software\${gameKey}\1.0" "Language" "6"
|
||||
WriteRegStr HKLM32 "Software\${gameKey}\1.0" "LanguageName" "Swedish"
|
||||
${ElseIf} $7 == 1031 ; Finnish
|
||||
DetailPrint "Game Language = Finnish"
|
||||
WriteRegDWORD HKLM32 "Software\${gameKey}\1.0" "Language" "7"
|
||||
WriteRegStr HKLM32 "Software\${gameKey}\1.0" "LanguageName" "Finnish"
|
||||
${ElseIf} $7 == 1043 ; Dutch
|
||||
${OrIf} $7 == 2067
|
||||
DetailPrint "Game Language = Dutch"
|
||||
WriteRegDWORD HKLM32 "Software\${gameKey}\1.0" "Language" "8"
|
||||
WriteRegStr HKLM32 "Software\${gameKey}\1.0" "LanguageName" "Dutch"
|
||||
${ElseIf} $7 == 1049 ; Russian
|
||||
${OrIf} $7 == 2073
|
||||
DetailPrint "Game Language = Russian"
|
||||
WriteRegDWORD HKLM32 "Software\${gameKey}\1.0" "Language" "10"
|
||||
WriteRegStr HKLM32 "Software\${gameKey}\1.0" "LanguageName" "Russian"
|
||||
${ElseIf} $7 == 2052 ; Chinese (Simplified)
|
||||
${OrIf} $7 == 4100
|
||||
DetailPrint "Game Language = Chinese (Simplified)"
|
||||
WriteRegDWORD HKLM32 "Software\${gameKey}\1.0" "Language" "11"
|
||||
WriteRegStr HKLM32 "Software\${gameKey}\1.0" "LanguageName" "Chinese (Simplified)"
|
||||
${ElseIf} $7 == 1028 ; Chinese (Traditional)
|
||||
${OrIf} $7 == 3076
|
||||
${OrIf} $7 == 5124
|
||||
DetailPrint "Game Language = Chinese (Traditional)"
|
||||
WriteRegDWORD HKLM32 "Software\${gameKey}\1.0" "Language" "12"
|
||||
WriteRegStr HKLM32 "Software\${gameKey}\1.0" "LanguageName" "Chinese (Traditional)"
|
||||
${ElseIf} $7 == 1049 ; English (UK)
|
||||
${OrIf} $7 == 3081
|
||||
${OrIf} $7 == 5129
|
||||
${OrIf} $7 == 6153
|
||||
DetailPrint "Game Language = English (UK)"
|
||||
WriteRegDWORD HKLM32 "Software\${gameKey}\1.0" "Language" "13"
|
||||
WriteRegStr HKLM32 "Software\${gameKey}\1.0" "LanguageName" "English (UK)"
|
||||
${ElseIf} $7 == 1049 ; Polish
|
||||
DetailPrint "Game Language = Polish"
|
||||
WriteRegDWORD HKLM32 "Software\${gameKey}\1.0" "Language" "14"
|
||||
WriteRegStr HKLM32 "Software\${gameKey}\1.0" "LanguageName" "Polish"
|
||||
${ElseIf} $7 == 1054 ; Thai
|
||||
DetailPrint "Game Language = Thai"
|
||||
WriteRegDWORD HKLM32 "Software\${gameKey}\1.0" "Language" "15"
|
||||
WriteRegStr HKLM32 "Software\${gameKey}\1.0" "LanguageName" "Thai"
|
||||
${ElseIf} $7 == 1044 ; Norwegian
|
||||
${OrIf} $7 == 2068
|
||||
DetailPrint "Game Language = Norwegian"
|
||||
WriteRegDWORD HKLM32 "Software\${gameKey}\1.0" "Language" "16"
|
||||
WriteRegStr HKLM32 "Software\${gameKey}\1.0" "LanguageName" "Norwegian"
|
||||
${ElseIf} $7 == 2068 ; Norwegian
|
||||
WriteRegDWORD HKLM32 "Software\${gameKey}\1.0" "Language" "16"
|
||||
WriteRegStr HKLM32 "Software\${gameKey}\1.0" "LanguageName" "Norwegian"
|
||||
${ElseIf} $7 == 2070 ; Portuguese
|
||||
DetailPrint "Game Language = Portuguese"
|
||||
WriteRegDWORD HKLM32 "Software\${gameKey}\1.0" "Language" "17"
|
||||
WriteRegStr HKLM32 "Software\${gameKey}\1.0" "LanguageName" "Portuguese"
|
||||
${ElseIf} $7 == 1038 ; Hungarian
|
||||
DetailPrint "Game Language = Hungarian"
|
||||
WriteRegDWORD HKLM32 "Software\${gameKey}\1.0" "Language" "18"
|
||||
WriteRegStr HKLM32 "Software\${gameKey}\1.0" "LanguageName" "Hungarian"
|
||||
${ElseIf} $7 == 1046 ; Portuguese (Brazil)
|
||||
DetailPrint "Game Language = Portuguese (Brazil)"
|
||||
WriteRegDWORD HKLM32 "Software\${gameKey}\1.0" "Language" "a"
|
||||
WriteRegStr HKLM32 "Software\${gameKey}\1.0" "LanguageName" "Portuguese (Brazil)"
|
||||
${ElseIf} $7 == 1029 ; Czech
|
||||
DetailPrint "Game Language = Czech"
|
||||
WriteRegDWORD HKLM32 "Software\${gameKey}\1.0" "Language" "b"
|
||||
WriteRegStr HKLM32 "Software\${gameKey}\1.0" "LanguageName" "Czech"
|
||||
${ElseIf} $7 == 1037 ; Hebrew
|
||||
DetailPrint "Game Language = Hebrew"
|
||||
WriteRegDWORD HKLM32 "Software\${gameKey}\1.0" "Language" "c"
|
||||
WriteRegStr HKLM32 "Software\${gameKey}\1.0" "LanguageName" "Hebrew"
|
||||
${ElseIf} $7 == 1032 ; Greek
|
||||
DetailPrint "Game Language = Greek"
|
||||
WriteRegDWORD HKLM32 "Software\${gameKey}\1.0" "Language" "d"
|
||||
WriteRegStr HKLM32 "Software\${gameKey}\1.0" "LanguageName" "Greek"
|
||||
${ElseIf} $7 == 1041 ; Japanese
|
||||
DetailPrint "Game Language = Japanese"
|
||||
WriteRegDWORD HKLM32 "Software\${gameKey}\1.0" "Language" "e"
|
||||
WriteRegStr HKLM32 "Software\${gameKey}\1.0" "LanguageName" "Japanese"
|
||||
${ElseIf} $7 == 1042 ; Korean
|
||||
DetailPrint "Game Language = Korean"
|
||||
WriteRegDWORD HKLM32 "Software\${gameKey}\1.0" "Language" "f"
|
||||
WriteRegStr HKLM32 "Software\${gameKey}\1.0" "LanguageName" "Korean"
|
||||
${EndIf}
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
Unicode True ;Support Unicode format in the installer
|
||||
Unicode True
|
||||
Target amd64-unicode
|
||||
|
||||
;Include header files
|
||||
!define MUI_WELCOMEFINISHPAGE_BITMAP "..\assets\InstallerImage.bmp"
|
||||
!define MUI_UNWELCOMEFINISHPAGE_BITMAP "..\assets\InstallerImage.bmp"
|
||||
!include "ModernXL.nsh"
|
||||
!include "MUI2.nsh"
|
||||
!include "x64.nsh"
|
||||
!include ".\Downloader.nsh"
|
||||
|
@ -9,23 +13,33 @@
|
|||
|
||||
########################### Installer SETUP
|
||||
Name "The Sims Stories Starter Pack"
|
||||
OutFile "..\bin\Web Installer\TSStoriesStarterPack.WebInstaller-v11.exe"
|
||||
OutFile "..\bin\Web Installer\TSStoriesStarterPack-WebInstaller.x64.exe"
|
||||
RequestExecutionLevel admin
|
||||
InstallDir "$PROGRAMFILES32\The Sims Stories Starter Pack"
|
||||
SetCompressor LZMA
|
||||
ShowInstDetails show
|
||||
ManifestDPIAware True
|
||||
VIProductVersion 13.0.0.0
|
||||
VIAddVersionKey "CompanyName" "osab"
|
||||
VIAddVersionKey "FileVersion" "13.0.0"
|
||||
VIAddVersionKey "ProductName" "The Sims Stories Starter Pack"
|
||||
VIAddVersionKey "ProductVersion" "13.0"
|
||||
|
||||
########################### MUI SETUP
|
||||
brandingText "osab Web Installer v11"
|
||||
brandingText "osab Web Installer v13"
|
||||
!define MUI_ABORTWARNING
|
||||
!define MUI_INSTFILESPAGE_COLORS "FFFFFF 000000"
|
||||
!define MUI_HEADERIMAGE
|
||||
!define MUI_HEADERIMAGE_RIGHT
|
||||
!define MUI_HEADERIMAGE_BITMAP_STRETCH AspectFitHeight
|
||||
!define MUI_HEADERIMAGE_BITMAP "..\assets\header.bmp"
|
||||
!define MUI_ICON "..\assets\NewInstaller.ico"
|
||||
!define MUI_PAGE_HEADER_TEXT "TSS: Starter Pack - Web Installer"
|
||||
!define MUI_PAGE_HEADER_SUBTEXT "The Sims Stories repacked by osab!"
|
||||
!define MUI_WELCOMEPAGE_TITLE "osab's Sims Stories Starter Pack"
|
||||
!define MUI_WELCOMEPAGE_TEXT "Welcome to the Sims Stories Starter Pack Web Installer (v11). Please ensure you have downloaded the latest version from the GitHub! Helpful log messages will be shown in the 'More Details' box."
|
||||
!define MUI_WELCOMEPAGE_TEXT "Welcome to the Sims Stories Starter Pack Web Installer (v13). Please ensure you have downloaded the latest version from the GitHub! Helpful log messages will be shown in the 'More Details' box."
|
||||
!define MUI_UNCONFIRMPAGE_TEXT_TOP "WARNING: Before uninstalling, make sure the game folder you chose contains ONLY the uninstaller and game files. The game files MUST be in their own separate folder with no other essential data! I am not responsible for any data loss!"
|
||||
!define MUI_LICENSEPAGE_TEXT_TOP "License Information:"
|
||||
!define MUI_WELCOMEFINISHPAGE_BITMAP "..\assets\InstallerImage.bmp"
|
||||
!define MUI_FINISHPAGE_NOREBOOTSUPPORT
|
||||
!define MUI_FINISHPAGE_LINK "TS2 Community Discord Server!"
|
||||
!define MUI_FINISHPAGE_LINK_LOCATION "https://discord.gg/invite/ts2-community-912700195249197086"
|
||||
|
@ -48,7 +62,7 @@ Var DXVKVER
|
|||
!macro installDXVK folderName
|
||||
DetailPrint "Placing x32 d3d9.dll in TSBin..."
|
||||
SetOutPath $INSTDIR\temp
|
||||
CopyFiles "dxvk-2.1\x32\d3d9.dll" "$INSTDIR\${folderName}\TSBin\d3d9.dll"
|
||||
CopyFiles "$INSTDIR\temp\d3d9.dll" "$INSTDIR\${folderName}\TSBin\d3d9.dll"
|
||||
Pop $0
|
||||
DetailPrint "File copy result: $0"
|
||||
DetailPrint "Placing dxvk.conf in TSBin..."
|
||||
|
@ -62,11 +76,8 @@ Function .OnInit
|
|||
StrCpy $DXVKVER "2.1"
|
||||
FunctionEnd
|
||||
|
||||
Section
|
||||
WriteUninstaller "$INSTDIR\Uninstall The Sims Stories Starter Pack.exe"
|
||||
SectionEnd
|
||||
|
||||
Section "TS Life Stories Starter Pack" Section1
|
||||
SectionGroup /e "The Sims Stories Starter Pack"
|
||||
Section "The Sims Life Stories" Section1
|
||||
|
||||
SetOutPath "$INSTDIR\The Sims Life Stories"
|
||||
SetOverwrite on
|
||||
|
@ -84,7 +95,7 @@ DetailPrint "Creating Downloads folder..."
|
|||
CreateDirectory "$Documents\Electronic Arts\The Sims Life Stories\Downloads"
|
||||
SectionEnd
|
||||
|
||||
Section "TS Pet Stories Starter Pack" Section2
|
||||
Section "The Sims Pet Stories" Section2
|
||||
|
||||
SetOutPath "$INSTDIR\The Sims Pet Stories"
|
||||
SetOverwrite on
|
||||
|
@ -103,14 +114,13 @@ DetailPrint "Creating Downloads folder..."
|
|||
CreateDirectory "$Documents\Electronic Arts\The Sims Pet Stories\Downloads"
|
||||
SectionEnd
|
||||
|
||||
Section "TS Castaway Stories Starter Pack" Section3
|
||||
Section "The Sims Castaway Stories" Section3
|
||||
|
||||
SetOutPath "$INSTDIR\The Sims Castaway Stories"
|
||||
SetOverwrite on
|
||||
InitPluginsDir
|
||||
AddSize 3000000
|
||||
|
||||
CreateDirectory "$INSTDIR\temp"
|
||||
!insertmacro downloadPack "The Sims Castaway Stories" https://www.github.com/mintalien/The-Puppets-2-Definitive-Edition/releases/download/v11/SFX_CastawayStories.v11.exe SFX_CastawayStories.exe "2E519CF30E252710CBB93CA8F2EA4BE1FCD5CA0365BF999D40D434A6B657E8DA"
|
||||
|
||||
# Touchup
|
||||
|
@ -123,85 +133,32 @@ DetailPrint "Creating Downloads folder..."
|
|||
CreateDirectory "$Documents\Electronic Arts\The Sims Castaway Stories\Downloads"
|
||||
SectionEnd
|
||||
|
||||
Section
|
||||
WriteUninstaller "$INSTDIR\Uninstall The Sims Stories Starter Pack.exe"
|
||||
SectionEnd
|
||||
SectionGroupEnd
|
||||
|
||||
SectionGroup "Graphics Fixes/Tweaks"
|
||||
Section "Graphics Rules Maker" Section4
|
||||
CreateDirectory "$INSTDIR\temp"
|
||||
SetOutPath "$INSTDIR\temp"
|
||||
${If} ${RunningX64}
|
||||
inetc::get /POPUP "Downloading GRM Setup (64-bit detected)..." "https://www.simsnetwork.com/files/graphicsrulesmaker/graphicsrulesmaker-2.0.0-64bit.exe" "$INSTDIR\temp\grm_install.exe"
|
||||
DetailPrint "Downloading Graphics Rules Maker..."
|
||||
NScurl::http GET "https://raw.githubusercontent.com/voicemxil/TSStories-Starter-Pack/v13/components/graphicsrulesmaker-2.0.0-64bit.exe" "$INSTDIR\temp\grm_install.exe" /RESUME /INSIST /CANCEL /END
|
||||
Pop $0 # return value = exit code, "OK" means OK
|
||||
DetailPrint "GRM download status: $0. Executing installer..."
|
||||
${Else}
|
||||
inetc::get /POPUP "Downloading GRM Setup (32-bit detected)..." "https://www.simsnetwork.com/files/graphicsrulesmaker/graphicsrulesmaker-2.0.0-32bit.exe" "$INSTDIR\temp\grm_install.exe"
|
||||
DetailPrint "Downloading Graphics Rules Maker.."
|
||||
NScurl::http GET "https://raw.githubusercontent.com/voicemxil/TSStories-Starter-Pack/v13/components/graphicsrulesmaker-2.0.0-32bit.exe" "$INSTDIR\temp\grm_install.exe" /RESUME /INSIST /CANCEL /END
|
||||
Pop $0 # return value = exit code, "OK" means OK
|
||||
DetailPrint "GRM download status: $0. Executing installer..."
|
||||
${EndIf}
|
||||
Execwait $INSTDIR\temp\grm_install.exe
|
||||
Delete $INSTDIR\temp\grm_install.exe
|
||||
SetOutPath $INSTDIR
|
||||
RMDir /r $INSTDIR\temp
|
||||
Pop $0
|
||||
DetailPrint "Cleanup result: $0"
|
||||
Execwait $INSTDIR\temp\grm_install.exe
|
||||
Delete $INSTDIR\temp\grm_install.exe
|
||||
SectionEnd
|
||||
|
||||
Section /o "DXVK" Section5
|
||||
CreateDirectory "$INSTDIR\temp"
|
||||
SetOutPath $INSTDIR\temp
|
||||
inetc::get /POPUP "Preparing Vulkan Test..." "https://github.com/skeeto/vulkan-test/releases/download/1.0.2/vulkan_test.exe" "vulkan_test.exe"
|
||||
ExecWait "$INSTDIR\temp\vulkan_test.exe"
|
||||
Delete "$INSTDIR\temp\vulkan_test.exe"
|
||||
MessageBox MB_YESNO "DXVK requires Vulkan support. If the message box said it successfully created a Vulkan instance, click Yes. Otherwise, click NO." IDYES true IDNO false
|
||||
true:
|
||||
DetailPrint "Downloading DXVK $DXVKVER ..."
|
||||
inetc::get /POPUP "Downloading DXVK..." "https://github.com/doitsujin/dxvk/releases/download/v2.1/dxvk-2.1.tar.gz" "$INSTDIR\temp\dxvk.tar.gz"
|
||||
Pop $0 # return value = exit code, "OK" means OK
|
||||
DetailPrint "DXVK download status: $0. Extracting..."
|
||||
|
||||
inetc::get /POPUP "Downloading DXVK.conf..." "https://raw.githubusercontent.com/doitsujin/dxvk/v2.1/dxvk.conf" "$INSTDIR\temp\dxvk.conf"
|
||||
Pop $0
|
||||
DetailPrint "DXVK.conf download status: $0."
|
||||
|
||||
untgz::extract -h -u -d "$INSTDIR\temp" -zgz "$INSTDIR\temp\dxvk.tar.gz"
|
||||
Pop $0
|
||||
DetailPrint "DXVK extraction status: $0. Deleting archive..."
|
||||
Delete "$INSTDIR\temp\dxvk.tar.gz"
|
||||
Pop $0
|
||||
DetailPrint "Cleanup result: $0"
|
||||
${If} ${SectionIsSelected} ${Section1}
|
||||
!insertmacro installDXVK "The Sims Life Stories"
|
||||
${EndIf}
|
||||
${If} ${SectionIsSelected} ${Section2}
|
||||
!insertmacro installDXVK "The Sims Pet Stories"
|
||||
${EndIf}
|
||||
${If} ${SectionIsSelected} ${Section3}
|
||||
!insertmacro installDXVK "The Sims Castaway Stories"
|
||||
${EndIf}
|
||||
RMDir /r "$INSTDIR\temp\dxvk-2.1"
|
||||
SetOutPath $INSTDIR
|
||||
RMDir /r "$INSTDIR\temp"
|
||||
Pop $0
|
||||
DetailPrint "Cleanup result: $0"
|
||||
false:
|
||||
DetailPrint "Vulkan is unsupported, DXVK will be skipped."
|
||||
next:
|
||||
DetailPrint "DXVK section complete."
|
||||
RMDir /r "$INSTDIR\temp"
|
||||
SectionEnd
|
||||
|
||||
Section "Visual C++ Redist" Section6
|
||||
CreateDirectory "$INSTDIR\temp"
|
||||
inetc::get /POPUP "Downloading VC Redist..." "https://aka.ms/vs/17/release/vc_redist.x86.exe" "temp\vc_redist.x86.exe"
|
||||
Pop $0
|
||||
DetailPrint "VC Redist download status: $0"
|
||||
ExecWait "$INSTDIR\temp\vc_redist.x86.exe /q /norestart"
|
||||
Delete "$INSTDIR\temp\vc_redist.x86.exe"
|
||||
RMDir /r "$INSTDIR\temp"
|
||||
Pop $0
|
||||
DetailPrint "Cleanup result: $0"
|
||||
SectionEnd
|
||||
|
||||
|
||||
Section "Sim Shadow Fix" Section7
|
||||
Section "Sim Shadow Fix" Section5
|
||||
SetOutPath "$INSTDIR\temp"
|
||||
inetc::get /POPUP "Downloading SimNopke's Shadow Fix" "https://github.com/voicemxil/TSStories-Starter-Pack/raw/v11/components/simNopke-simShadowFix0.3reallyNotMisty.package" "simNopke-simShadowFix0.3reallyNotMisty.package"
|
||||
NScurl::http GET "https://github.com/voicemxil/TSStories-Starter-Pack/raw/v13/components/simNopke-simShadowFix0.3reallyNotMisty.package" "simNopke-simShadowFix0.3reallyNotMisty.package" /RESUME /INSIST /CANCEL /END
|
||||
Pop $0
|
||||
DetailPrint "Shadow Fix download status: $0"
|
||||
${If} ${SectionIsSelected} ${Section1}
|
||||
|
@ -218,8 +175,57 @@ Section "Sim Shadow Fix" Section7
|
|||
RMDir "$INSTDIR\temp"
|
||||
SectionEnd
|
||||
|
||||
Section /o "DXVK" Section6
|
||||
CreateDirectory "$INSTDIR\temp"
|
||||
SetOutPath $INSTDIR\temp
|
||||
NScurl::http GET "https://github.com/skeeto/vulkan-test/releases/download/1.0.2/vulkan_test.exe" "vulkan_test.exe" /RESUME /INSIST /CANCEL /END
|
||||
ExecWait "$INSTDIR\temp\vulkan_test.exe"
|
||||
Delete "$INSTDIR\temp\vulkan_test.exe"
|
||||
MessageBox MB_YESNO "DXVK requires Vulkan support. If the message box said it successfully created a Vulkan instance, click Yes. Otherwise, click NO." IDYES true IDNO false
|
||||
true:
|
||||
DetailPrint "Downloading DXVK $DXVKVER ..."
|
||||
NScurl::http GET "https://raw.githubusercontent.com/voicemxil/TSStories-Starter-Pack/v13/components/d3d9.dll" "$INSTDIR\temp\d3d9.dll" /RESUME /INSIST /CANCEL /END
|
||||
Pop $0 # return value = exit code, "OK" means OK
|
||||
DetailPrint "DXVK download status: $0."
|
||||
NScurl::http GET "https://raw.githubusercontent.com/doitsujin/dxvk/v2.1/dxvk.conf" "$INSTDIR\temp\dxvk.conf" /RESUME /INSIST /CANCEL /END
|
||||
Pop $0
|
||||
DetailPrint "DXVK.conf download status: $0."
|
||||
${If} ${SectionIsSelected} ${Section1}
|
||||
!insertmacro installDXVK "The Sims Life Stories"
|
||||
${EndIf}
|
||||
${If} ${SectionIsSelected} ${Section2}
|
||||
!insertmacro installDXVK "The Sims Pet Stories"
|
||||
${EndIf}
|
||||
${If} ${SectionIsSelected} ${Section3}
|
||||
!insertmacro installDXVK "The Sims Castaway Stories"
|
||||
${EndIf}
|
||||
Delete "$INSTDIR\temp\d3d9.dll"
|
||||
SetOutPath $INSTDIR
|
||||
RMDir /r "$INSTDIR\temp"
|
||||
Pop $0
|
||||
DetailPrint "Cleanup result: $0"
|
||||
false:
|
||||
DetailPrint "Vulkan is unsupported, DXVK will be skipped."
|
||||
next:
|
||||
DetailPrint "DXVK section complete."
|
||||
RMDir /r "$INSTDIR\temp"
|
||||
SectionEnd
|
||||
SectionGroupEnd
|
||||
|
||||
Section "Visual C++ Redist" Section7
|
||||
CreateDirectory "$INSTDIR\temp"
|
||||
NScurl::http GET "https://aka.ms/vs/17/release/vc_redist.x86.exe" "temp\vc_redist.x86.exe" /RESUME /INSIST /CANCEL /END
|
||||
Pop $0
|
||||
DetailPrint "VC Redist download status: $0"
|
||||
ExecWait "$INSTDIR\temp\vc_redist.x86.exe /q /norestart"
|
||||
Delete "$INSTDIR\temp\vc_redist.x86.exe"
|
||||
RMDir /r "$INSTDIR\temp"
|
||||
Pop $0
|
||||
DetailPrint "Cleanup result: $0"
|
||||
SectionEnd
|
||||
|
||||
Section "Start Menu/Desktop Shortcuts" Section8
|
||||
SetShellVarContext current
|
||||
SetShellVarContext all
|
||||
${If} ${SectionIsSelected} ${Section1}
|
||||
CreateDirectory '$SMPROGRAMS\The Sims Stories Starter Pack\'
|
||||
CreateShortCut '$SMPROGRAMS\The Sims Stories Starter Pack\The Sims Life Stories.lnk' '$INSTDIR\The Sims Life Stories\TSBin\SimsLS.exe' "" '$INSTDIR\The Sims Life Stories\TSBin\SimsLS.exe' 0
|
||||
|
@ -286,9 +292,9 @@ SectionEnd
|
|||
!insertmacro MUI_DESCRIPTION_TEXT ${Section2} "The Sims Pet Stories"
|
||||
!insertmacro MUI_DESCRIPTION_TEXT ${Section3} "The Sims Castaway Stories"
|
||||
!insertmacro MUI_DESCRIPTION_TEXT ${Section4} "Installs Graphics Rules Maker 2.0.0."
|
||||
!insertmacro MUI_DESCRIPTION_TEXT ${Section5} "Installs DXVK $DXVKVER. (Not recommended for beginners.)"
|
||||
!insertmacro MUI_DESCRIPTION_TEXT ${Section6} "Installs Visual C++ Redist (x86) if not already installed."
|
||||
!insertmacro MUI_DESCRIPTION_TEXT ${Section7} "Installs SimNopke's Sim Shadow Fix to your downloads folder. *Don't Use With DXVK*."
|
||||
!insertmacro MUI_DESCRIPTION_TEXT ${Section5} "Installs SimNopke's Sim Shadow Fix to your downloads folder. *Don't Use With DXVK*."
|
||||
!insertmacro MUI_DESCRIPTION_TEXT ${Section6} "Installs DXVK $DXVKVER. (Not recommended for beginners.)"
|
||||
!insertmacro MUI_DESCRIPTION_TEXT ${Section7} "Installs Visual C++ Redist (x86) if not already installed."
|
||||
!insertmacro MUI_DESCRIPTION_TEXT ${Section8} "Create a shortuct to launch the game in your Start Menu/Desktop."
|
||||
|
||||
!insertmacro MUI_FUNCTION_DESCRIPTION_END
|
||||
|
|
Loading…
Reference in a new issue