tis-nowaptexit 2

  • package : tis-nowaptexit
  • version : 2
  • description : Remove WAPT Upgrade At Shutdown Policy with waptexit
  • maintainer : Hubert TOUVET
  • date : 2018-02-27 19:04:13

setup.py

# -*- coding: utf-8 -*-
from setuphelpers import *

# registry key(s) where WAPT will find how to remove the application(s)
uninstallkey = []

def install():
    if iswin64():
        waptsetup_options_path = r'SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\WAPT_is1'
    else:
        waptsetup_options_path = r'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\WAPT_is1'

    # removes options for waptsetup so that upgrade at exit is not reinstalled at next wapt silent reinstall
    setup_options = registry_readstring(HKEY_LOCAL_MACHINE,waptsetup_options_path,'Inno Setup: Selected Tasks')

    if setup_options:
        options = setup_options.split(',')
        if 'autoupgradepolicy' in options:
            print('Remove autoupgradepolicy task from wapt setup')
            options.remove('autoupgradepolicy')
            registry_setstring(HKEY_LOCAL_MACHINE,waptsetup_options_path,'Inno Setup: Selected Tasks',','.join(options))

    WAPT.remove_upgrade_shutdown_policy()


    

Changelog

No changelog
    

manifest.sha256

[["setup.py", "e7f3ddc520db8668b4f70636455e6f630b0e681d936975b1a90fbef6acdd4b71"], ["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["WAPT/wapt.psproj", "00f67bb3dc87d878b6f113a48f1ad6d1eb9deddcfdfab962d016ff154d070943"], ["WAPT/control", "e1688c4019a0ada42fdea47cd81971145898abebb3cc058ee0bcce5386f22e12"]]