another attempt with nsis..

This commit is contained in:
DJ2LS 2024-01-31 10:19:07 +01:00
parent d06cdd5649
commit 718ffd5ee7
2 changed files with 7 additions and 2 deletions

View file

@ -31,7 +31,7 @@ jobs:
uses: joncloud/makensis-action@v4 uses: joncloud/makensis-action@v4
with: with:
script-file: "freedata-server-nsis-config.nsi" script-file: "freedata-server-nsis-config.nsi"
arguments: "/V3" arguments: '/DGITHUB_WORKSPACE="${{ $GITHUB_WORKSPACE }}" /V3'
- name: LIST ALL FILES - name: LIST ALL FILES
run: ls -R run: ls -R

View file

@ -15,13 +15,18 @@ ShowInstDetails show
; Show uninstallation details ; Show uninstallation details
ShowUninstDetails show ShowUninstDetails show
; Define GITHUB location
!define GITHUB_WORKSPACE
Section "MainSection" SEC01 Section "MainSection" SEC01
; Set the output path to the installation directory ; Set the output path to the installation directory
SetOutPath $INSTDIR SetOutPath $INSTDIR
; Add the entire FreeData Server directory ; Add the entire FreeData Server directory
File /r "server.dist/*.*" File /r ""${GITHUB_WORKSPACE}\modem\server.dist\*.*"
; Write the installation path to the registry ; Write the installation path to the registry
WriteRegStr HKCU "Software\FreeDataServer" "Install_Dir" "$INSTDIR" WriteRegStr HKCU "Software\FreeDataServer" "Install_Dir" "$INSTDIR"