fix(installer): enhance installation logging and user feedback during setup (#661)
This commit is contained in:
@@ -7,7 +7,17 @@
|
|||||||
!include "nsProcess.nsh"
|
!include "nsProcess.nsh"
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
|
!macro customHeader
|
||||||
|
; Show install details by default so users can see what stage is running.
|
||||||
|
ShowInstDetails show
|
||||||
|
ShowUninstDetails show
|
||||||
|
!macroend
|
||||||
|
|
||||||
!macro customCheckAppRunning
|
!macro customCheckAppRunning
|
||||||
|
; Make stage logs visible on assisted installers (defaults to hidden).
|
||||||
|
SetDetailsPrint both
|
||||||
|
DetailPrint "Preparing installation..."
|
||||||
|
DetailPrint "Extracting ClawX runtime files. This can take a few minutes on slower disks or while antivirus scanning is active."
|
||||||
|
|
||||||
${nsProcess::FindProcess} "${APP_EXECUTABLE_FILENAME}" $R0
|
${nsProcess::FindProcess} "${APP_EXECUTABLE_FILENAME}" $R0
|
||||||
|
|
||||||
@@ -66,14 +76,18 @@
|
|||||||
!macroend
|
!macroend
|
||||||
|
|
||||||
!macro customInstall
|
!macro customInstall
|
||||||
|
DetailPrint "Core files extracted. Finalizing system integration..."
|
||||||
|
|
||||||
; Enable Windows long path support (Windows 10 1607+ / Windows 11).
|
; Enable Windows long path support (Windows 10 1607+ / Windows 11).
|
||||||
; pnpm virtual store paths can exceed the default MAX_PATH limit of 260 chars.
|
; pnpm virtual store paths can exceed the default MAX_PATH limit of 260 chars.
|
||||||
; Writing to HKLM requires admin privileges; on per-user installs without
|
; Writing to HKLM requires admin privileges; on per-user installs without
|
||||||
; elevation this call silently fails — no crash, just no key written.
|
; elevation this call silently fails — no crash, just no key written.
|
||||||
|
DetailPrint "Enabling long-path support (if permissions allow)..."
|
||||||
WriteRegDWORD HKLM "SYSTEM\CurrentControlSet\Control\FileSystem" "LongPathsEnabled" 1
|
WriteRegDWORD HKLM "SYSTEM\CurrentControlSet\Control\FileSystem" "LongPathsEnabled" 1
|
||||||
|
|
||||||
; Use PowerShell to update the current user's PATH.
|
; Use PowerShell to update the current user's PATH.
|
||||||
; This avoids NSIS string-buffer limits and preserves long PATH values.
|
; This avoids NSIS string-buffer limits and preserves long PATH values.
|
||||||
|
DetailPrint "Updating user PATH for the OpenClaw CLI..."
|
||||||
InitPluginsDir
|
InitPluginsDir
|
||||||
ClearErrors
|
ClearErrors
|
||||||
File "/oname=$PLUGINSDIR\update-user-path.ps1" "${PROJECT_DIR}\resources\cli\win32\update-user-path.ps1"
|
File "/oname=$PLUGINSDIR\update-user-path.ps1" "${PROJECT_DIR}\resources\cli\win32\update-user-path.ps1"
|
||||||
@@ -89,6 +103,7 @@
|
|||||||
DetailPrint "Warning: PowerShell PATH update exited with code $0."
|
DetailPrint "Warning: PowerShell PATH update exited with code $0."
|
||||||
|
|
||||||
_ci_done:
|
_ci_done:
|
||||||
|
DetailPrint "Installation steps complete."
|
||||||
!macroend
|
!macroend
|
||||||
|
|
||||||
!macro customUnInstall
|
!macro customUnInstall
|
||||||
@@ -199,4 +214,3 @@
|
|||||||
_cu_enumDone:
|
_cu_enumDone:
|
||||||
_cu_skipRemove:
|
_cu_skipRemove:
|
||||||
!macroend
|
!macroend
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user