fix(installer): the driver's failure reason reads as Korean, not garbled text
The app writes the reason in UTF-8; FileRead took it for the system's ANSI code page, so a declined driver install showed mojibake in the message box and in the details. Read the file's bytes and convert them from UTF-8, for the install and the uninstall message alike. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -730,7 +730,8 @@ come with the first-run wizard into the data folder, which the installer never t
|
||||
- Components: Jarvis (always), start menu shortcut (on), desktop shortcut (off), the virtual
|
||||
monitor's driver (on, so it comes with the app; the app's elevated half, `jarvis.exe
|
||||
--display-driver install`, so Windows asks the SignPath question once; a failure says it can be
|
||||
installed later from the features screen and the app is installed all the same; never in a
|
||||
installed later from the features screen, with the reason the app wrote (UTF-8), and the app is
|
||||
installed all the same; never in a
|
||||
silent install, so an update neither asks nor brings back a driver the person removed).
|
||||
Shortcuts are for every user of the PC.
|
||||
- The WebView2 runtime is installed with Microsoft's bootstrapper (inside the installer) only when
|
||||
@@ -834,7 +835,9 @@ detection off) and its settings. A removal forgets the driver only when no devic
|
||||
is gone or was not in the store; a failed install forgets it only under the same rule (and never
|
||||
when it was ours before), reporting both reasons otherwise; a leftover offers removal; driver tasks refused while the services start, and a start (and a
|
||||
second task) refused while one runs, also after it failed; removing a driver that is not ours says
|
||||
there is nothing to remove. The installer (by hand on a Windows VM): installing into a folder that
|
||||
there is nothing to remove. The installer (by hand on a Windows VM): with the default components the
|
||||
driver is installed (Windows' question answered yes), and answered no the app is installed all the
|
||||
same and the message gives the reason in readable Korean; installing into a folder that
|
||||
holds other files and uninstalling keeps them; a driver removal that fails stops the uninstall with
|
||||
the files and entry kept, and nothing to remove lets it finish; with no WebView2 and its installer
|
||||
failing nothing is installed or started; an update end to end (0.1.0 installed, a release server
|
||||
|
||||
Reference in New Issue
Block a user