Documentation · The basics
How Lang Switcher updates itself, and how to update it by hand
The program updates itself while the computer is idle, keeps your settings and, after an important update, shows the update window by the tray icon. To update by hand, run the installer from the download page over the old version.
How the program updates itself
Once a day, Lang Switcher reads a short news file from my site, and it sends nothing about your computer. When a new version comes out, the program downloads it from the same site on its own, checks my signature and installs it while the computer is idle. After an important update, a small update window appears by the tray icon once to say what’s new; you can turn it off in the settings (“Tell me about program updates”).
- Who does the work: the updater,
LangSwitcherUpdate.exe, a small file with no window next to the program. A Windows task, “Lang Switcher Update”, starts it once a day and when you sign in, and only while the computer is idle. - What it checks: the installer comes only from my site, from its
/folder. Its size and SHA-256 checksum have to match the ones in my signed news file, and the version has to be newer than yours. If anything doesn’t match, the updater installs nothing and tries again the next day.langswitcher/ files/ - While it installs, the program closes for a moment and then starts again. There’s nothing to click. If the program wasn’t running, it’s updated but stays closed.
- If the new version won’t start, the updater puts the previous one back.
- After an important update, the update window appears by the tray icon, once, at a quiet moment: when you haven’t touched the keyboard or mouse for five seconds, Windows isn’t set to Do not disturb and nothing is running full screen. It says “Lang Switcher has been updated to …”, which version you had and what’s new. There’s an “All the changes on the site” link to What’s new, a “How to use it” button that opens Layout flag in the tray, and “Got it”. The “Do not show update windows again” box turns these windows off; so does the “Tell me about program updates” switch in the settings and in the “From the author” window.
- After any update, the tray menu has a “What’s new in …” item for a week. It opens the update window if you haven’t seen it yet, and What’s new on my site otherwise.
If an update hasn’t come
If my news file has named a newer version for seven days in a row and it still isn’t installed, a “Version … is available…” item appears in the tray menu. Nothing pops up on its own: the update letter opens from that item or from “Recent letters” in the “From the author” window.
- The letter says when the version came out and that the program couldn’t install it by itself, then “What’s new in …” and the three steps of “How to update”. If this keeps happening, “Write to the author…” opens the feedback wizard.
- Until you update, the tray menu keeps the “Version … is available…” item, and the letter stays in “Recent letters”.
How to update by hand
You don’t have to wait: the latest version is always on the download page, and you can install it over the old one at any time.
- In the letter, click “Open the download page”, or open the download page yourself.
- Download
LangSwitcher-setup.exeand run it. If the browser or Windows warns you, it’s the same as the first time you installed it, and the download page explains what to do. - Click “Yes” on the UAC prompt. You don’t need to exit the program first: the installer closes it and replaces it.
- On the “Ready to Install” page, click “Install”. If the program is running, “Preparing to Install” opens next: leave “Automatically close the applications” selected and continue.
- On the last page, leave “Launch Lang Switcher” checked, and the program starts again.
What’s kept
- Your settings and exclusions. They live in
%APPDATA%\, not in the program folder, and the installer doesn’t touch that file. As the letter puts it, “Your settings are kept.”Lang_Switcher\ config.toml - Autostart. Every time the program starts, it brings the autostart entry in line with the “Start when I sign in” switch.
Going back to an older version
Older releases are on the program’s GitHub page, under Releases, and they install the same way, over the current one. An older version installed over a newer one won’t stick, though: the updater stays in place and brings back the latest version within a day. To stay on an older version, uninstall Lang Switcher first, then install the older one. An older version can read a settings file written by a newer one, but it won’t save it while it runs, so any changes you make in the older version won’t be kept. If the file has a hotkey the older version doesn’t support yet, it reads a combination as the same key without Ctrl, Alt and Shift, and a double Shift as Pause.
See also
Questions and problemson GitHub Issues ↗ or by email: send.me@panda-pishet-kod.dev