tis-nowaptexit 2

  • package : tis-nowaptexit
  • version : 2
  • description : Remove WAPT Upgrade At Shutdown Policy with waptexit
  • maintainer : Hubert TOUVET
  • date : 2017-07-20 11:22:22

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()


    

manifest.sha1

[["setup.py", "26dda1a05150206298556dd2e52f9f9b08bd225c"], ["WAPT/certificate.crt", "0db563dc9077b268ca07ba834322d0fc5e21f8e5"], ["WAPT/wapt.psproj", "cf9592cbf5d091f2864b0985f67cd4a0b9adfd20"], ["WAPT/control", "d76ee162619c12be88f65b7d9a3faaefcd0d7938"]]