Files
2026-10-11 23:23:20 +00:00

15 lines
645 B
NSIS

; Prepare every shell component before stopping the old app. The apply helper
; then journals payload + uninstaller + shortcuts + owned HKCU values together.
!macro PrepareInstallationIntegration
CreateDirectory "$PLUGINSDIR\integration"
ClearErrors
WriteUninstaller "$PLUGINSDIR\integration\Uninstall.exe"
CreateShortcut "$PLUGINSDIR\integration\Desktop.lnk" "$INSTDIR\VPNPlus.exe" "" "$INSTDIR\assets\zonghengjia-app-v1.ico" 0
CreateShortcut "$PLUGINSDIR\integration\StartMenu.lnk" "$INSTDIR\VPNPlus.exe" "" "$INSTDIR\assets\zonghengjia-app-v1.ico" 0
${If} ${Errors}
StrCpy $0 32
${Else}
StrCpy $0 0
${EndIf}
!macroend