From 0502ff9ae298a40ceacc1996027b4ca4dcc84f4d Mon Sep 17 00:00:00 2001 From: Fiery Imp Date: Mon, 21 Apr 2025 11:08:20 -0400 Subject: [PATCH] Better management for hakf/tlk archive --- Pages/page_download_files.nsi | 10 ++++++---- Pages/page_game_selection.nsi | 2 +- main.nsi | 2 ++ readme.md | 5 +++++ 4 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 readme.md diff --git a/Pages/page_download_files.nsi b/Pages/page_download_files.nsi index 058e016..771b8bd 100644 --- a/Pages/page_download_files.nsi +++ b/Pages/page_download_files.nsi @@ -3,12 +3,14 @@ Function Page_DownloadContent Pop $0 +IfFileExists "$EXEDIR\sinfar_all_files_v30.7z" skip_hak_download - ; inetc::get /CAPTION "Downloading Sinfar custom content" /POPUP "Sinfar v30 Files" /QUESTION "" "https://sinfar.net/haks/sinfar_all_files_v30.7z" "$INSTPATH\sinfarFiles.7z" - ; Pop $0 - ; StrCmp $0 "OK" +2 - ; Goto download_failed + inetc::get /CAPTION "Downloading Sinfar custom content" /POPUP "Sinfar v30 Files" /QUESTION "" "https://sinfar.net/haks/sinfar_all_files_v30.7z" "$EXEDIR\sinfar_all_files_v30.7z" + Pop $0 + StrCmp $0 "OK" +2 + Goto download_failed +skip_hak_download: StrCmp $INSTALL_TYPE "diamond" diamond_download ee_download diff --git a/Pages/page_game_selection.nsi b/Pages/page_game_selection.nsi index b29c3f5..7a01f92 100644 --- a/Pages/page_game_selection.nsi +++ b/Pages/page_game_selection.nsi @@ -1,7 +1,7 @@ !include "nsDialogs.nsh" Var InstallTypeRadio_NWNDIAMOND -Var InstallTypeRadio_NWNEE +;Var InstallTypeRadio_NWNEE Function Page_GameSelection nsDialogs::Create 1018 diff --git a/main.nsi b/main.nsi index 1ad8159..ca9b3f8 100644 --- a/main.nsi +++ b/main.nsi @@ -1,3 +1,5 @@ +!define ARCH "x64" + ;!include "MUI2.nsh" !include "nsDialogs.nsh" !include "LogicLib.nsh" diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..e313108 --- /dev/null +++ b/readme.md @@ -0,0 +1,5 @@ +Requires + +https://github.com/DigitalMediaServer/NSIS-INetC-plugin/releases + +And nsis7z \ No newline at end of file