Page 1 of 1

[SOLVED] Inno Setup Uninstaller

Published: August 30, 2018 - 4:52 PM
by f4242
Good morning,

I've noticed that the automatic uninstallation of installers created with Inno Setup isn't silent (the uninstallation doesn't require user interaction, but the user sees the window). I need to create a custom `uninstall()` function to make the uninstallation silent

Code: Select all

def uninstall():
    uninstall = installed_softwares(uninstallkey='pgAdmin 4v3_is1')
    if uninstall != []:
        # Force la désinstallation en mode silencieux.
        cmd_uninstall = uninstall[0]['uninstall_string'] + ' /SILENT /VERYSILENT'
        run(cmd_uninstall)
I don't have to do that with other uninstallers. Am I doing something wrong?

I'm on version 1.3.13, haven't had time to migrate to 1.5 yet.

THANKS!

Re: Inno Setup Uninstaller

Published: September 6, 2018 - 10:36 AM
by htouvet
Indeed, Innisetup registers a correct key for QuietUninstallString in the registry, except that the flag is /SILENT instead of /VERYSILENT.

I've pushed a patch to GitHub to replace /SILENT with /VERYSILENT. The command found in the QuietUninstallString key
is: https://github.com/tranquilit/WAPT/comm ... 43802b69f1

Re: Inno Setup Uninstaller

Published: September 14, 2018 - 10:03 PM
by f4242
THANKS!