feat: 安装位置选到盘符根时自动追加 Starlight 子目录,避免文件散落根目录
Axolotl desktop CI / guardrails (push) Has been cancelled
Axolotl desktop CI / desktop (macos-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (ubuntu-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (windows-latest) (push) Has been cancelled
Axolotl desktop CI / website (push) Has been cancelled
Repository checks / typos (push) Has been cancelled
Repository checks / tombi (push) Has been cancelled
Rust checks / shear (push) Has been cancelled
Sync source to CNB / Sync Git ref (push) Has been cancelled
Axolotl desktop CI / guardrails (push) Has been cancelled
Axolotl desktop CI / desktop (macos-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (ubuntu-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (windows-latest) (push) Has been cancelled
Axolotl desktop CI / website (push) Has been cancelled
Repository checks / typos (push) Has been cancelled
Repository checks / tombi (push) Has been cancelled
Rust checks / shear (push) Has been cancelled
Sync source to CNB / Sync Git ref (push) Has been cancelled
This commit is contained in:
1 parent
d4554b0f4c
commit
0388e339db
1 file changed
+9
@@ -650,6 +650,15 @@ Function PageLeaveOptions
|
||||
Abort
|
||||
${EndIf}
|
||||
|
||||
; 若安装位置被选在盘符根目录(如 E:\),自动在其下创建 Starlight 子目录,
|
||||
; 避免启动器文件直接散落在根目录。用户选的具体子目录不受影响。
|
||||
${GetRoot} "$INSTDIR" $0
|
||||
StrCpy $1 "$0" -1
|
||||
${If} "$INSTDIR" == "$1"
|
||||
StrCpy $INSTDIR "$INSTDIR\Starlight"
|
||||
${NSD_SetText} $InstallDirInput $INSTDIR
|
||||
${EndIf}
|
||||
|
||||
${NSD_GetState} $DesktopShortcutCheckbox $DesktopShortcutState
|
||||
|
||||
${If} $FreshInstall <> 1
|
||||
|
||||
Reference in new issue
Block a user