BUGFIX: fix several issues with the Windows installer

- fix Start Menu shortcut putting `--default-profile` flag in the wrong position, causing it to print the help message and exit instead of starting
- fix "current user only" installation trying to install a desktop shortcut on the Public desktop instead of the user's
This commit is contained in:
Alessio 2025-01-12 20:07:51 -08:00
parent d7a8ee6013
commit 355e1cec3b

View File

@ -28,9 +28,9 @@ Source: "{#EXE_PATH}"; DestDir: "{app}"; Flags: recursesubdirs
[Icons] [Icons]
Name: "{group}\{#NAME}"; Filename: "{app}\{#EXE_NAME}"; WorkingDir: "{commondocs}"; Tasks: createstartmenushortcut; Parameters: "webserver --auto-open --default-profile" Name: "{group}\{#NAME}"; Filename: "{app}\{#EXE_NAME}"; WorkingDir: "{autodocs}"; Tasks: createstartmenushortcut; Parameters: "--default-profile webserver --auto-open"
Name: "{group}\Uninstall {#NAME}"; Filename: "{uninstallexe}"; Tasks: createstartmenushortcut Name: "{group}\Uninstall {#NAME}"; Filename: "{uninstallexe}"; Tasks: createstartmenushortcut
Name: "{commondesktop}\{#NAME}"; Filename: "{app}\{#EXE_NAME}"; WorkingDir: "{commondocs}"; Tasks: createdesktopshortcut; Parameters: "webserver --auto-open --default-profile" Name: "{autodesktop}\{#NAME}"; Filename: "{app}\{#EXE_NAME}"; WorkingDir: "{autodocs}"; Tasks: createdesktopshortcut; Parameters: "--default-profile webserver --auto-open"
; [Registry] ; [Registry]
; Root: HKCU; Subkey: "Environment"; ValueType: string; ValueName: "Path"; ValueData: "{olddata};{app}"; ; Root: HKCU; Subkey: "Environment"; ValueType: string; ValueName: "Path"; ValueData: "{olddata};{app}";