Ship the native app window and start from Luminary.exe

A tester saw Edge open and start syncing his Microsoft account; the bundle
carried no WebView2 host, so the launcher fell back to Edge's app mode. The
window host is now built and shipped, the fallback prefers Chrome over Edge, and
the installer's Start Luminary, shortcuts and start-at-login use Luminary.exe so
they no longer depend on Windows Script Host, which policy can disable.
This commit is contained in:
2026-12-01 13:04:37 +00:00
parent 9aff70bd63
commit a4aa43461f
6 changed files with 65 additions and 44 deletions
+17 -17
View File
@@ -81,11 +81,19 @@ VIAddVersionKey "LegalCopyright" "MIT licensed"
!define MUI_FINISHPAGE_SHOWREADME_TEXT "Show the Windows readme"
!define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
!if /FileExists "${SOURCE_DIR}/Luminary.vbs"
!define MUI_FINISHPAGE_RUN "$INSTDIR\Luminary.vbs"
; The native launcher first: it needs no Windows Script Host (which group
; policy can disable, leaving "Start Luminary" doing nothing) and opens no
; console. The .vbs, then the .cmd, are only fallbacks for old bundles.
!if /FileExists "${SOURCE_DIR}/Luminary.exe"
!define APP_LAUNCH "$INSTDIR\Luminary.exe"
!else
!define MUI_FINISHPAGE_RUN "$INSTDIR\Luminary.cmd"
!if /FileExists "${SOURCE_DIR}/Luminary.vbs"
!define APP_LAUNCH "$INSTDIR\Luminary.vbs"
!else
!define APP_LAUNCH "$INSTDIR\Luminary.cmd"
!endif
!endif
!define MUI_FINISHPAGE_RUN "${APP_LAUNCH}"
!define MUI_FINISHPAGE_RUN_TEXT "Start ${APP_NAME}"
!insertmacro MUI_PAGE_WELCOME
@@ -143,12 +151,12 @@ Section "Luminary (required)" SEC_MAIN
WriteUninstaller "$INSTDIR\Uninstall.exe"
CreateDirectory "$SMPROGRAMS\Luminary"
!if /FileExists "${SOURCE_DIR}/Luminary.vbs"
CreateShortCut "$SMPROGRAMS\Luminary\Luminary.lnk" "$INSTDIR\Luminary.vbs" "" "$INSTDIR\Luminary.ico" 0
CreateShortCut "$SMPROGRAMS\Luminary\Luminary.lnk" "${APP_LAUNCH}" "" "$INSTDIR\Luminary.ico" 0
!if /FileExists "${SOURCE_DIR}/Luminary.exe"
CreateShortCut "$SMPROGRAMS\Luminary\Stop Luminary.lnk" "$INSTDIR\Luminary.exe" "-Stop" "$INSTDIR\Luminary.ico" 0
!else
CreateShortCut "$SMPROGRAMS\Luminary\Luminary.lnk" "$INSTDIR\Luminary.cmd" "" "$INSTDIR\Luminary.ico" 0
CreateShortCut "$SMPROGRAMS\Luminary\Stop Luminary.lnk" "$INSTDIR\Stop Luminary.cmd" "" "$INSTDIR\Luminary.ico" 0
!endif
CreateShortCut "$SMPROGRAMS\Luminary\Stop Luminary.lnk" "$INSTDIR\Stop Luminary.cmd" "" "$INSTDIR\Luminary.ico" 0
CreateShortCut "$SMPROGRAMS\Luminary\Luminary data folder.lnk" "$LOCALAPPDATA\Luminary\data" "" "$INSTDIR\Luminary.ico" 0
WriteRegStr HKCU "${APP_KEY}" "InstallDir" "$INSTDIR"
@@ -168,19 +176,11 @@ Section "Luminary (required)" SEC_MAIN
SectionEnd
Section "Desktop shortcut" SEC_DESKTOP
!if /FileExists "${SOURCE_DIR}/Luminary.vbs"
CreateShortCut "$DESKTOP\Luminary.lnk" "$INSTDIR\Luminary.vbs" "" "$INSTDIR\Luminary.ico" 0
!else
CreateShortCut "$DESKTOP\Luminary.lnk" "$INSTDIR\Luminary.cmd" "" "$INSTDIR\Luminary.ico" 0
!endif
CreateShortCut "$DESKTOP\Luminary.lnk" "${APP_LAUNCH}" "" "$INSTDIR\Luminary.ico" 0
SectionEnd
Section "Start Luminary when I sign in" SEC_STARTUP
!if /FileExists "${SOURCE_DIR}/Luminary.vbs"
WriteRegStr HKCU "${RUN_KEY}" "Luminary" '"$INSTDIR\Luminary.vbs"'
!else
WriteRegStr HKCU "${RUN_KEY}" "Luminary" '"$INSTDIR\Luminary.cmd"'
!endif
WriteRegStr HKCU "${RUN_KEY}" "Luminary" '"${APP_LAUNCH}"'
SectionEnd
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN