PuTTY bug win-silent-uninstall

This is a mirror. Follow this link to find the primary PuTTY web site.

Home | FAQ | Feedback | Licence | Updates | Mirrors | Keys | Links | Team
Download: Stable · Snapshot | Docs | Changes | Wishlist

summary: Silent uninstall not possible on Windows
class: bug: This is clearly an actual problem we want fixed.
depends: msi-installer
fixed-in: 0.67 5c5879b99d2a0785095a384f48a2d934e1b2d4c5

The PuTTY .exe uninstaller has a /silent switch (and some others such as /verysilent); however, before 0.68, none of these actually allows a silent uninstall, as the user is always prompted to decide whether they want to remove all traces of PuTTY use (saved sessions and random seed file) from the machine:

PuTTY Uninstallation

Remove saved sessions and random seed file?

If you hit Yes, ALL Registry entries associated
with PuTTY will be removed, as well as the
random seed file. THIS PROCESS WILL
DESTROY YOUR SAVED SESSIONS.
(This only affects the currently logged-in user.)

If you hit No, uninstallation will proceed, but
saved sessions etc will be left on the machine.

Last time we looked, this was unavoidable with the Inno Setup installer engine we were using (the "skipifsilent" flag was not supported in the [UninstallRun] section), as long as we wanted to offer this choice to users uninstalling interactively.

This is fixed in 0.67 by the provision of a MSI installer (which doesn't offer the option of clearing out old settings at all -- it always leaves them alone). The Inno Setup (.exe) installer still has this problem in 0.67.

For existing installations of the Inno Setup installer where you want to silently migrate to the MSI installer (which requires uninstalling the Inno Setup one first) or just uninstall, there are a couple of options:

(A suspected problem with the Inno Setup to MSI migration is that if a program such as Pageant is running at the time you run the Inno Setup uninstaller, the machine can end up with no Pageant; we think the Inno Setup uninstaller leaves a note to remove the currently-in-use pageant.exe on next reboot, which the MSI installer is unaware of, so the MSI's pageant.exe gets removed. Or something like that.)

(The git commit id listed in Fixed-in is actually after 0.67, even though 0.67 has an MSI installer. That's not an error; I prepared the 0.67 MSI ad-hoc, after 0.67 itself was released.)


If you want to comment on this web site, see the Feedback page.
Audit trail for this bug.
(last revision of this bug record was at 2018-05-10 20:26:55 +0100)