Add Explorer .cmd launchers and always-on desktop First-time setup shortcuts.

Server 2012 Start Menu often hides PowerShell .lnk entries; .cmd targets are visible.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-10-07 11:03:38 +08:00
parent 41ab4921a0
commit ca97a2a597
8 changed files with 48 additions and 13 deletions

View file

@ -50,9 +50,10 @@ function Ensure-NetxEnv {
& powershell.exe -NoProfile -ExecutionPolicy Bypass -File $setup `
-ProgramRoot $prog -DataRoot $data -NonInteractive -DbMode bundled
if ($LASTEXITCODE -ne 0 -or -not (Test-Path $envPath)) {
$cmd = Join-Path $prog "NetX-FirstRun.cmd"
throw (T `
"First-time setup failed. Run Start Menu → NetX → First-time setup.`nLog: $log" `
"首次配置失败。请运行「开始菜单 → NetX → First-time setup」。`n日志: $log")
"First-time setup failed.`nDouble-click: $cmd`nOr: Start Menu → All Programs → NetX → First-time setup`nLog: $log" `
"首次配置失败。`n请双击: $cmd`n或: 开始菜单 → 所有程序 → NetX → First-time setup`n日志: $log")
}
}