|
|
@ -5,15 +5,16 @@ uninstallkey = [] |
|
|
|
|
|
|
|
|
|
|
|
def install(): |
|
|
|
def install(): |
|
|
|
print('Shutdown scripts') |
|
|
|
print('Shutdown scripts') |
|
|
|
remove_shutdown_script(r'fwsupdates.vbs','') |
|
|
|
for file in ['fwsupdates.vbs','wpkg.bat']: |
|
|
|
remove_shutdown_script(r'wpkg.bat','') |
|
|
|
remove_shutdown_script(file,'') |
|
|
|
|
|
|
|
remove_file(makepath(system32,'GroupPolicy', 'Machine', 'Scripts', 'Shutdown', file)) |
|
|
|
|
|
|
|
|
|
|
|
print('Removing start menu entries') |
|
|
|
print('Removing start menu entries') |
|
|
|
if isfile(makepath(os.getenv('ALLUSERSPROFILE'),'Microsoft','Windows','Start Menu','Programs','Startup','chkupd_bgmon.vbs')): |
|
|
|
remove_file(makepath(start_menu(common=1),'Programs','Startup','chkupd_bgmon.vbs')) |
|
|
|
try: |
|
|
|
remove_programs_menu_shortcut('FWS Updates') |
|
|
|
remove_file(makepath(os.getenv('ALLUSERSPROFILE'),'Microsoft','Windows','Start Menu','Programs','Startup','chkupd_bgmon.vbs')) |
|
|
|
|
|
|
|
except: |
|
|
|
print('Removing desktop shortcut') |
|
|
|
delete_at_next_reboot(makepath(os.getenv('ALLUSERSPROFILE'),'Microsoft','Windows','Start Menu','Programs','Startup','chkupd_bgmon.vbs')) |
|
|
|
remove_desktop_shortcut('FWS Updates') |
|
|
|
|
|
|
|
|
|
|
|
print('Removing %s' % makepath(os.getenv('SYSTEMDRIVE','C:'),'FWSUpdates')) |
|
|
|
print('Removing %s' % makepath(os.getenv('SYSTEMDRIVE','C:'),'FWSUpdates')) |
|
|
|
if isdir(makepath(os.getenv('SYSTEMDRIVE','C:'),'FWSUpdates')): |
|
|
|
if isdir(makepath(os.getenv('SYSTEMDRIVE','C:'),'FWSUpdates')): |
|
|
@ -22,9 +23,6 @@ def install(): |
|
|
|
except: |
|
|
|
except: |
|
|
|
delete_at_next_reboot(makepath(os.getenv('SYSTEMDRIVE','C:'),'FWSUpdates')) |
|
|
|
delete_at_next_reboot(makepath(os.getenv('SYSTEMDRIVE','C:'),'FWSUpdates')) |
|
|
|
|
|
|
|
|
|
|
|
print('Removing desktop shortcut') |
|
|
|
|
|
|
|
remove_desktop_shortcut('FWS Updates') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print('Removing registry entries') |
|
|
|
print('Removing registry entries') |
|
|
|
for reg in ['FWSUpdates','iPasserelle']: |
|
|
|
for reg in ['FWSUpdates','iPasserelle']: |
|
|
|
if reg_key_exists(HKEY_LOCAL_MACHINE,r'SOFTWARE\%s' % reg): |
|
|
|
if reg_key_exists(HKEY_LOCAL_MACHINE,r'SOFTWARE\%s' % reg): |
|
|
@ -34,6 +32,10 @@ def install(): |
|
|
|
if task_exists('sync_wpkg'): |
|
|
|
if task_exists('sync_wpkg'): |
|
|
|
delete_task('sync_wpkg') |
|
|
|
delete_task('sync_wpkg') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def session_setup(): |
|
|
|
|
|
|
|
print('Removing FWS UPdates desktop shortcut') |
|
|
|
|
|
|
|
remove_user_desktop_shortcut('FWS Updates') |
|
|
|
|
|
|
|
|
|
|
|
def audit(): |
|
|
|
def audit(): |
|
|
|
for reg in ['FWSUpdates','iPasserelle']: |
|
|
|
for reg in ['FWSUpdates','iPasserelle']: |
|
|
|
if reg_key_exists(HKEY_LOCAL_MACHINE,r'SOFTWARE\%s' % reg): |
|
|
|
if reg_key_exists(HKEY_LOCAL_MACHINE,r'SOFTWARE\%s' % reg): |
|
|
|