fix(setup): handle install-folder services, startup entries, shared shortcuts and data
- Windows services whose program lies in the install folder (Titano.Server --install-service) are found in the registry and, through the Service Control Manager, stopped before files are replaced (they join the "programs running" prompt), started again after an upgrade that stopped them, deleted when an upgrade drops their program and on uninstall. An unelevated setup runs that step in an elevated copy (/SERVICES=...). - The Server component installs for all users only (manifest allUsersOnly): choosing it moves a new install to Program Files and disables "Just me" with the reason; a per-user install cannot take it. - Uninstall removes every HKCU Run value that starts a program in the folder (the Uploader's "Start with Windows"). - A shortcut that already starts an existing program elsewhere is neither retargeted nor logged, and a logged shortcut is deleted only while it still starts a program of this folder, so the two products no longer remove each other's "Titano Uploader" shortcuts. - "Remove my data" lists and deletes only the data of this product's programs that no other installed Titano product uses (the desktop app and the Uploader share %LOCALAPPDATA%\Titano and its logs folder). - The .titano file type is named in setup's language (Setup.FileType.*). Setup tests run in Titano.App.Tests on Windows CI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
32 files changed
+1175
-88
No files matched your search
@@ -31,6 +31,7 @@
|
||||
<data name="Setup.Field.Language" xml:space="preserve"><value>Language</value></data>
|
||||
<data name="Setup.Field.Options" xml:space="preserve"><value>Options</value></data>
|
||||
<data name="Setup.Field.Scope" xml:space="preserve"><value>Install for</value></data>
|
||||
<data name="Setup.FileType.Project" xml:space="preserve"><value>Titano project</value></data>
|
||||
<data name="Setup.Folder.Browse" xml:space="preserve"><value>Browse</value></data>
|
||||
<data name="Setup.Header.Upgrade" xml:space="preserve"><value>Version {0} · installed {1}</value></data>
|
||||
<data name="Setup.Header.Version" xml:space="preserve"><value>Version {0}</value></data>
|
||||
|
||||
@@ -560,6 +560,7 @@
|
||||
<data name="Tooltips.Settings.ThumbnailMemory" xml:space="preserve"><value>Decoded thumbnails kept in memory; more scrolls faster and uses more RAM · Enter applies</value></data>
|
||||
<data name="Tooltips.Settings.UsageCounts" xml:space="preserve"><value>Send a daily anonymous count of versions and languages in use; nothing else, off by default</value></data>
|
||||
<data name="Tooltips.Setup.AllUsers" xml:space="preserve"><value>Install in Program Files for every account · asks for administrator approval</value></data>
|
||||
<data name="Tooltips.Setup.AllUsersOnly" xml:space="preserve"><value>{0} · it runs as a Windows service, so it installs for all users in Program Files</value></data>
|
||||
<data name="Tooltips.Setup.Back" xml:space="preserve"><value>Return to the options without changing anything</value></data>
|
||||
<data name="Tooltips.Setup.Browse" xml:space="preserve"><value>Choose the installation folder</value></data>
|
||||
<data name="Tooltips.Setup.Cancel" xml:space="preserve"><value>Close setup without changing anything</value></data>
|
||||
@@ -575,12 +576,16 @@
|
||||
<data name="Tooltips.Setup.Install" xml:space="preserve"><value>Copy the selected programs and register them with Windows</value></data>
|
||||
<data name="Tooltips.Setup.Installed" xml:space="preserve"><value>Folder of the installed programs</value></data>
|
||||
<data name="Tooltips.Setup.JustMe" xml:space="preserve"><value>Install in your user folder · no administrator rights needed</value></data>
|
||||
<data name="Tooltips.Setup.JustMeLocked" xml:space="preserve"><value>{0} runs as a Windows service, so it installs for all users only</value></data>
|
||||
<data name="Tooltips.Setup.Language" xml:space="preserve"><value>Language of this setup</value></data>
|
||||
<data name="Tooltips.Setup.Launch" xml:space="preserve"><value>Open the program when setup finishes</value></data>
|
||||
<data name="Tooltips.Setup.LaunchNow" xml:space="preserve"><value>Open the installed program</value></data>
|
||||
<data name="Tooltips.Setup.Locked" xml:space="preserve"><value>Already installed here · uninstall it first to change folder or scope</value></data>
|
||||
<data name="Tooltips.Setup.NeedsAllUsers" xml:space="preserve"><value>Runs as a Windows service, so it installs for all users only · this copy is installed for you alone; uninstall it first to add it</value></data>
|
||||
<data name="Tooltips.Setup.NoComponent" xml:space="preserve"><value>Select at least one program to install</value></data>
|
||||
<data name="Tooltips.Setup.RemoveData" xml:space="preserve"><value>Also delete %LOCALAPPDATA%\Titano: database, backups, cache, settings, logs, the uploader queue and sign-in · photos in archives are kept</value></data>
|
||||
<data name="Tooltips.Setup.RemoveDataTitano" xml:space="preserve"><value>Also delete Titano’s database, backups, cache, settings and logs in %LOCALAPPDATA%\Titano · the Uploader’s files and photos in archives are kept</value></data>
|
||||
<data name="Tooltips.Setup.RemoveDataUploader" xml:space="preserve"><value>Also delete the Uploader’s queue, settings, sign-in and logs in %LOCALAPPDATA%\Titano · Titano’s files and photos in archives are kept</value></data>
|
||||
<data name="Tooltips.Setup.Retry" xml:space="preserve"><value>Run the same step again</value></data>
|
||||
<data name="Tooltips.Setup.StartMenu" xml:space="preserve"><value>Add the programs to the Start menu</value></data>
|
||||
<data name="Tooltips.Setup.Uninstall" xml:space="preserve"><value>Remove programs, shortcuts and file types · your data is kept unless selected</value></data>
|
||||
|
||||
Reference in new issue
Block a user