Some checks failed
farmcontrol/farmcontrol-server/pipeline/head There was a failure building this commit
- Updated farmcontrol-server.nsi to simplify setup file handling by defining APP_SOURCE_DIR and removing unnecessary variables. - Modified installer.nsh to reference the correct launcher executable path. - Refactored build-windows-nsis.ps1 to accept APP_DIR instead of individual setup file parameters, streamlining the build process. - Introduced expand-windows-installer.mjs for handling decompression and extraction of Windows app archives, improving artifact management. - Enhanced finalize-desktop-artifacts.mjs to integrate the new expansion process and ensure proper cleanup of temporary files.
15 lines
608 B
NSIS
15 lines
608 B
NSIS
!macro customInstall
|
|
DetailPrint "Register farmcontrolserver URI Handler"
|
|
DeleteRegKey HKCR "farmcontrolserver"
|
|
WriteRegStr HKCR "farmcontrolserver" "" "URL:farmcontrolserver"
|
|
WriteRegStr HKCR "farmcontrolserver" "URL Protocol" ""
|
|
WriteRegStr HKCR "farmcontrolserver\DefaultIcon" "" "$INSTDIR\bin\launcher.exe"
|
|
WriteRegStr HKCR "farmcontrolserver\shell" "" ""
|
|
WriteRegStr HKCR "farmcontrolserver\shell\Open" "" ""
|
|
WriteRegStr HKCR "farmcontrolserver\shell\Open\command" "" '"$INSTDIR\bin\launcher.exe" "%1"'
|
|
!macroend
|
|
|
|
!macro customUnInstall
|
|
DeleteRegKey HKCR "farmcontrolserver"
|
|
!macroend
|