Initial commit

This commit is contained in:
Kevin Guerineau
2019-06-02 18:18:21 +02:00
parent 81a5ddc742
commit a35c20fea4
3 changed files with 362 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
def install():
print('installing %s' % control.asrequirement())
# put here what to do when package is installed on host
# implicit context variables are WAPT, basedir, control, user, params, run
def uninstall():
print('uninstalling %s' % control.asrequirement())
# put here what to do when package is removed from host
# implicit context variables are WAPT, control, user, params, run
def session_setup():
print('Session setup for %s' % control.asrequirement())
registry_set(HKEY_CURRENT_USER,'Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications','GlobalUserDisabled',1)
registry_set(HKEY_CURRENT_USER,'Software\Microsoft\Windows\CurrentVersion\Search','BackgroundAppGlobalToggle',0)
def update_package():
print('Update package content from upstream binary sources')
# put here what to do to update package content with newer installers.
# launched with command wapt-get update-package-sources <path-to-wapt-directory>
# implicit context variables are WAPT, basedir, control, user, params, run
# if attributes in control are changed, they should be explicitly saved to package file with control.save_control_to_wapt()
if __name__ == '__main__':
update_package()