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 /langswitcher/files/ 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.
  • 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.

A letter from the authorPanda KoderA LETTER FROM THE AUTHORCould not update automaticallyavailable· you have· releasedVersioncame out on, but the program could not install it by itself.Update by hand — it takes a minute.WHAT’S NEW INHOW TO UPDATE1.Press “Open the download page”: the latest version is always there.2.Download the LangSwitcher-setup.exe file and run it.3.The installer closes the program itself, replaces it and offers to start itagain. Your settings are kept.If this keeps happening, write to the author — it helps to find the cause.The “Versionis available” entry stays in the tray menu until you update.Write to the author…CloseOpen the download page
Could not updateautomaticallyHOW TO UPDATE1.Press “Open the downloadpage”: the latest versionis always there.2.Download theLangSwitcher-setup.exe fileand run it.3.The installer closes theprogram itself, replaces itand offers to start itagain. Your settingsare kept.If this keeps happening, writeto the author — it helps to findthe cause.The “Versionis available”entry stays in the tray menuuntil you update.Write to the author…CloseOpen the download page
The update letter: “Could not update automatically”, which version is available and what’s new in it, in my own words; below that, the three steps of “How to update” and the button that opens the download page.
  • 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.

  1. In the letter, click “Open the download page”, or open the download page yourself.
  2. Download LangSwitcher-setup.exe and 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.
  3. Click “Yes” on the UAC prompt. You don’t need to exit the program first: the installer closes it and replaces it.
  4. 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.
  5. On the last page, leave “Launch Lang Switcher” checked, and the program starts again.
User Account ControlDo you want to allow this app from anunknown publisher to make changes toyour device?LangSwitcher-setup.exePublisher: UnknownFile origin: Hard drive on this computerShow more detailsYesNoClick “Yes”“No” is selected:Enter cancels the installationSetup - Lang SwitcherReady to InstallSetup is now ready to begin installing Lang Switcher on your computer.Click Install to continue with the installation.Setup will create a certificate on this computer and signLang Switcher with it, so that it can work in windows ofprograms run as administrator.Panda Koder · programs made with heartpanda-pishet-kod.devCancelInstallSetup - Lang SwitcherCompleting the Lang SwitcherSetup WizardSetup has finished installing Lang Switcher on yourcomputer. The application may be launched byselecting the installed shortcuts.Launch Lang SwitcherClick Finish to exit Setup.1Panda Koder · programs made with heartpanda-pishet-kod.devFinish2
User Account ControlDo you want to allow thisapp from an unknownpublisher to make changesto your device?LangSwitcher-setup.exePublisher: UnknownFile origin: Hard drive onthis computerShow more detailsYesNoClick “Yes”“No” is selected: Entercancels the installationSetup -Lang SwitcherReady to InstallSetup is now ready to begininstalling Lang Switcher onyour computer.Click Install to continue withthe installation.Setup will create acertificate on this computerand sign Lang Switcher withit, so that it can work inwindows of programs run asadministrator.CancelInstallPanda Koder · programsmade with heartpanda-pishet-kod.devSetup -Lang SwitcherCompleting theLang Switcher SetupWizardSetup has finished installingLang Switcher on yourcomputer. The applicationmay be launched by selectingthe installed shortcuts.Launch Lang Switcher1Click Finish to exit Setup.Finish2Panda Koder · programsmade with heartpanda-pishet-kod.dev
“Yes” on the UAC prompt; “Install” in the wizard; on the last page, leave “Launch Lang Switcher” checked and click “Finish”.

What’s kept

  • Your settings and exclusions. They live in %APPDATA%\Lang_Switcher\config.toml, not in the program folder, and the installer doesn’t touch that file. As the letter puts it, “Your settings are kept.”
  • 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.

Questions and problemson GitHub Issues ↗ or by email: send.me@panda-pishet-kod.dev