Files
Ncurator/build/nsis-updated-silent.nsh
hy 1eedabb914 feat: add support for language and service route preferences
- Updated ModelSource type to include 'huggingface'.
- Enhanced MODEL_SOURCE_LABELS for better clarity.
- Introduced defaultModelSource function to determine default source based on service route.
- Modified AppSettings to include language and serviceRoute.
- Created end-to-end tests for language and service route settings.
- Added unit tests for application language and service preferences.
- Updated free models test to reflect new catalog naming conventions.
- Enhanced official API tests to ensure correct handling of service regions.
- Adjusted release artifact tests to accommodate internationalization.
- Updated SQLite migration and storage tests to include new preferences.
2026-10-21 10:05:42 +08:00

25 lines
711 B
NSIS

!macro customHeader
!include "WordFunc.nsh"
!macroend
!macro preventDowngrade ROOT_KEY
ReadRegStr $R0 ${ROOT_KEY} "${UNINSTALL_REGISTRY_KEY}" "DisplayVersion"
${if} $R0 != ""
${VersionCompare} "$R0" "${VERSION}" $R1
${if} $R1 == "1"
${ifNot} ${Silent}
MessageBox mb_IconStop|mb_TopMost|mb_SetForeground "A newer version of ${PRODUCT_NAME} ($R0) is installed. Cannot install older version ${VERSION}. Please use the installed version or download the latest release."
${endIf}
Quit
${endIf}
${endIf}
!macroend
!macro customInit
!insertmacro preventDowngrade HKCU
!insertmacro preventDowngrade HKLM
${if} ${isUpdated}
SetSilent silent
${endIf}
!macroend