mirror of https://github.com/ospab/ostp.git
Three defects the first installer build exposed. Settings could not be read or saved, "os error 5". With no config beside the executable — which is the case for every fresh install — get_config_path fell back to a bare relative "config.json", resolved against the process working directory. Launched from a Start Menu shortcut that is whatever Windows chose, frequently C:\Windows\System32. On a writable working directory the silent outcome would have been worse than the error: settings persisting somewhere unrelated and appearing to vanish. The config now lives beside the executable only where that directory actually accepts writes, and otherwise under the user's own profile, carrying an existing read-only copy across once. Writability is measured, not inferred from the path: an install onto a data drive may well be writable where Program Files is not. The installer could not register the task: "The task XML is malformed. (1,2)::ERROR: incorrect document syntax". Writing it from NSIS emitted a UTF-16 byte-order mark ahead of content whose encoding depends on whether makensis was built in Unicode mode. Replaced with the ScheduledTasks cmdlets, which take the same settings as arguments — no file, so no encoding to get wrong. Verified the invocation reaches Register-ScheduledTask and fails only on "Access is denied" when unelevated, which is exactly what the elevated installer supplies. That command is delimited with backticks, NSIS's third quote character. As a single-quoted string it would have ended at PowerShell's first quote. "Copy failed" on wintun.dll: CopyFiles takes a destination directory, and it was given a file path. It is also guarded now, so a missing resource says so instead of failing mutely. Finally, per request, the app no longer registers the task itself — that is the installer's job alone. Without a task it goes straight to the direct elevated launch, which prompts per connect as it always did, rather than spending a prompt on a registration attempt and then another on the launch. |
||
|---|---|---|
| .. | ||
| capabilities | ||
| icons | ||
| permissions | ||
| src | ||
| windows | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| build.rs | ||
| tauri.conf.json | ||
| tauri.installer.conf.json | ||