From c0e9da11bd95b2af8fe5578076205bc5ff21e41f Mon Sep 17 00:00:00 2001 From: Adrian Szuszkiewicz Date: Wed, 10 Apr 2024 12:18:45 +0200 Subject: [PATCH] Fix NSIS long path error (References: #99) --- .github/workflows/sub-build-windows.yml | 2 +- Templates/installer/nsis-installer.nsi | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sub-build-windows.yml b/.github/workflows/sub-build-windows.yml index 1f377135..020a9a94 100644 --- a/.github/workflows/sub-build-windows.yml +++ b/.github/workflows/sub-build-windows.yml @@ -136,7 +136,7 @@ jobs: /DPRODUCT_VERSION=${{ inputs.version }} /DPRODUCT_PUBLISHER="Prominic.NET" /DPRODUCT_WEB_SITE="/https://superhumaninstaller.com/" - /DBIN_PATH="..\..\${{ env.bin_path }}\*.*" + /DBIN_PATH="${{ env.bin_path }}\*.*" /DPRODUCT_EXE=${{ env.app_name }}.exe /DPRODUCT_INSTALLER=${{ env.app_name }}-Setup.exe /DROOT_KEY=HKCU diff --git a/Templates/installer/nsis-installer.nsi b/Templates/installer/nsis-installer.nsi index a0ea2da4..c1e65cef 100644 --- a/Templates/installer/nsis-installer.nsi +++ b/Templates/installer/nsis-installer.nsi @@ -59,6 +59,7 @@ Section "MainSection" SEC01 RMDir /r "$INSTDIR" SetOutPath "$INSTDIR" SetOverwrite ifnewer + !cd "..\..\" File /r "${BIN_PATH}" CreateDirectory "$SMPROGRAMS\${PRODUCT_NAME}" CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\${PRODUCT_NAME}.lnk" "$INSTDIR\${PRODUCT_EXE}"