2017-08: Retroactive Updates

* Bugfixes
  * Windows 10 v1703 / Redstone 2 / Creator's Update now recognized (attempt #2)
This commit is contained in:
Alan Mason 2017-11-17 00:57:07 -07:00
parent b37a492db5
commit 41d6cfc209
72 changed files with 1738 additions and 2931 deletions

55
.bin/Scripts/acpi.py Normal file
View file

@ -0,0 +1,55 @@
import sys
if sys.platform.startswith('win32'):
import ctypes
import ctypes.wintypes
def EnumAcpiTables():
#returns a list of the names of the ACPI tables on this system
FirmwareTableProviderSignature=ctypes.wintypes.DWORD(1094930505)
pFirmwareTableBuffer=ctypes.create_string_buffer(0)
BufferSize=ctypes.wintypes.DWORD(0)
#http://msdn.microsoft.com/en-us/library/windows/desktop/ms724259
EnumSystemFirmwareTables=ctypes.WinDLL("Kernel32").EnumSystemFirmwareTables
ret=EnumSystemFirmwareTables(FirmwareTableProviderSignature, pFirmwareTableBuffer, BufferSize)
pFirmwareTableBuffer=None
pFirmwareTableBuffer=ctypes.create_string_buffer(ret)
BufferSize.value=ret
ret2=EnumSystemFirmwareTables(FirmwareTableProviderSignature, pFirmwareTableBuffer, BufferSize)
return [pFirmwareTableBuffer.value[i:i+4] for i in range(0, len(pFirmwareTableBuffer.value), 4)]
def GetAcpiTable(table):
#returns raw contents of ACPI table
#http://msdn.microsoft.com/en-us/library/windows/desktop/ms724379x
tableID = 0
for b in reversed(table):
tableID = (tableID << 8) + b
GetSystemFirmwareTable=ctypes.WinDLL("Kernel32").GetSystemFirmwareTable
FirmwareTableProviderSignature=ctypes.wintypes.DWORD(1094930505)
FirmwareTableID=ctypes.wintypes.DWORD(int(tableID))
pFirmwareTableBuffer=ctypes.create_string_buffer(0)
BufferSize=ctypes.wintypes.DWORD(0)
ret = GetSystemFirmwareTable(FirmwareTableProviderSignature, FirmwareTableID, pFirmwareTableBuffer, BufferSize)
pFirmwareTableBuffer=None
pFirmwareTableBuffer=ctypes.create_string_buffer(ret)
BufferSize.value=ret
ret2 = GetSystemFirmwareTable(FirmwareTableProviderSignature, FirmwareTableID, pFirmwareTableBuffer, BufferSize)
return pFirmwareTableBuffer.raw
elif sys.platform.startswith('linux'):
import os
TABLE_ROOT = b'/sys/firmware/acpi/tables'
def EnumAcpiTables():
return os.listdir(TABLE_ROOT)
def GetAcpiTable(table):
with open(os.path.join(TABLE_ROOT, table), 'rb') as o:
return o.read()
else:
raise NotImplementedError('acpi support only implemented for linux and win32')
def FindAcpiTable(table):
#checks if specific ACPI table exists and returns True/False
tables = EnumAcpiTables()
if table in tables:
return True
else:
return False

View file

@ -1,16 +1,15 @@
# Wizard Kit: Activate Windows using various methods
import csv
import os
import re
import subprocess
import sys
# Init
os.chdir(os.path.dirname(os.path.realpath(__file__)))
os.system('title Wizard Kit: Windows Activation Tool')
sys.path.append(os.getcwd())
from functions import *
init_global_vars()
set_global_vars()
def abort():
print_warning('Aborted.')
@ -18,84 +17,41 @@ def abort():
def activate_with_bios():
"""Attempt to activate Windows with a key stored in the BIOS."""
extract_item('ProduKey', silent=True)
_args = [
'/nosavereg',
'/scomma', '{TmpDir}\\keys.csv'.format(**global_vars),
'/WindowsKeys', '1',
'/OfficeKeys', '0',
'/IEKeys', '0',
'/SQLKeys', '0',
'/ExchangeKeys', '0']
try:
run_program(global_vars['Tools']['ProduKey'], _args, pipe=False)
except subprocess.CalledProcessError:
print_error('ERROR: Failed to extract BIOS key')
abort()
else:
with open ('{TmpDir}\\keys.csv'.format(**global_vars), newline='') as key_file:
key_reader = csv.reader(key_file)
_key_found = False
for key in key_reader:
if 'BIOS' in key[0] and re.match(r'^\w{5}-\w{5}-\w{5}-\w{5}-\w{5}$', key[2]):
_key_found = True
print_standard('BIOS key found, installing...')
run_program('cscript {SYSTEMROOT}\\System32\\slmgr.vbs /ipk {pkey} //nologo'.format(**global_vars['Env'], pkey=key[2]), check=False, shell=True)
sleep(15)
print_standard('Attempting activation...')
run_program('cscript {SYSTEMROOT}\\System32\\slmgr.vbs /ato //nologo'.format(**global_vars['Env']), check=False, shell=True)
sleep(15)
# Open system properties for user verification
popen_program(['control', 'system'])
break
if not _key_found:
print_error('ERROR: BIOS not key found.')
abort()
def activate_with_hive():
"""Scan any transferred software hives for Windows keys and attempt activation."""
extract_item('ProduKey', silent=True)
def is_activated():
"""Updates activation status, checks if activated, and returns a bool."""
_out = run_program('cscript /nologo {SYSTEMROOT}\\System32\\slmgr.vbs /xpr'.format(**global_vars['Env']))
_out = _out.stdout.decode().splitlines()
_out = [l for l in _out if re.match(r'^\s', l)]
if len(_out) > 0:
global_vars['OS']['Activation'] = re.sub(r'^\s+', '', _out[0])
else:
global_vars['OS']['Activation'] = 'Activation status unknown'
return 'The machine is permanently activated.' in global_vars['OS']['Activation']
try_and_print(message='BIOS Activation:', function=activate_windows_with_bios, other_results=other_results)
if __name__ == '__main__':
stay_awake()
# Bail early if already activated
if is_activated():
print_info('This system is already activated')
exit_script()
# Determine activation method
activation_methods = [
{'Name': 'Activate with BIOS key', 'Function': activate_with_bios},
{'Name': 'Activate with transferred SW hive', 'Function': activate_with_hive, 'Disabled': True},
]
if not re.match(r'^(8|10)$', global_vars['OS']['Version']):
activation_methods[0]['Disabled'] = True
actions = [
{'Name': 'Quit', 'Letter': 'Q'},
]
# Main loop
while True:
selection = menu_select('Wizard Kit: Windows Activation Menu', activation_methods, actions)
if (selection.isnumeric()):
activation_methods[int(selection)-1]['Function']()
break
elif selection == 'Q':
try:
stay_awake()
# Bail early if already activated
if windows_is_activated():
print_info('This system is already activated')
exit_script()
# Done
print_success('Done.')
pause("Press Enter to exit...")
exit_script()
# Determine activation method
activation_methods = [
{'Name': 'Activate with BIOS key', 'Function': activate_with_bios},
]
if not re.match(r'^(8|10)$', global_vars['OS']['Version']):
activation_methods[0]['Disabled'] = True
actions = [
{'Name': 'Quit', 'Letter': 'Q'},
]
# Main loop
while True:
selection = menu_select('Wizard Kit: Windows Activation Menu', activation_methods, actions)
if (selection.isnumeric()):
activation_methods[int(selection)-1]['Function']()
break
elif selection == 'Q':
exit_script()
# Done
print_success('Done.')
pause("Press Enter to exit...")
exit_script()
except SystemExit:
pass
except:
major_exception()

View file

@ -1,33 +1,40 @@
# Wizard Kit: Check Disk Tool
import os
import sys
# Init
os.chdir(os.path.dirname(os.path.realpath(__file__)))
os.system('title Wizard Kit: Check Disk Tool')
sys.path.append(os.getcwd())
from functions import *
init_global_vars()
set_global_vars(LogFile='{LogDir}\\Check Disk.log'.format(**global_vars))
global_vars['LogFile'] = '{LogDir}\\Check Disk.log'.format(**global_vars)
def abort():
print_warning('Aborted.', global_vars['LogFile'])
print_warning('Aborted.')
exit_script()
if __name__ == '__main__':
stay_awake()
other_results = {
'Error': {
'CalledProcessError': 'Unknown Error',
},
'Warning': {
'GenericRepair': 'Repaired',
'UnsupportedOSError': 'Unsupported OS',
}}
os.system('cls')
print_info('Check Disk Tool')
try_and_print(message='CHKDSK ({SYSTEMDRIVE})...'.format(**global_vars['Env']), function=run_chkdsk, cs='CS', ns='NS', other_results=other_results)
# Done
print_success('Done.')
pause("Press Enter to exit...")
exit_script()
try:
stay_awake()
other_results = {
'Error': {
'CalledProcessError': 'Unknown Error',
},
'Warning': {
'GenericRepair': 'Repaired',
'UnsupportedOSError': 'Unsupported OS',
}}
os.system('cls')
print_info('Check Disk Tool')
try_and_print(message='CHKDSK ({SYSTEMDRIVE})...'.format(**global_vars['Env']), function=run_chkdsk, other_results=other_results)
# Done
print_success('Done.')
pause("Press Enter to exit...")
exit_script()
except SystemExit:
pass
except:
major_exception()

View file

@ -1,37 +1,45 @@
# Wizard Kit: Check Disk (Fix) Tool
import os
import sys
# Init
os.chdir(os.path.dirname(os.path.realpath(__file__)))
os.system('title Wizard Kit: Check Disk (Fix) Tool')
sys.path.append(os.getcwd())
from functions import *
init_global_vars()
set_global_vars(LogFile='{LogDir}\\Check Disk (Fix).log'.format(**global_vars))
global_vars['LogFile'] = '{LogDir}\\Check Disk (Fix).log'.format(**global_vars)
def abort():
print_warning('Aborted.', global_vars['LogFile'])
print_warning('Aborted.')
exit_script()
if __name__ == '__main__':
stay_awake()
other_results = {
'Error': {
'CalledProcessError': 'Unknown Error',
},
'Warning': {
'GenericRepair': 'Repaired',
'UnsupportedOSError': 'Unsupported OS',
}}
offline_scan = True
os.system('cls')
print_info('Check Disk Tool')
_spotfix = try_and_print(message='CHKDSK Spotfix ({SYSTEMDRIVE})...'.format(**global_vars['Env']), function=run_chkdsk_spotfix, cs='CS', ns='NS', other_results=other_results)
if global_vars['OS']['Version'] in ['8', '10'] and not _spotfix['CS']:
offline_scan = ask('Run full offline scan?')
try_and_print(message='CHKDSK Offline ({SYSTEMDRIVE})...'.format(**global_vars['Env']), function=run_chkdsk_offline, cs='Scheduled', ns='Error', other_results=other_results)
# Done
print_success('Done.')
pause("Press Enter to exit...")
exit_script()
try:
stay_awake()
other_results = {
'Error': {
'CalledProcessError': 'Unknown Error',
},
'Warning': {
'GenericRepair': 'Repaired',
'UnsupportedOSError': 'Unsupported OS',
}}
offline_scan = True
os.system('cls')
print_info('Check Disk Tool')
_spotfix = try_and_print(message='CHKDSK Spotfix ({SYSTEMDRIVE})...'.format(**global_vars['Env']), function=run_chkdsk_spotfix, other_results=other_results)
if global_vars['OS']['Version'] in ['8', '10'] and not _spotfix['CS']:
offline_scan = ask('Run full offline scan?')
try_and_print(message='CHKDSK Offline ({SYSTEMDRIVE})...'.format(**global_vars['Env']), function=run_chkdsk_offline, cs='Scheduled', ns='Error', other_results=other_results)
# Done
print_success('Done.')
pause("Press Enter to reboot...")
run_program(['shutdown', '-r', '-t', '15'], check=False)
exit_script()
except SystemExit:
pass
except:
major_exception()

View file

@ -1,45 +1,52 @@
# Wizard Kit: DISM wrapper
import os
import sys
# Init
os.chdir(os.path.dirname(os.path.realpath(__file__)))
os.system('title Wizard Kit: DISM helper Tool')
sys.path.append(os.getcwd())
from functions import *
init_global_vars()
set_global_vars(LogFile='{LogDir}\\DISM helper tool.log'.format(**global_vars))
global_vars['LogFile'] = '{LogDir}\\DISM helper tool.log'.format(**global_vars)
def abort():
print_warning('Aborted.')
exit_script()
if __name__ == '__main__':
stay_awake()
other_results = {
'Error': {
'CalledProcessError': 'Unknown Error',
},
'Warning': {
'GenericRepair': 'Repaired',
'UnsupportedOSError': 'Unsupported OS',
}}
options = [
{'Name': 'Check Health', 'Command': 'Check'},
{'Name': 'Restore Health', 'Command': 'Restore'}]
actions = [{'Name': 'Quit', 'Letter': 'Q'}]
selection = menu_select('Please select action to perform', options, actions)
os.system('cls')
print_info('DISM helper tool')
if selection == 'Q':
abort()
elif options[int(selection)-1]['Command'] == 'Check':
try_and_print(message='DISM ScanHealth...', function=run_dism_scan_health, cs='No corruption', ns='Corruption detected', other_results=other_results)
elif options[int(selection)-1]['Command'] == 'Restore':
try_and_print(message='DISM RestoreHealth...', function=run_dism_restore_health, cs='No corruption', ns='Corruption detected', other_results=other_results)
else:
abort()
# Done
print_success('Done.')
pause("Press Enter to exit...")
exit_script()
try:
stay_awake()
other_results = {
'Error': {
'CalledProcessError': 'Unknown Error',
},
'Warning': {
'GenericRepair': 'Repaired',
'UnsupportedOSError': 'Unsupported OS',
}}
options = [
{'Name': 'Check Health', 'Command': 'Check'},
{'Name': 'Restore Health', 'Command': 'Restore'}]
actions = [{'Name': 'Quit', 'Letter': 'Q'}]
selection = menu_select('Please select action to perform', options, actions)
os.system('cls')
print_info('DISM helper tool')
if selection == 'Q':
abort()
elif options[int(selection)-1]['Command'] == 'Check':
try_and_print(message='DISM ScanHealth...', function=run_dism_scan_health, cs='No corruption', ns='Corruption detected', other_results=other_results)
elif options[int(selection)-1]['Command'] == 'Restore':
try_and_print(message='DISM RestoreHealth...', function=run_dism_restore_health, cs='No corruption', ns='Corruption detected', other_results=other_results)
else:
abort()
# Done
print_success('Done.')
pause("Press Enter to exit...")
exit_script()
except SystemExit:
pass
except:
major_exception()

File diff suppressed because it is too large Load diff

View file

@ -3,51 +3,10 @@
cd ../../
mkdir Installers/Extras/Office -p
pushd Installers/Extras/Office
mkdir 2007
mkdir 2010
mkdir 2013
mkdir 2016
cp ../../../.bin/Scripts/Launcher_Template.cmd "2007/2007 Microsoft Office system (SP3).cmd"
sed -ir 's/__TYPE__/Office/' "2007/2007 Microsoft Office system (SP3).cmd"
sed -ir 's/__PATH__/2007/' "2007/2007 Microsoft Office system (SP3).cmd"
sed -ir 's/__ITEM__/2007 Microsoft Office system (SP3)/' "2007/2007 Microsoft Office system (SP3).cmd"
cp ../../../.bin/Scripts/Launcher_Template.cmd "2007/Access 2007 (SP3).cmd"
sed -ir 's/__TYPE__/Office/' "2007/Access 2007 (SP3).cmd"
sed -ir 's/__PATH__/2007/' "2007/Access 2007 (SP3).cmd"
sed -ir 's/__ITEM__/Access 2007 (SP3)/' "2007/Access 2007 (SP3).cmd"
cp ../../../.bin/Scripts/Launcher_Template.cmd "2007/AccessRuntime2007.cmd"
sed -ir 's/__TYPE__/Office/' "2007/AccessRuntime2007.cmd"
sed -ir 's/__PATH__/2007/' "2007/AccessRuntime2007.cmd"
sed -ir 's/__ITEM__/AccessRuntime2007.exe/' "2007/AccessRuntime2007.cmd"
cp ../../../.bin/Scripts/Launcher_Template.cmd "2007/Home and Student 2007 (SP3).cmd"
sed -ir 's/__TYPE__/Office/' "2007/Home and Student 2007 (SP3).cmd"
sed -ir 's/__PATH__/2007/' "2007/Home and Student 2007 (SP3).cmd"
sed -ir 's/__ITEM__/Home and Student 2007 (SP3)/' "2007/Home and Student 2007 (SP3).cmd"
cp ../../../.bin/Scripts/Launcher_Template.cmd "2007/Outlook 2007 (SP3).cmd"
sed -ir 's/__TYPE__/Office/' "2007/Outlook 2007 (SP3).cmd"
sed -ir 's/__PATH__/2007/' "2007/Outlook 2007 (SP3).cmd"
sed -ir 's/__ITEM__/Outlook 2007 (SP3)/' "2007/Outlook 2007 (SP3).cmd"
cp ../../../.bin/Scripts/Launcher_Template.cmd "2007/Professional 2007 (SP3).cmd"
sed -ir 's/__TYPE__/Office/' "2007/Professional 2007 (SP3).cmd"
sed -ir 's/__PATH__/2007/' "2007/Professional 2007 (SP3).cmd"
sed -ir 's/__ITEM__/Professional 2007 (SP3)/' "2007/Professional 2007 (SP3).cmd"
cp ../../../.bin/Scripts/Launcher_Template.cmd "2007/Publisher 2007 (SP3).cmd"
sed -ir 's/__TYPE__/Office/' "2007/Publisher 2007 (SP3).cmd"
sed -ir 's/__PATH__/2007/' "2007/Publisher 2007 (SP3).cmd"
sed -ir 's/__ITEM__/Publisher 2007 (SP3)/' "2007/Publisher 2007 (SP3).cmd"
cp ../../../.bin/Scripts/Launcher_Template.cmd "2007/Small Business 2007 (SP3).cmd"
sed -ir 's/__TYPE__/Office/' "2007/Small Business 2007 (SP3).cmd"
sed -ir 's/__PATH__/2007/' "2007/Small Business 2007 (SP3).cmd"
sed -ir 's/__ITEM__/Small Business 2007 (SP3)/' "2007/Small Business 2007 (SP3).cmd"
cp ../../../.bin/Scripts/Launcher_Template.cmd "2010/Outlook 2010 (SP2) (x32).cmd"
sed -ir 's/__TYPE__/Office/' "2010/Outlook 2010 (SP2) (x32).cmd"
sed -ir 's/__PATH__/2010/' "2010/Outlook 2010 (SP2) (x32).cmd"
@ -83,11 +42,6 @@ sed -ir 's/__TYPE__/Office/' "2013/Home and Student 2013 (x64).cmd"
sed -ir 's/__PATH__/2013/' "2013/Home and Student 2013 (x64).cmd"
sed -ir 's/__ITEM__/hs_64.xml/' "2013/Home and Student 2013 (x64).cmd"
cp ../../../.bin/Scripts/Launcher_Template.cmd "2013/Office 365 2013 (x64).cmd"
sed -ir 's/__TYPE__/Office/' "2013/Office 365 2013 (x64).cmd"
sed -ir 's/__PATH__/2013/' "2013/Office 365 2013 (x64).cmd"
sed -ir 's/__ITEM__/365_64.xml/' "2013/Office 365 2013 (x64).cmd"
cp ../../../.bin/Scripts/Launcher_Template.cmd "2013/Home and Business 2013 (x32).cmd"
sed -ir 's/__TYPE__/Office/' "2013/Home and Business 2013 (x32).cmd"
sed -ir 's/__PATH__/2013/' "2013/Home and Business 2013 (x32).cmd"
@ -98,11 +52,6 @@ sed -ir 's/__TYPE__/Office/' "2013/Home and Student 2013 (x32).cmd"
sed -ir 's/__PATH__/2013/' "2013/Home and Student 2013 (x32).cmd"
sed -ir 's/__ITEM__/hs_32.xml/' "2013/Home and Student 2013 (x32).cmd"
cp ../../../.bin/Scripts/Launcher_Template.cmd "2013/Office 365 2013 (x32).cmd"
sed -ir 's/__TYPE__/Office/' "2013/Office 365 2013 (x32).cmd"
sed -ir 's/__PATH__/2013/' "2013/Office 365 2013 (x32).cmd"
sed -ir 's/__ITEM__/365_32.xml/' "2013/Office 365 2013 (x32).cmd"
cp ../../../.bin/Scripts/Launcher_Template.cmd "2016/Home and Business 2016 (x64).cmd"
sed -ir 's/__TYPE__/Office/' "2016/Home and Business 2016 (x64).cmd"
sed -ir 's/__PATH__/2016/' "2016/Home and Business 2016 (x64).cmd"
@ -132,4 +81,4 @@ cp ../../../.bin/Scripts/Launcher_Template.cmd "2016/Office 365 2016 (x32).cmd"
sed -ir 's/__TYPE__/Office/' "2016/Office 365 2016 (x32).cmd"
sed -ir 's/__PATH__/2016/' "2016/Office 365 2016 (x32).cmd"
sed -ir 's/__ITEM__/365_32.xml/' "2016/Office 365 2016 (x32).cmd"
popd
popd

View file

@ -48,9 +48,9 @@ if defined _info mkdir "%client_dir%\Info">nul 2>&1
if defined _office mkdir "%client_dir%\Office">nul 2>&1
if defined _quickbooks mkdir "%client_dir%\QuickBooks">nul 2>&1
if defined _quarantine mkdir "%client_dir%\Quarantine">nul 2>&1
if defined _transfer mkdir "%client_dir%\Transfer">nul 2>&1
if defined _transfer mkdir "%client_dir%\Transfer_%iso_date%">nul 2>&1
:Done
goto Exit
:Exit
:Exit

View file

@ -1,86 +1,51 @@
# Wizard Kit: Install the standard SW bundle based on the OS version
import os
import re
import sys
# Init
os.chdir(os.path.dirname(os.path.realpath(__file__)))
os.system('title Wizard Kit: SW Bundle Tool')
sys.path.append(os.getcwd())
from functions import *
vars_wk = init_vars_wk()
vars_wk.update(init_vars_os())
init_global_vars()
global_vars['LogFile'] = '{LogDir}\\Install SW Bundle.log'.format(**global_vars)
if __name__ == '__main__':
stay_awake(vars_wk)
errors = False
# Adobe Reader
if vars_wk['OS']['Version'] != 'Vista':
print('Installing Adobe Reader DC...')
_prog = '{BaseDir}/Installers/Extras/Office/Adobe Reader DC.exe'.format(**vars_wk)
_args = ['/sAll', '/msi', '/norestart', '/quiet', 'ALLUSERS=1', 'EULA_ACCEPT=YES']
try:
run_program(_prog, _args)
except:
print_error('Failed to install Adobe Reader DC')
errors = True
# Visual C++ Redists
print('Installing Visual C++ Runtimes...')
extract_item('_vcredists', vars_wk, silent=True)
os.chdir('{BinDir}/_vcredists'.format(**vars_wk))
_redists = [
# 2005
{'Prog': 'msiexec',
'Args': ['/i', '2005sp1\\x86\\vcredist.msi', '/qb!', '/norestart']},
{'Prog': 'msiexec',
'Args': ['/i', '2005sp1\\x64\\vcredist.msi', '/qb!', '/norestart']},
# 2008
{'Prog': '2008sp1\\vcredist_x86.exe',
'Args': ['/qb! /norestart']},
{'Prog': '2008sp1\\vcredist_x64.exe',
'Args': ['/qb! /norestart']},
# 2010
{'Prog': '2010\\vcredist_x86.exe',
'Args': ['/passive', '/norestart']},
{'Prog': '2010\\vcredist_x64.exe',
'Args': ['/passive', '/norestart']},
# 2012
{'Prog': '2012u4\\vcredist_x86.exe',
'Args': ['/passive', '/norestart']},
{'Prog': '2012u4\\vcredist_x64.exe',
'Args': ['/passive', '/norestart']},
# 2013
{'Prog': '2013\\vcredist_x86.exe',
'Args': ['/install', '/passive', '/norestart']},
{'Prog': '2013\\vcredist_x64.exe',
'Args': ['/install', '/passive', '/norestart']},
# 2015
{'Prog': '2015u3\\vc_redist.x86.exe',
'Args': ['/install', '/passive', '/norestart']},
{'Prog': '2015u3\\vc_redist.x64.exe',
'Args': ['/install', '/passive', '/norestart']},
]
for vcr in _redists:
try:
run_program(vcr['Prog'], vcr['Args'], check=False)
except:
print_error('Failed to install {}'.format(vcr['Prog']))
errors = True
# Main Bundle
if vars_wk['OS']['Version'] in ['Vista', '7']:
# Legacy selection
if ask('Install MSE?'):
_prog = '{BaseDir}/Installers/Extras/Security/Microsoft Security Essentials.exe'.format(**vars_wk)
subprocess.Popen(_prog)
_prog = '{BaseDir}/Installers/Extras/Bundles/Legacy.exe'.format(**vars_wk)
subprocess.Popen(_prog)
elif vars_wk['OS']['Version'] in ['8', '10']:
# Modern selection
_prog = '{BaseDir}/Installers/Extras/Bundles/Modern.exe'.format(**vars_wk)
subprocess.Popen(_prog)
if errors:
pause("Press Enter to exit...")
exit_script(vars_wk)
try:
stay_awake()
os.system('cls')
other_results = {
'Error': {
'CalledProcessError': 'Unknown Error',
},
'Warning': {
'GenericRepair': 'Repaired',
'UnsupportedOSError': 'Unsupported OS',
}}
answer_wk_extensions = ask('Install WK Extensions?')
answer_adobe_reader = ask('Install Adobe Reader?')
answer_vcr = ask('Install Visual C++ Runtimes?')
if global_vars['OS']['Version'] in ['7']:
# Vista is dead, not going to check for it
answer_mse = ask('Install MSE?')
else:
answer_mse = False
if answer_wk_extensions:
print_info('Installing WK Extensions')
try_and_print(message='Classic Shell skin...', function=install_classicstart_skin, other_results=other_results)
try_and_print(message='Google Chrome extensions...', function=install_chrome_extensions)
try_and_print(message='Mozilla Firefox extensions...', function=install_firefox_extensions)
print_info('Installing Programs')
if answer_adobe_reader:
install_adobe_reader()
if answer_vcr:
install_vcredists()
try_and_print(message='Ninite bundle...', cs='Started', function=install_ninite_bundle, mse=answer_mse)
print_standard('\nDone.')
exit_script()
except SystemExit:
pass
except:
major_exception()

View file

@ -1,24 +1,31 @@
# Wizard Kit: Enter SafeMode by editing the BCD
import os
import sys
# Init
os.chdir(os.path.dirname(os.path.realpath(__file__)))
os.system('title Wizard Kit: SafeMode Tool')
sys.path.append(os.getcwd())
from functions import *
if __name__ == '__main__':
if ask('Enable booting to SafeMode (with Networking)?'):
# Edit BCD to set safeboot as default
run_program('bcdedit /set {default} safeboot network', check=False)
try:
if ask('Enable booting to SafeMode (with Networking)?'):
# Edit BCD to set safeboot as default
run_program('bcdedit /set {default} safeboot network', check=False)
# Enable MSI access under safemode
run_program(r'reg add HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\Network\MSIServer /f', check=False)
run_program(r'reg add HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\Network\MSIServer /ve /t REG_SZ /d "Service" /f', check=False)
# Enable MSI access under safemode
run_program(r'reg add HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\Network\MSIServer /f', check=False)
run_program(r'reg add HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\Network\MSIServer /ve /t REG_SZ /d "Service" /f', check=False)
## Done ##
pause('Press Enter to reboot...')
run_program('shutdown -r -t 3', check=False)
# Quit
quit()
## Done ##
pause('Press Enter to reboot...')
run_program('shutdown -r -t 3', check=False)
# Done
exit_script()
except SystemExit:
pass
except:
major_exception()

View file

@ -1,24 +1,31 @@
# Wizard Kit: Exit SafeMode by editing the BCD
import os
import sys
# Init
os.chdir(os.path.dirname(os.path.realpath(__file__)))
os.system('title Wizard Kit: SafeMode Tool')
sys.path.append(os.getcwd())
from functions import *
if __name__ == '__main__':
if ask('Disable booting to SafeMode?'):
# Edit BCD to remove safeboot value
run_program('bcdedit /deletevalue {current} safeboot', check=False)
run_program('bcdedit /deletevalue {default} safeboot', check=False)
try:
if ask('Disable booting to SafeMode?'):
# Edit BCD to remove safeboot value
run_program('bcdedit /deletevalue {current} safeboot', check=False)
run_program('bcdedit /deletevalue {default} safeboot', check=False)
# Disable MSI access under safemode
run_program(r'reg delete HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\Network\MSIServer /f', check=False)
# Disable MSI access under safemode
run_program(r'reg delete HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\Network\MSIServer /f', check=False)
## Done ##
pause('Press Enter to reboot...')
run_program('shutdown -r -t 3', check=False)
# Quit
quit()
## Done ##
pause('Press Enter to reboot...')
run_program('shutdown -r -t 3', check=False)
# Done
exit_script()
except SystemExit:
pass
except:
major_exception()

View file

@ -1,11 +1,12 @@
# Wizard Kit: SFC Tool
import os
import re
import sys
# Init
os.chdir(os.path.dirname(os.path.realpath(__file__)))
os.system('title Wizard Kit: SFC Tool')
sys.path.append(os.getcwd())
from functions import *
init_global_vars()
@ -15,10 +16,22 @@ def abort():
exit_script()
if __name__ == '__main__':
stay_awake()
try_and_print(message='SFC scan...', function=run_sfc_scan, cs='CS', ns='NS', other_results=other_results)
# Done
print_standard('\nDone.')
pause('Press Enter to exit...')
exit_script()
try:
other_results = {
'Error': {
'CalledProcessError': 'Unknown Error',
},
'Warning': {
'GenericRepair': 'Repaired',
}}
stay_awake()
try_and_print(message='SFC scan...', function=run_sfc_scan, other_results=other_results)
# Done
print_standard('\nDone.')
pause('Press Enter to exit...')
exit_script()
except SystemExit:
pass
except:
major_exception()

View file

@ -1,78 +0,0 @@
# Wizard Kit: Software Checklist
import os
# Init
os.chdir(os.path.dirname(os.path.realpath(__file__)))
os.system('title Wizard Kit: Software Checklist Tool')
from functions import *
init_global_vars()
set_global_vars(LogFile='{LogDir}\\Software Checklist.log'.format(**global_vars))
def abort():
print_warning('Aborted.')
exit_script()
if __name__ == '__main__':
stay_awake()
get_ticket_number()
os.system('cls')
print_info('Starting Software Checklist for Ticket #{TicketNumber}\n'.format(**global_vars))
# Configure
print_info('Configure')
try_and_print(message='Updating Clock...', function=update_clock, cs='Done')
if global_vars['OS']['Version'] in ['8', '10']:
try_and_print(message='Classic Start...', function=config_classicstart, cs='Done')
try_and_print(message='Explorer...', function=config_explorer, cs='Done')
# Cleanup
print_info('Cleanup')
try_and_print(message='Desktop...', function=cleanup_desktop, cs='Done')
try_and_print(message='AdwCleaner...', function=cleanup_adwcleaner, cs='Done')
try_and_print(message='ESET...', function=uninstall_eset, cs='Done')
# try_and_print(message='MBAM...', function=uninstall_mbam, cs='Done')
try_and_print(message='Super Anti-Spyware...', function=uninstall_sas, cs='Done')
# Export system info
print_info('Backup System Information')
try_and_print(message='AIDA64 reports...', function=run_aida64, cs='Done')
# try_and_print(message='Browsers...', function=backup_browsers, cs='Done')
try_and_print(message='File listing...', function=backup_file_list, cs='Done')
try_and_print(message='Power plans...', function=backup_power_plans, cs='Done')
try_and_print(message='Product Keys...', function=run_produkey, cs='Done')
try_and_print(message='Registry...', function=backup_registry, cs='Done')
# User data
print_info('User Data')
show_user_data_summary()
# Summary
print_info('Summary')
try_and_print(message='Operating System:', function=show_os_name, ns='Unknown', silent_function=False)
try_and_print(message='', function=show_os_activation, ns='Unknown', silent_function=False)
try_and_print(message='Installed Office:', function=get_installed_office, ns='Unknown', print_return=True)
show_free_space()
try_and_print(message='Installed RAM:', function=show_installed_ram, ns='Unknown', silent_function=False)
# Upload info
print_info('Finalizing')
try_and_print(message='Compressing Info...', function=compress_info, cs='Done')
try_and_print(message='Uploading to NAS...', function=upload_info, cs='Done')
# Play audio, show devices, open Windows updates, and open Activation if necessary
popen_program('devmgmt.msc')
run_hwinfo_sensors()
if global_vars['OS']['Version'] == '10':
popen_program(['control', '/name', 'Microsoft.WindowsUpdate'])
else:
popen_program('wuapp')
if 'The machine is permanently activated.' not in global_vars['OS']['Activation']:
popen_program('slui')
sleep(3)
run_xmplay()
# Done
print_standard('\nDone.')
pause('Press Enter exit...')
exit_script()

View file

@ -1,84 +0,0 @@
# Wizard Kit: Software Diagnostics
import os
# Init
os.chdir(os.path.dirname(os.path.realpath(__file__)))
os.system('title Wizard Kit: Software Diagnostics Tool')
from functions import *
init_global_vars()
set_global_vars(LogFile='{LogDir}\\Software Diagnostics.log'.format(**global_vars))
def abort():
print_warning('Aborted.')
pause("Press Enter to exit...")
exit_script()
if __name__ == '__main__':
stay_awake()
get_ticket_number()
os.system('cls')
other_results = {
'Error': {
'CalledProcessError': 'Unknown Error',
},
'Warning': {
'GenericRepair': 'Repaired',
'UnsupportedOSError': 'Unsupported OS',
}}
print_info('Starting Software Diagnostics for Ticket #{TicketNumber}\n'.format(**global_vars))
# Sanitize Environment
print_info('Sanitizing Environment')
try_and_print(message='Killing processes...', function=run_process_killer, cs='Done')
try_and_print(message='Running RKill...', function=run_rkill, cs='Done')
try_and_print(message='Running TDSSKiller...', function=run_tdsskiller, cs='Done')
# Re-run if earlier process was stopped.
stay_awake()
# Start diags
print_info('Starting Background Scans')
check_connection()
try_and_print(message='Running HitmanPro...', function=run_hitmanpro, cs='Started')
try_and_print(message='Running Autoruns...', function=run_autoruns, cs='Started')
# OS Health Checks
print_info('OS Health Checks')
try_and_print(message='CHKDSK ({SYSTEMDRIVE})...'.format(**global_vars['Env']), function=run_chkdsk, cs='CS', ns='NS', other_results=other_results)
try_and_print(message='SFC scan...', function=run_sfc_scan, cs='CS', ns='NS', other_results=other_results)
try_and_print(message='DISM CheckHealth...', function=run_dism_scan_health, cs='CS', ns='NS', other_results=other_results)
# Export system info
print_info('Backup System Information')
try_and_print(message='AIDA64 reports...', function=run_aida64, cs='Done')
try_and_print(message='BleachBit report...', function=run_bleachbit, cs='Done')
try_and_print(message='Browsers...', function=backup_browsers, cs='Done')
try_and_print(message='File listing...', function=backup_file_list, cs='Done')
try_and_print(message='Power plans...', function=backup_power_plans, cs='Done')
try_and_print(message='Product Keys...', function=run_produkey, cs='Done')
try_and_print(message='Registry...', function=backup_registry, cs='Done')
# Summary
print_info('Summary')
try_and_print(message='Temp Size:', function=show_temp_files_size, silent_function=False)
show_free_space()
try_and_print(message='Installed RAM:', function=show_installed_ram, ns='Unknown', silent_function=False)
try_and_print(message='Installed Office:', function=get_installed_office, ns='Unknown', print_return=True)
try_and_print(message='Product Keys:', function=get_product_keys, ns='Unknown', print_return=True)
try_and_print(message='Operating System:', function=show_os_name, ns='Unknown', silent_function=False)
try_and_print(message='', function=show_os_activation, ns='Unknown', silent_function=False)
# User data
print_info('User Data')
show_user_data_summary()
# Upload info
print_info('Finalizing')
try_and_print(message='Compressing Info...', function=compress_info, cs='Done')
try_and_print(message='Uploading to NAS...', function=upload_info, cs='Done')
# Done
print_standard('\nDone.')
pause('Press Enter to exit...')
exit_script()

View file

@ -0,0 +1,89 @@
# Wizard Kit: System Checklist
import os
import sys
# Init
os.chdir(os.path.dirname(os.path.realpath(__file__)))
os.system('title Wizard Kit: System Checklist Tool')
sys.path.append(os.getcwd())
from functions import *
init_global_vars()
global_vars['LogFile'] = '{LogDir}\\System Checklist.log'.format(**global_vars)
def abort():
print_warning('Aborted.')
exit_script()
if __name__ == '__main__':
try:
stay_awake()
get_ticket_number()
os.system('cls')
other_results = {
'Error': {
'CalledProcessError': 'Unknown Error',
'BIOSKeyNotFoundError': 'BIOS key not found',
},
'Warning': {}}
print_info('Starting System Checklist for Ticket #{TicketNumber}\n'.format(**global_vars))
# Configure
print_info('Configure')
if global_vars['OS']['Version'] == '10':
try_and_print(message='Explorer...', function=config_explorer_system, cs='Done')
try_and_print(message='Updating Clock...', function=update_clock, cs='Done')
# Cleanup
print_info('Cleanup')
try_and_print(message='Desktop...', function=cleanup_desktop, cs='Done')
try_and_print(message='AdwCleaner...', function=cleanup_adwcleaner, cs='Done')
try_and_print(message='ESET...', function=uninstall_eset, cs='Done')
# try_and_print(message='MBAM...', function=uninstall_mbam, cs='Done')
try_and_print(message='Super Anti-Spyware...', function=uninstall_sas, cs='Done')
# Export system info
print_info('Backup System Information')
try_and_print(message='AIDA64 reports...', function=run_aida64, cs='Done')
# try_and_print(message='Browsers...', function=backup_browsers, cs='Done')
try_and_print(message='File listing...', function=backup_file_list, cs='Done')
try_and_print(message='Power plans...', function=backup_power_plans, cs='Done')
try_and_print(message='Product Keys...', function=run_produkey, cs='Done')
try_and_print(message='Registry...', function=backup_registry, cs='Done')
# User data
print_info('User Data')
show_user_data_summary()
# Summary
print_info('Summary')
try_and_print(message='Operating System:', function=show_os_name, ns='Unknown', silent_function=False)
try_and_print(message='Activation:', function=show_os_activation, ns='Unknown', silent_function=False)
if not windows_is_activated() and global_vars['OS']['Version'] in ('8', '10'):
try_and_print(message='BIOS Activation:', function=activate_windows_with_bios, other_results=other_results)
try_and_print(message='Installed Office:', function=get_installed_office, ns='Unknown', print_return=True)
show_free_space()
try_and_print(message='Installed RAM:', function=show_installed_ram, ns='Unknown', silent_function=False)
# Upload info
print_info('Finalizing')
try_and_print(message='Compressing Info...', function=compress_info, cs='Done')
try_and_print(message='Uploading to NAS...', function=upload_info, cs='Done')
# Play audio, show devices, open Windows updates, and open Activation if necessary
popen_program(['mmc', 'devmgmt.msc'])
run_hwinfo_sensors()
popen_program(['control', '/name', 'Microsoft.WindowsUpdate'])
if not windows_is_activated():
popen_program('slui')
sleep(3)
run_xmplay()
# Done
print_standard('\nDone.')
pause('Press Enter exit...')
exit_script()
except SystemExit:
pass
except:
major_exception()

View file

@ -0,0 +1,91 @@
# Wizard Kit: System Diagnostics
import os
import sys
# Init
os.chdir(os.path.dirname(os.path.realpath(__file__)))
os.system('title Wizard Kit: System Diagnostics Tool')
sys.path.append(os.getcwd())
from functions import *
init_global_vars()
global_vars['LogFile'] = '{LogDir}\\System Diagnostics.log'.format(**global_vars)
def abort():
print_warning('Aborted.')
pause("Press Enter to exit...")
exit_script()
if __name__ == '__main__':
try:
stay_awake()
get_ticket_number()
os.system('cls')
other_results = {
'Error': {
'CalledProcessError': 'Unknown Error',
},
'Warning': {
'GenericRepair': 'Repaired',
'UnsupportedOSError': 'Unsupported OS',
}}
print_info('Starting System Diagnostics for Ticket #{TicketNumber}\n'.format(**global_vars))
# Sanitize Environment
print_info('Sanitizing Environment')
try_and_print(message='Killing processes...', function=run_process_killer, cs='Done')
try_and_print(message='Running RKill...', function=run_rkill, cs='Done')
try_and_print(message='Running TDSSKiller...', function=run_tdsskiller, cs='Done')
# Re-run if earlier process was stopped.
stay_awake()
# Start diags
print_info('Starting Background Scans')
check_connection()
try_and_print(message='Running HitmanPro...', function=run_hitmanpro, cs='Started')
try_and_print(message='Running Autoruns...', function=run_autoruns, cs='Started')
# OS Health Checks
print_info('OS Health Checks')
try_and_print(message='CHKDSK ({SYSTEMDRIVE})...'.format(**global_vars['Env']), function=run_chkdsk, other_results=other_results)
try_and_print(message='SFC scan...', function=run_sfc_scan, other_results=other_results)
try_and_print(message='DISM CheckHealth...', function=run_dism_scan_health, other_results=other_results)
# Export system info
print_info('Backup System Information')
try_and_print(message='AIDA64 reports...', function=run_aida64, cs='Done')
try_and_print(message='BleachBit report...', function=run_bleachbit, cs='Done')
try_and_print(message='Browsers...', function=backup_browsers, cs='Done')
try_and_print(message='File listing...', function=backup_file_list, cs='Done')
try_and_print(message='Power plans...', function=backup_power_plans, cs='Done')
try_and_print(message='Product Keys...', function=run_produkey, cs='Done')
try_and_print(message='Registry...', function=backup_registry, cs='Done')
# Summary
print_info('Summary')
try_and_print(message='Temp Size:', function=show_temp_files_size, silent_function=False)
show_free_space()
try_and_print(message='Installed RAM:', function=show_installed_ram, ns='Unknown', silent_function=False)
try_and_print(message='Installed Office:', function=get_installed_office, ns='Unknown', print_return=True)
try_and_print(message='Product Keys:', function=get_product_keys, ns='Unknown', print_return=True)
try_and_print(message='Operating System:', function=show_os_name, ns='Unknown', silent_function=False)
try_and_print(message='', function=show_os_activation, ns='Unknown', silent_function=False)
# User data
print_info('User Data')
show_user_data_summary()
# Upload info
print_info('Finalizing')
try_and_print(message='Compressing Info...', function=compress_info, cs='Done')
try_and_print(message='Uploading to NAS...', function=upload_info, cs='Done')
# Done
print_standard('\nDone.')
pause('Press Enter to exit...')
exit_script()
except SystemExit:
pass
except:
major_exception()

View file

@ -1,69 +1,38 @@
# Wizard Kit: Transferred Keys
import os
import re
import subprocess
import sys
# Init
os.chdir(os.path.dirname(os.path.realpath(__file__)))
os.system('title Wizard Kit: Key Tool')
os.system('title Wizard Kit: ProductKey Tool')
sys.path.append(os.getcwd())
from functions import *
init_global_vars()
set_global_vars(LogFile='{LogDir}\\Transferred Keys.log'.format(**global_vars))
global_vars['LogFile'] = '{LogDir}\\Transferred Keys.log'.format(**global_vars)
def abort():
print_warning('Aborted.')
exit_script(global_vars)
def extract_keys():
"""Extract keys from provided hives and return a dict."""
keys = {}
# Extract keys
extract_item('ProduKey')
for hive in find_software_hives():
print_standard(' Scanning {hive}...'.format(hive=hive))
_args = [
'/IEKeys', '0',
'/WindowsKeys', '1',
'/OfficeKeys', '1',
'/ExtractEdition', '1',
'/nosavereg',
'/regfile', hive,
'/scomma', '']
try:
_out = run_program(global_vars['Tools']['ProduKey'], _args)
for line in _out.stdout.decode().splitlines():
# Add key to keys under product only if unique
_tmp = line.split(',')
_product = _tmp[0]
_key = _tmp[2]
if _product not in keys:
keys[_product] = []
if _key not in keys[_product]:
keys[_product].append(_key)
except subprocess.CalledProcessError:
print_error(' Failed to extract any keys')
else:
for line in _out.stdout.decode().splitlines():
_match = re.search(r'', line, re.IGNORECASE)
return keys
if __name__ == '__main__':
stay_awake()
keys = extract_keys()
# Save Keys
if keys:
for product in sorted(keys):
print_standard('{product}:'.format(product=product))
for key in sorted(keys[product]):
print_standard(' {key}'.format(key=key))
else:
print_error('No keys found.')
# Done
print_standard('\nDone.')
pause("Press Enter to exit...")
exit_script()
if __name__ == '__main__':
try:
other_results = {
'Error': {
'CalledProcessError': 'Unknown Error',
},
'Warning': {
'GenericError': 'No keys found',
}}
stay_awake()
try_and_print(message='Extracting keys...', function=extract_keys, other_results=other_results)
try_and_print(message='Displaying keys...', function=save_keys, print_return=True)
# Done
print_standard('\nDone.')
exit_script()
except SystemExit:
pass
except:
major_exception()

View file

@ -1,311 +1,199 @@
# Wizard Kit: Download the latest versions of the programs in the kit
import os
import re
import sys
# Init
os.chdir(os.path.dirname(os.path.realpath(__file__)))
os.system('title Wizard Kit: Kit Update Tool')
sys.path.append(os.getcwd())
from functions import *
vars_wk = init_vars_wk()
vars_wk.update(init_vars_os())
extract_item('curl', vars_wk, silent=True)
curl = '{BinDir}/curl/curl.exe'.format(**vars_wk)
seven_zip = '{BinDir}/7-Zip/7za.exe'.format(**vars_wk)
if vars_wk['OS']['Arch'] == 64:
seven_zip = seven_zip.replace('7za', '7za64')
def download_file(out_dir, out_name, source_url):
"""Downloads a file using curl."""
print('Downloading: {out_name}'.format(out_name=out_name))
_args = [
'-#LSfo',
'{out_dir}/{out_name}'.format(out_dir=out_dir, out_name=out_name),
source_url
]
try:
os.makedirs(out_dir, exist_ok=True)
run_program(curl, _args, pipe=False)
except:
print_error('Falied to download file.')
def resolve_dynamic_url(source_url, regex):
"""Download the "download page" and scan for a url using the regex provided; returns str."""
# Download the file
_tmp_file = '{TmpDir}/webpage.tmp'.format(**vars_wk)
_args = ['-#LSfo', _tmp_file, source_url]
try:
os.makedirs(vars_wk['TmpDir'], exist_ok=True)
run_program(curl, _args)
except:
print_error('Falied to resolve dynamic url')
# Scan the file for the regex
with open(_tmp_file, 'r') as file:
for line in file:
if re.search(regex, line):
_url = line.strip()
_url = re.sub(r'.*(a |)href="([^"]+)".*', r'\2', _url)
_url = re.sub(r".*(a |)href='([^']+)'.*", r'\2', _url)
break
# Cleanup and return
os.remove(_tmp_file)
return _url
init_global_vars()
if __name__ == '__main__':
stay_awake(vars_wk)
## Diagnostics ##
# HitmanPro
_path = '{BinDir}/HitmanPro'.format(**vars_wk)
_name = 'HitmanPro.exe'
_url = 'http://dl.surfright.nl/HitmanPro.exe'
download_file(_path, _name, _url)
_name = 'HitmanPro64.exe'
_url = 'http://dl.surfright.nl/HitmanPro_x64.exe'
download_file(_path, _name, _url)
## VR-OSR ##
# AdwCleaner
_path = vars_wk['BinDir']
_name = 'AdwCleaner.exe'
_dl_page = 'http://www.bleepingcomputer.com/download/adwcleaner/dl/125/'
_regex = r'href=.*http(s|)://download\.bleepingcomputer\.com/dl/[a-zA-Z0-9]+/[a-zA-Z0-9]+/windows/security/security-utilities/a/adwcleaner/AdwCleaner\.exe'
_url = resolve_dynamic_url(_dl_page, _regex)
download_file(_path, _name, _url)
# ESET Online Scanner
_path = vars_wk['BinDir']
_name = 'ESET.exe'
_url = 'http://download.eset.com/special/eos/esetsmartinstaller_enu.exe'
download_file(_path, _name, _url)
# Junkware Removal Tool
_path = vars_wk['BinDir']
_name = 'JRT.exe'
_url = 'http://downloads.malwarebytes.org/file/jrt'
download_file(_path, _name, _url)
# Kaspersky Virus Removal Tool
_path = vars_wk['BinDir']
_name = 'KVRT.exe'
_url = 'http://devbuilds.kaspersky-labs.com/devbuilds/KVRT/latest/full/KVRT.exe'
download_file(_path, _name, _url)
# RKill
_path = '{BinDir}/RKill'.format(**vars_wk)
_name = 'RKill.exe'
_dl_page = 'http://www.bleepingcomputer.com/download/rkill/dl/10/'
_regex = r'href=.*http(s|)://download\.bleepingcomputer\.com/dl/[a-zA-Z0-9]+/[a-zA-Z0-9]+/windows/security/security-utilities/r/rkill/rkill\.exe'
_url = resolve_dynamic_url(_dl_page, _regex)
download_file(_path, _name, _url)
# TDSSKiller
_path = vars_wk['BinDir']
_name = 'TDSSKiller.exe'
_url = 'http://media.kaspersky.com/utilities/VirusUtilities/EN/tdsskiller.exe'
download_file(_path, _name, _url)
## Driver Tools ##
# Intel Driver Update Utility
_path = '{BinDir}/_Drivers'.format(**vars_wk)
_name = 'Intel Driver Update Utility.exe'
_dl_page = 'http://www.intel.com/content/www/us/en/support/detect.html'
_regex = r'a href.*http(s|)://downloadmirror\.intel\.com/[a-zA-Z0-9]+/[a-zA-Z0-9]+/Intel%20Driver%20Update%20Utility%20Installer.exe'
_url = resolve_dynamic_url(_dl_page, _regex)
_url = resolve_dynamic_url(_dl_page, _regex)
download_file(_path, _name, _url)
# Intel SSD Toolbox
_path = '{BinDir}/_Drivers'.format(**vars_wk)
_name = 'Intel SSD Toolbox.exe'
_dl_page = 'https://downloadcenter.intel.com/download/26085/Intel-Solid-State-Drive-Toolbox'
_regex = r'href=./downloads/eula/[0-9]+/Intel-Solid-State-Drive-Toolbox.httpDown=https\%3A\%2F\%2Fdownloadmirror\.intel\.com\%2F[0-9]+\%2Feng\%2FIntel\%20SSD\%20Toolbox\%20-\%20v[0-9\.]+.exe'
_url = resolve_dynamic_url(_dl_page, _regex)
_url = re.sub(r'.*httpDown=(.*)', r'\1', _url, flags=re.IGNORECASE)
_url = _url.replace('%3A', ':')
_url = _url.replace('%2F', '/')
download_file(_path, _name, _url)
#~Broken~# # Samsung Magician
print_warning('Samsung Magician section is broken.')
print('Please manually put "Samsung Magician.exe" into "{BinDir}\\_Drivers\\"')
#~Broken~# _path = '{BinDir}/_Drivers'.format(**vars_wk)
#~Broken~# _name = 'Samsung Magician.zip'
#~Broken~# _dl_page = 'http://www.samsung.com/semiconductor/minisite/ssd/download/tools.html'
#~Broken~# _regex = r'href=./semiconductor/minisite/ssd/downloads/software/Samsung_Magician_Setup_v[0-9]+.zip'
#~Broken~# _url = resolve_dynamic_url(_dl_page, _regex)
#~Broken~# # Convert relative url to absolute
#~Broken~# _url = 'http://www.samsung.com' + _url
#~Broken~# download_file(_path, _name, _url)
#~Broken~# # Extract and replace old copy
#~Broken~# _args = [
#~Broken~# 'e', '"{BinDir}/_Drivers/Samsung Magician.zip"'.format(**vars_wk),
#~Broken~# '-aoa', '-bso0', '-bsp0',
#~Broken~# '-o"{BinDir}/_Drivers"'.format(**vars_wk)
#~Broken~# ]
#~Broken~# run_program(seven_zip, _args)
#~Broken~# try:
#~Broken~# os.remove('{BinDir}/_Drivers/Samsung Magician.zip'.format(**vars_wk))
#~Broken~# #~PoSH~# Move-Item "$bin\_Drivers\Samsung*exe" "$bin\_Drivers\Samsung Magician.exe" $path 2>&1 | Out-Null
#~Broken~# except:
#~Broken~# pass
# SanDisk Express Cache
_path = '{BinDir}/_Drivers'.format(**vars_wk)
_name = 'SanDisk Express Cache.exe'
_url = 'http://mp3support.sandisk.com/ReadyCache/ExpressCacheSetup.exe'
download_file(_path, _name, _url)
## Installers ##
# Ninite - Bundles
_path = '{BaseDir}/Installers/Extras/Bundles'.format(**vars_wk)
download_file(_path, 'Runtimes.exe', 'https://ninite.com/.net4.6.2-air-java8-silverlight/ninite.exe')
download_file(_path, 'Legacy.exe', 'https://ninite.com/.net4.6.2-7zip-air-chrome-firefox-java8-silverlight-vlc/ninite.exe')
download_file(_path, 'Modern.exe', 'https://ninite.com/.net4.6.2-7zip-air-chrome-classicstart-firefox-java8-silverlight-vlc/ninite.exe')
# Ninite - Audio-Video
_path = '{BaseDir}/Installers/Extras/Audio-Video'.format(**vars_wk)
download_file(_path, 'AIMP.exe', 'https://ninite.com/aimp/ninite.exe')
download_file(_path, 'Audacity.exe', 'https://ninite.com/audacity/ninite.exe')
download_file(_path, 'CCCP.exe', 'https://ninite.com/cccp/ninite.exe')
download_file(_path, 'Foobar2000.exe', 'https://ninite.com/foobar/ninite.exe')
download_file(_path, 'GOM.exe', 'https://ninite.com/gom/ninite.exe')
download_file(_path, 'iTunes.exe', 'https://ninite.com/itunes/ninite.exe')
download_file(_path, 'K-Lite Codecs.exe', 'https://ninite.com/klitecodecs/ninite.exe')
download_file(_path, 'KMPlayer.exe', 'https://ninite.com/kmplayer/ninite.exe')
download_file(_path, 'MediaMonkey.exe', 'https://ninite.com/mediamonkey/ninite.exe')
download_file(_path, 'MusicBee.exe', 'https://ninite.com/musicbee/ninite.exe')
download_file(_path, 'Spotify.exe', 'https://ninite.com/spotify/ninite.exe')
download_file(_path, 'VLC.exe', 'https://ninite.com/vlc/ninite.exe')
download_file(_path, 'Winamp.exe', 'https://ninite.com/winamp/ninite.exe')
# Ninite - Cloud Storage
_path = '{BaseDir}/Installers/Extras/Cloud Storage'.format(**vars_wk)
download_file(_path, 'BitTorrent Sync.exe', 'https://ninite.com/bittorrentsync/ninite.exe')
download_file(_path, 'Dropbox.exe', 'https://ninite.com/dropbox/ninite.exe')
download_file(_path, 'Google Drive.exe', 'https://ninite.com/googledrive/ninite.exe')
download_file(_path, 'Mozy.exe', 'https://ninite.com/mozy/ninite.exe')
download_file(_path, 'OneDrive.exe', 'https://ninite.com/onedrive/ninite.exe')
download_file(_path, 'SugarSync.exe', 'https://ninite.com/sugarsync/ninite.exe')
# Ninite - Communication
_path = '{BaseDir}/Installers/Extras/Communication'.format(**vars_wk)
download_file(_path, 'AIM.exe', 'https://ninite.com/aim/ninite.exe')
download_file(_path, 'Pidgin.exe', 'https://ninite.com/pidgin/ninite.exe')
download_file(_path, 'Skype.exe', 'https://ninite.com/skype/ninite.exe')
download_file(_path, 'Trillian.exe', 'https://ninite.com/trillian/ninite.exe')
# Ninite - Compression
_path = '{BaseDir}/Installers/Extras/Compression'.format(**vars_wk)
download_file(_path, '7-Zip.exe', 'https://ninite.com/7zip/ninite.exe')
download_file(_path, 'PeaZip.exe', 'https://ninite.com/peazip/ninite.exe')
download_file(_path, 'WinRAR.exe', 'https://ninite.com/winrar/ninite.exe')
# Ninite - Developer
_path = '{BaseDir}/Installers/Extras/Developer'.format(**vars_wk)
download_file(_path, 'Eclipse.exe', 'https://ninite.com/eclipse/ninite.exe')
download_file(_path, 'FileZilla.exe', 'https://ninite.com/filezilla/ninite.exe')
download_file(_path, 'JDK 8.exe', 'https://ninite.com/jdk8/ninite.exe')
download_file(_path, 'JDK 8 (x64).exe', 'https://ninite.com/jdkx8/ninite.exe')
download_file(_path, 'Notepad++.exe', 'https://ninite.com/notepadplusplus/ninite.exe')
download_file(_path, 'PuTTY.exe', 'https://ninite.com/putty/ninite.exe')
download_file(_path, 'Python 2.exe', 'https://ninite.com/python/ninite.exe')
download_file(_path, 'Visual Studio Code.exe', 'https://ninite.com/vscode/ninite.exe')
download_file(_path, 'WinMerge.exe', 'https://ninite.com/winmerge/ninite.exe')
download_file(_path, 'WinSCP.exe', 'https://ninite.com/winscp/ninite.exe')
# Ninite - File Sharing
_path = '{BaseDir}/Installers/Extras/File Sharing'.format(**vars_wk)
download_file(_path, 'eMule.exe', 'https://ninite.com/emule/ninite.exe')
download_file(_path, 'qBittorrent.exe', 'https://ninite.com/qbittorrent/ninite.exe')
# Ninite - Image-Photo
_path = '{BaseDir}/Installers/Extras/Image-Photo'.format(**vars_wk)
download_file(_path, 'FastStone.exe', 'https://ninite.com/faststone/ninite.exe')
download_file(_path, 'GIMP.exe', 'https://ninite.com/gimp/ninite.exe')
download_file(_path, 'Greenshot.exe', 'https://ninite.com/greenshot/ninite.exe')
download_file(_path, 'Inkscape.exe', 'https://ninite.com/inkscape/ninite.exe')
download_file(_path, 'IrfanView.exe', 'https://ninite.com/irfanview/ninite.exe')
download_file(_path, 'Paint.NET.exe', 'https://ninite.com/paint.net/ninite.exe')
download_file(_path, 'ShareX.exe', 'https://ninite.com/sharex/ninite.exe')
download_file(_path, 'XnView.exe', 'https://ninite.com/xnview/ninite.exe')
# Ninite - Misc
_path = '{BaseDir}/Installers/Extras/Misc'.format(**vars_wk)
download_file(_path, 'Classic Start.exe', 'https://ninite.com/classicstart/ninite.exe')
download_file(_path, 'Evernote.exe', 'https://ninite.com/evernote/ninite.exe')
download_file(_path, 'Everything.exe', 'https://ninite.com/everything/ninite.exe')
download_file(_path, 'Google Earth.exe', 'https://ninite.com/googleearth/ninite.exe')
download_file(_path, 'NV Access.exe', 'https://ninite.com/nvda/ninite.exe')
download_file(_path, 'Steam.exe', 'https://ninite.com/steam/ninite.exe')
# Ninite - Office
_path = '{BaseDir}/Installers/Extras/Office'.format(**vars_wk)
download_file(_path, 'CutePDF.exe', 'https://ninite.com/cutepdf/ninite.exe')
download_file(_path, 'Foxit Reader.exe', 'https://ninite.com/foxit/ninite.exe')
download_file(_path, 'LibreOffice.exe', 'https://ninite.com/libreoffice/ninite.exe')
download_file(_path, 'OpenOffice.exe', 'https://ninite.com/openoffice/ninite.exe')
download_file(_path, 'PDFCreator.exe', 'https://ninite.com/pdfcreator/ninite.exe')
download_file(_path, 'SumatraPDF.exe', 'https://ninite.com/sumatrapdf/ninite.exe')
download_file(_path, 'Thunderbird.exe', 'https://ninite.com/thunderbird/ninite.exe')
# Ninite - Runtimes
_path = '{BaseDir}/Installers/Extras/Runtimes'.format(**vars_wk)
download_file(_path, 'Adobe Air.exe', 'https://ninite.com/air/ninite.exe')
download_file(_path, 'dotNET.exe', 'https://ninite.com/.net4.6.2/ninite.exe')
download_file(_path, 'Java 8.exe', 'https://ninite.com/java8/ninite.exe')
download_file(_path, 'Shockwave.exe', 'https://ninite.com/shockwave/ninite.exe')
download_file(_path, 'Silverlight.exe', 'https://ninite.com/silverlight/ninite.exe')
# Ninite - Security
_path = '{BaseDir}/Installers/Extras/Security'.format(**vars_wk)
download_file(_path, 'Ad-Aware.exe', 'https://ninite.com/adaware/ninite.exe')
download_file(_path, 'Avast.exe', 'https://ninite.com/avast/ninite.exe')
download_file(_path, 'AVG.exe', 'https://ninite.com/avg/ninite.exe')
download_file(_path, 'Avira.exe', 'https://ninite.com/avira/ninite.exe')
download_file(_path, 'Microsoft Security Essentials.exe', 'https://ninite.com/essentials/ninite.exe')
download_file(_path, 'Malwarebytes Anti-Malware.exe', 'https://ninite.com/malwarebytes/ninite.exe')
download_file(_path, 'Spybot 2.exe', 'https://ninite.com/spybot2/ninite.exe')
download_file(_path, 'SUPERAntiSpyware.exe', 'https://ninite.com/super/ninite.exe')
# Ninite - Utilities
_path = '{BaseDir}/Installers/Extras/Utilities'.format(**vars_wk)
download_file(_path, 'Auslogics DiskDefrag.exe', 'https://ninite.com/auslogics/ninite.exe')
download_file(_path, 'CDBurnerXP.exe', 'https://ninite.com/cdburnerxp/ninite.exe')
download_file(_path, 'Glary Utilities.exe', 'https://ninite.com/glary/ninite.exe')
download_file(_path, 'ImgBurn.exe', 'https://ninite.com/imgburn/ninite.exe')
download_file(_path, 'InfraRecorder.exe', 'https://ninite.com/infrarecorder/ninite.exe')
download_file(_path, 'KeePass 2.exe', 'https://ninite.com/keepass2/ninite.exe')
download_file(_path, 'Launchy.exe', 'https://ninite.com/launchy/ninite.exe')
download_file(_path, 'RealVNC.exe', 'https://ninite.com/realvnc/ninite.exe')
download_file(_path, 'Revo Uninstaller.exe', 'https://ninite.com/revo/ninite.exe')
download_file(_path, 'TeamViewer 11.exe', 'https://ninite.com/teamviewer11/ninite.exe')
download_file(_path, 'TeraCopy.exe', 'https://ninite.com/teracopy/ninite.exe')
download_file(_path, 'WinDirStat.exe', 'https://ninite.com/windirstat/ninite.exe')
# Ninite - Web Browsers
_path = '{BaseDir}/Installers/Extras/Web Browsers'.format(**vars_wk)
download_file(_path, 'Google Chrome.exe', 'https://ninite.com/chrome/ninite.exe')
download_file(_path, 'Mozilla Firefox.exe', 'https://ninite.com/firefox/ninite.exe')
download_file(_path, 'Opera Chromium.exe', 'https://ninite.com/operaChromium/ninite.exe')
## Misc ##
# Sysinternals
_path = '{BinDir}/tmp'.format(**vars_wk)
_name = 'SysinternalsSuite.zip'
_url = 'https://download.sysinternals.com/files/SysinternalsSuite.zip'
download_file(_path, _name, _url)
# Extract
_args = [
'e', '"{BinDir}/tmp/SysinternalsSuite.zip"'.format(**vars_wk),
'-aoa', '-bso0', '-bsp0',
'-o"{BinDir}/SysinternalsSuite"'.format(**vars_wk)]
run_program(seven_zip, _args)
try:
os.remove('{BinDir}/tmp/SysinternalsSuite.zip'.format(**vars_wk))
except:
pass
other_results = {
'Error': {
'CalledProcessError': 'Unknown Error',
}}
stay_awake()
# Diagnostics
print_info('Diagnostics')
try_and_print(message='HitmanPro...', function=update_hitmanpro, other_results=other_results)
# VR/OSR
print_info('VR/OSR')
try_and_print(message='AdwCleaner...', function=update_adwcleaner, other_results=other_results)
try_and_print(message='ESET...', function=update_eset, other_results=other_results)
try_and_print(message='JRT...', function=update_jrt, other_results=other_results)
try_and_print(message='KVRT...', function=update_kvrt, other_results=other_results)
try_and_print(message='RKill...', function=update_rkill, other_results=other_results)
try_and_print(message='TDSSKiller...', function=update_tdsskiller, other_results=other_results)
# Driver Tools
print_info('Driver Tools')
try_and_print(message='Intel Driver Update Utility...', function=update_intel_driver_utility, other_results=other_results)
try_and_print(message='Intel SSD Toolbox...', function=update_intel_ssd_toolbox, other_results=other_results)
# try_and_print(message='Samsung Magician...', function=update_samsung_magician, other_results=other_results)
try_and_print(message='Samsung Magician...', function=update_samsung_magician, silent_function=False)
# Ninite - Bundles
print_info('Installers')
print_success(' '*4 + 'Ninite Bundles')
_path = '{BaseDir}\\Installers\\Extras\\Bundles'.format(**global_vars)
try_and_print(message='Runtimes.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Runtimes.exe', source_url='https://ninite.com/.net4.6.2-air-java8-silverlight/ninite.exe')
try_and_print(message='Legacy.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Legacy.exe', source_url='https://ninite.com/.net4.6.2-7zip-air-chrome-firefox-java8-silverlight-vlc/ninite.exe')
try_and_print(message='Modern.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Modern.exe', source_url='https://ninite.com/.net4.6.2-7zip-air-chrome-classicstart-firefox-java8-silverlight-vlc/ninite.exe')
# Ninite - Audio-Video
print_success(' '*4 + 'Audio-Video')
_path = '{BaseDir}\\Installers\\Extras\\Audio-Video'.format(**global_vars)
try_and_print(message='AIMP.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='AIMP.exe', source_url='https://ninite.com/aimp/ninite.exe')
try_and_print(message='Audacity.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Audacity.exe', source_url='https://ninite.com/audacity/ninite.exe')
try_and_print(message='CCCP.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='CCCP.exe', source_url='https://ninite.com/cccp/ninite.exe')
try_and_print(message='Foobar2000.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Foobar2000.exe', source_url='https://ninite.com/foobar/ninite.exe')
try_and_print(message='GOM.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='GOM.exe', source_url='https://ninite.com/gom/ninite.exe')
try_and_print(message='iTunes.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='iTunes.exe', source_url='https://ninite.com/itunes/ninite.exe')
try_and_print(message='K-Lite Codecs.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='K-Lite Codecs.exe', source_url='https://ninite.com/klitecodecs/ninite.exe')
try_and_print(message='KMPlayer.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='KMPlayer.exe', source_url='https://ninite.com/kmplayer/ninite.exe')
try_and_print(message='MediaMonkey.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='MediaMonkey.exe', source_url='https://ninite.com/mediamonkey/ninite.exe')
try_and_print(message='MusicBee.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='MusicBee.exe', source_url='https://ninite.com/musicbee/ninite.exe')
try_and_print(message='Spotify.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Spotify.exe', source_url='https://ninite.com/spotify/ninite.exe')
try_and_print(message='VLC.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='VLC.exe', source_url='https://ninite.com/vlc/ninite.exe')
try_and_print(message='Winamp.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Winamp.exe', source_url='https://ninite.com/winamp/ninite.exe')
pause("Press Enter to exit...")
exit_script(vars_wk)
# Ninite - Cloud Storage
print_success(' '*4 + 'Cloud Storage')
_path = '{BaseDir}\\Installers\\Extras\\Cloud Storage'.format(**global_vars)
try_and_print(message='BitTorrent Sync.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='BitTorrent Sync.exe', source_url='https://ninite.com/bittorrentsync/ninite.exe')
try_and_print(message='Dropbox.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Dropbox.exe', source_url='https://ninite.com/dropbox/ninite.exe')
try_and_print(message='Google Drive.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Google Drive.exe', source_url='https://ninite.com/googledrive/ninite.exe')
try_and_print(message='Mozy.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Mozy.exe', source_url='https://ninite.com/mozy/ninite.exe')
try_and_print(message='OneDrive.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='OneDrive.exe', source_url='https://ninite.com/onedrive/ninite.exe')
try_and_print(message='SugarSync.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='SugarSync.exe', source_url='https://ninite.com/sugarsync/ninite.exe')
# Ninite - Communication
print_success(' '*4 + 'Communication')
_path = '{BaseDir}\\Installers\\Extras\\Communication'.format(**global_vars)
try_and_print(message='AIM.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='AIM.exe', source_url='https://ninite.com/aim/ninite.exe')
try_and_print(message='Pidgin.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Pidgin.exe', source_url='https://ninite.com/pidgin/ninite.exe')
try_and_print(message='Skype.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Skype.exe', source_url='https://ninite.com/skype/ninite.exe')
try_and_print(message='Trillian.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Trillian.exe', source_url='https://ninite.com/trillian/ninite.exe')
# Ninite - Compression
print_success(' '*4 + 'Compression')
_path = '{BaseDir}\\Installers\\Extras\\Compression'.format(**global_vars)
try_and_print(message='7-Zip.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='7-Zip.exe', source_url='https://ninite.com/7zip/ninite.exe')
try_and_print(message='PeaZip.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='PeaZip.exe', source_url='https://ninite.com/peazip/ninite.exe')
try_and_print(message='WinRAR.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='WinRAR.exe', source_url='https://ninite.com/winrar/ninite.exe')
# Ninite - Developer
print_success(' '*4 + 'Developer')
_path = '{BaseDir}\\Installers\\Extras\\Developer'.format(**global_vars)
try_and_print(message='Eclipse.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Eclipse.exe', source_url='https://ninite.com/eclipse/ninite.exe')
try_and_print(message='FileZilla.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='FileZilla.exe', source_url='https://ninite.com/filezilla/ninite.exe')
try_and_print(message='JDK 8.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='JDK 8.exe', source_url='https://ninite.com/jdk8/ninite.exe')
try_and_print(message='JDK 8 (x64).exe', function=download_file, other_results=other_results, out_dir=_path, out_name='JDK 8 (x64).exe', source_url='https://ninite.com/jdkx8/ninite.exe')
try_and_print(message='Notepad++.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Notepad++.exe', source_url='https://ninite.com/notepadplusplus/ninite.exe')
try_and_print(message='PuTTY.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='PuTTY.exe', source_url='https://ninite.com/putty/ninite.exe')
try_and_print(message='Python 2.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Python 2.exe', source_url='https://ninite.com/python/ninite.exe')
try_and_print(message='Visual Studio Code.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Visual Studio Code.exe', source_url='https://ninite.com/vscode/ninite.exe')
try_and_print(message='WinMerge.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='WinMerge.exe', source_url='https://ninite.com/winmerge/ninite.exe')
try_and_print(message='WinSCP.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='WinSCP.exe', source_url='https://ninite.com/winscp/ninite.exe')
# Ninite - File Sharing
print_success(' '*4 + 'File Sharing')
_path = '{BaseDir}\\Installers\\Extras\\File Sharing'.format(**global_vars)
try_and_print(message='eMule.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='eMule.exe', source_url='https://ninite.com/emule/ninite.exe')
try_and_print(message='qBittorrent.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='qBittorrent.exe', source_url='https://ninite.com/qbittorrent/ninite.exe')
# Ninite - Image-Photo
print_success(' '*4 + 'Image-Photo')
_path = '{BaseDir}\\Installers\\Extras\\Image-Photo'.format(**global_vars)
try_and_print(message='FastStone.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='FastStone.exe', source_url='https://ninite.com/faststone/ninite.exe')
try_and_print(message='GIMP.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='GIMP.exe', source_url='https://ninite.com/gimp/ninite.exe')
try_and_print(message='Greenshot.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Greenshot.exe', source_url='https://ninite.com/greenshot/ninite.exe')
try_and_print(message='Inkscape.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Inkscape.exe', source_url='https://ninite.com/inkscape/ninite.exe')
try_and_print(message='IrfanView.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='IrfanView.exe', source_url='https://ninite.com/irfanview/ninite.exe')
try_and_print(message='Paint.NET.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Paint.NET.exe', source_url='https://ninite.com/paint.net/ninite.exe')
try_and_print(message='ShareX.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='ShareX.exe', source_url='https://ninite.com/sharex/ninite.exe')
try_and_print(message='XnView.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='XnView.exe', source_url='https://ninite.com/xnview/ninite.exe')
# Ninite - Misc
print_success(' '*4 + 'Misc')
_path = '{BaseDir}\\Installers\\Extras\\Misc'.format(**global_vars)
try_and_print(message='Classic Start.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Classic Start.exe', source_url='https://ninite.com/classicstart/ninite.exe')
try_and_print(message='Evernote.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Evernote.exe', source_url='https://ninite.com/evernote/ninite.exe')
try_and_print(message='Everything.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Everything.exe', source_url='https://ninite.com/everything/ninite.exe')
try_and_print(message='Google Earth.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Google Earth.exe', source_url='https://ninite.com/googleearth/ninite.exe')
try_and_print(message='NV Access.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='NV Access.exe', source_url='https://ninite.com/nvda/ninite.exe')
try_and_print(message='Steam.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Steam.exe', source_url='https://ninite.com/steam/ninite.exe')
# Ninite - Office
print_success(' '*4 + 'Office')
_path = '{BaseDir}\\Installers\\Extras\\Office'.format(**global_vars)
try_and_print(message='CutePDF.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='CutePDF.exe', source_url='https://ninite.com/cutepdf/ninite.exe')
try_and_print(message='Foxit Reader.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Foxit Reader.exe', source_url='https://ninite.com/foxit/ninite.exe')
try_and_print(message='LibreOffice.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='LibreOffice.exe', source_url='https://ninite.com/libreoffice/ninite.exe')
try_and_print(message='OpenOffice.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='OpenOffice.exe', source_url='https://ninite.com/openoffice/ninite.exe')
try_and_print(message='PDFCreator.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='PDFCreator.exe', source_url='https://ninite.com/pdfcreator/ninite.exe')
try_and_print(message='SumatraPDF.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='SumatraPDF.exe', source_url='https://ninite.com/sumatrapdf/ninite.exe')
try_and_print(message='Thunderbird.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Thunderbird.exe', source_url='https://ninite.com/thunderbird/ninite.exe')
# Ninite - Runtimes
print_success(' '*4 + 'Runtimes')
_path = '{BaseDir}\\Installers\\Extras\\Runtimes'.format(**global_vars)
try_and_print(message='Adobe Air.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Adobe Air.exe', source_url='https://ninite.com/air/ninite.exe')
try_and_print(message='dotNET.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='dotNET.exe', source_url='https://ninite.com/.net4.6.2/ninite.exe')
try_and_print(message='Java 8.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Java 8.exe', source_url='https://ninite.com/java8/ninite.exe')
try_and_print(message='Shockwave.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Shockwave.exe', source_url='https://ninite.com/shockwave/ninite.exe')
try_and_print(message='Silverlight.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Silverlight.exe', source_url='https://ninite.com/silverlight/ninite.exe')
# Ninite - Security
print_success(' '*4 + 'Security')
_path = '{BaseDir}\\Installers\\Extras\\Security'.format(**global_vars)
try_and_print(message='Ad-Aware.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Ad-Aware.exe', source_url='https://ninite.com/adaware/ninite.exe')
try_and_print(message='Avast.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Avast.exe', source_url='https://ninite.com/avast/ninite.exe')
try_and_print(message='AVG.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='AVG.exe', source_url='https://ninite.com/avg/ninite.exe')
try_and_print(message='Avira.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Avira.exe', source_url='https://ninite.com/avira/ninite.exe')
try_and_print(message='Microsoft Security Essentials.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Microsoft Security Essentials.exe', source_url='https://ninite.com/essentials/ninite.exe')
try_and_print(message='Malwarebytes Anti-Malware.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Malwarebytes Anti-Malware.exe', source_url='https://ninite.com/malwarebytes/ninite.exe')
try_and_print(message='Spybot 2.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Spybot 2.exe', source_url='https://ninite.com/spybot2/ninite.exe')
try_and_print(message='SUPERAntiSpyware.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='SUPERAntiSpyware.exe', source_url='https://ninite.com/super/ninite.exe')
# Ninite - Utilities
print_success(' '*4 + 'Utilities')
_path = '{BaseDir}\\Installers\\Extras\\Utilities'.format(**global_vars)
try_and_print(message='Auslogics DiskDefrag.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Auslogics DiskDefrag.exe', source_url='https://ninite.com/auslogics/ninite.exe')
try_and_print(message='CDBurnerXP.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='CDBurnerXP.exe', source_url='https://ninite.com/cdburnerxp/ninite.exe')
try_and_print(message='Glary Utilities.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Glary Utilities.exe', source_url='https://ninite.com/glary/ninite.exe')
try_and_print(message='ImgBurn.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='ImgBurn.exe', source_url='https://ninite.com/imgburn/ninite.exe')
try_and_print(message='InfraRecorder.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='InfraRecorder.exe', source_url='https://ninite.com/infrarecorder/ninite.exe')
try_and_print(message='KeePass 2.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='KeePass 2.exe', source_url='https://ninite.com/keepass2/ninite.exe')
try_and_print(message='Launchy.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Launchy.exe', source_url='https://ninite.com/launchy/ninite.exe')
try_and_print(message='RealVNC.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='RealVNC.exe', source_url='https://ninite.com/realvnc/ninite.exe')
try_and_print(message='Revo Uninstaller.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Revo Uninstaller.exe', source_url='https://ninite.com/revo/ninite.exe')
try_and_print(message='TeamViewer 11.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='TeamViewer 11.exe', source_url='https://ninite.com/teamviewer11/ninite.exe')
try_and_print(message='TeraCopy.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='TeraCopy.exe', source_url='https://ninite.com/teracopy/ninite.exe')
try_and_print(message='WinDirStat.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='WinDirStat.exe', source_url='https://ninite.com/windirstat/ninite.exe')
# Ninite - Web Browsers
print_success(' '*4 + 'Web Browsers')
_path = '{BaseDir}\\Installers\\Extras\\Web Browsers'.format(**global_vars)
try_and_print(message='Google Chrome.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Google Chrome.exe', source_url='https://ninite.com/chrome/ninite.exe')
try_and_print(message='Mozilla Firefox.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Mozilla Firefox.exe', source_url='https://ninite.com/firefox/ninite.exe')
try_and_print(message='Opera Chromium.exe', function=download_file, other_results=other_results, out_dir=_path, out_name='Opera Chromium.exe', source_url='https://ninite.com/operaChromium/ninite.exe')
# Misc
print_info('Misc')
try_and_print(message='SysinternalsSuite...', function=update_sysinternalssuite, other_results=other_results)
# Done
print_standard('\nDone.')
pause("Press Enter to exit...")
exit_script()
except SystemExit:
pass
except:
major_exception()

View file

@ -1,87 +1,94 @@
# Wizard Kit: User Checklist
import os
import sys
# Init
os.chdir(os.path.dirname(os.path.realpath(__file__)))
os.system('title Wizard Kit: User Checklist Tool')
sys.path.append(os.getcwd())
from functions import *
init_global_vars()
set_global_vars(LogFile='{LogDir}\\User Checklist ({USERNAME}).log'.format(**global_vars, **global_vars['Env']))
global_vars['LogFile'] = '{LogDir}\\User Checklist ({USERNAME}).log'.format(**global_vars, **global_vars['Env'])
def abort():
print_warning('Aborted.')
exit_script()
if __name__ == '__main__':
stay_awake()
os.system('cls')
other_results = {
'Warning': {
'NotInstalledError': 'Not installed',
'NoProfilesError': 'No profiles found',
}}
answer_config_browsers = ask('Configure Browsers to WK Standards?')
if answer_config_browsers:
answer_reset_browsers = ask('Reset browsers to safe defaults?')
if global_vars['OS']['Version'] == '10':
answer_config_classicshell = ask('Configure ClassicShell to WK Standards?')
answer_config_explorer = ask('Configure Explorer to WK Standards?')
# Cleanup
print_info('Cleanup')
try_and_print(message='Desktop...', function=cleanup_desktop, cs='Done')
# Homepages
print_info('Current homepages')
list_homepages()
# Backup
print_info('Backing up browsers')
try_and_print(message='Chromium...', function=backup_chromium, cs='CS', ns='NS', other_results=other_results)
try_and_print(message='Google Chrome...', function=backup_chrome, cs='CS', ns='NS', other_results=other_results)
try_and_print(message='Google Chrome Canary...', function=backup_chrome_canary, cs='CS', ns='NS', other_results=other_results)
try_and_print(message='Internet Explorer...', function=backup_internet_explorer, cs='CS', ns='NS', other_results=other_results)
try_and_print(message='Mozilla Firefox (All)...', function=backup_firefox, cs='CS', ns='NS', other_results=other_results)
try_and_print(message='Opera...', function=backup_opera, cs='CS', ns='NS', other_results=other_results)
try_and_print(message='Opera Beta...', function=backup_opera_beta, cs='CS', ns='NS', other_results=other_results)
try_and_print(message='Opera Dev...', function=backup_opera_dev, cs='CS', ns='NS', other_results=other_results)
# Reset
if answer_config_browsers and answer_reset_browsers:
print_info('Resetting browsers')
try_and_print(message='Internet Explorer...', function=clean_internet_explorer, cs='Done')
try_and_print(message='Google Chrome...', function=reset_google_chrome, cs='CS', ns='NS', other_results=other_results)
try_and_print(message='Google Chrome Canary...', function=reset_google_chrome_canary, cs='CS', ns='NS', other_results=other_results)
try_and_print(message='Mozilla Firefox...', function=reset_mozilla_firefox, cs='CS', ns='NS', other_results=other_results)
try_and_print(message='Opera...', function=reset_opera, cs='CS', ns='NS', other_results=other_results)
try_and_print(message='Opera Beta...', function=reset_opera_beta, cs='CS', ns='NS', other_results=other_results)
try_and_print(message='Opera Dev...', function=reset_opera_dev, cs='CS', ns='NS', other_results=other_results)
# Configure
print_info('Configuring programs')
if answer_config_browsers:
try_and_print(message='Internet Explorer...', function=config_internet_explorer, cs='Done')
try_and_print(message='Google Chrome...', function=config_google_chrome, cs='Done', other_results=other_results)
try_and_print(message='Google Chrome Canary...', function=config_google_chrome_canary, cs='Done', other_results=other_results)
try_and_print(message='Mozilla Firefox...', function=config_mozilla_firefox, cs='Done', other_results=other_results)
try_and_print(message='Mozilla Firefox Dev...', function=config_mozilla_firefox_dev, cs='Done', other_results=other_results)
try_and_print(message='Opera...', function=config_opera, cs='Done', other_results=other_results)
try_and_print(message='Opera Beta...', function=config_opera_beta, cs='Done', other_results=other_results)
try_and_print(message='Opera Dev...', function=config_opera_dev, cs='Done', other_results=other_results)
try_and_print(message='Set default browser...', function=set_chrome_as_default, cs='Done', other_results=other_results)
if global_vars['OS']['Version'] == '10':
if answer_config_classicshell:
try_and_print(message='ClassicStart...', function=config_classicstart, cs='Done')
# if answer_config_explorer:
# try_and_print(message='Explorer...', function=config_explorer, cs='Done')
if not answer_config_browsers and not answer_config_classicshell and not answer_config_explorer:
print_warning(' Skipped')
else:
if not answer_config_browsers:
print_warning(' Skipped')
# Done
print_standard('\nDone.')
pause('Press Enter to exit...')
exit_script()
try:
stay_awake()
os.system('cls')
other_results = {
'Warning': {
'NotInstalledError': 'Not installed',
'NoProfilesError': 'No profiles found',
}}
answer_config_browsers = ask('Configure Browsers to WK Standards?')
if answer_config_browsers:
answer_reset_browsers = ask('Reset browsers to safe defaults first?')
if global_vars['OS']['Version'] == '10':
answer_config_classicshell = ask('Configure ClassicShell to WK Standards?')
answer_config_explorer_user = ask('Configure Explorer to WK Standards?')
# Cleanup
print_info('Cleanup')
try_and_print(message='Desktop...', function=cleanup_desktop, cs='Done')
# Homepages
print_info('Current homepages')
list_homepages()
# Backup
print_info('Backing up browsers')
try_and_print(message='Chromium...', function=backup_chromium, other_results=other_results)
try_and_print(message='Google Chrome...', function=backup_chrome, other_results=other_results)
try_and_print(message='Google Chrome Canary...', function=backup_chrome_canary, other_results=other_results)
try_and_print(message='Internet Explorer...', function=backup_internet_explorer, other_results=other_results)
try_and_print(message='Mozilla Firefox (All)...', function=backup_firefox, other_results=other_results)
try_and_print(message='Opera...', function=backup_opera, other_results=other_results)
try_and_print(message='Opera Beta...', function=backup_opera_beta, other_results=other_results)
try_and_print(message='Opera Dev...', function=backup_opera_dev, other_results=other_results)
# Reset
if answer_config_browsers and answer_reset_browsers:
print_info('Resetting browsers')
try_and_print(message='Internet Explorer...', function=clean_internet_explorer, cs='Done')
try_and_print(message='Google Chrome...', function=reset_google_chrome, other_results=other_results)
try_and_print(message='Google Chrome Canary...', function=reset_google_chrome_canary, other_results=other_results)
try_and_print(message='Mozilla Firefox...', function=reset_mozilla_firefox, other_results=other_results)
try_and_print(message='Opera...', function=reset_opera, other_results=other_results)
try_and_print(message='Opera Beta...', function=reset_opera_beta, other_results=other_results)
try_and_print(message='Opera Dev...', function=reset_opera_dev, other_results=other_results)
# Configure
print_info('Configuring programs')
if answer_config_browsers:
try_and_print(message='Internet Explorer...', function=config_internet_explorer, cs='Done')
try_and_print(message='Google Chrome...', function=config_google_chrome, cs='Done', other_results=other_results)
try_and_print(message='Google Chrome Canary...', function=config_google_chrome_canary, cs='Done', other_results=other_results)
try_and_print(message='Mozilla Firefox...', function=config_mozilla_firefox, cs='Done', other_results=other_results)
try_and_print(message='Mozilla Firefox Dev...', function=config_mozilla_firefox_dev, cs='Done', other_results=other_results)
try_and_print(message='Opera...', function=config_opera, cs='Done', other_results=other_results)
try_and_print(message='Opera Beta...', function=config_opera_beta, cs='Done', other_results=other_results)
try_and_print(message='Opera Dev...', function=config_opera_dev, cs='Done', other_results=other_results)
try_and_print(message='Set default browser...', function=set_chrome_as_default, cs='Done', other_results=other_results)
if global_vars['OS']['Version'] == '10':
if answer_config_classicshell:
try_and_print(message='ClassicStart...', function=config_classicstart, cs='Done')
if answer_config_explorer_user:
try_and_print(message='Explorer...', function=config_explorer_user, cs='Done')
if not answer_config_browsers and not answer_config_classicshell and not answer_config_explorer_user:
print_warning(' Skipped')
else:
if not answer_config_browsers:
print_warning(' Skipped')
# Done
print_standard('\nDone.')
pause('Press Enter to exit...')
exit_script()
except SystemExit:
pass
except:
major_exception()

View file

@ -1,198 +1,54 @@
# Wizard Kit: Copy user data to the system over the network
import os
import re
from operator import itemgetter
import sys
# Init
os.chdir(os.path.dirname(os.path.realpath(__file__)))
os.system('title Wizard Kit: Data 1')
sys.path.append(os.getcwd())
from functions import *
init_global_vars()
set_global_vars(LogFile='{LogDir}\\Data 1.log'.format(**global_vars))
set_global_vars(TransferDir='{ClientDir}\\Transfer'.format(**global_vars))
global_vars['LogFile'] = '{LogDir}\\Data 1.log'.format(**global_vars)
global_vars['Data'] = {}
def abort():
umount_backup_shares()
print_warning('Aborted.')
exit_script(global_vars)
def transfer_file_based(source_path, subdir=None):
# Set Destination
if subdir is None:
dest_path = global_vars['TransferDir']
else:
dest_path = '{TransferDir}\\{subdir}'.format(subdir=subdir, **global_vars)
os.makedirs(dest_path, exist_ok=True)
# Main copy
selected_items = []
for item in os.scandir(source_path):
if REGEX_INCL_ROOT_ITEMS.search(item.name):
selected_items.append(item.path)
elif not REGEX_EXCL_ROOT_ITEMS.search(item.name):
if ask('Copy: "{name}" item?'.format(name=item.name)):
selected_items.append(item.path)
if len(selected_items) > 0:
_args = global_vars['FastCopyArgs'].copy() + selected_items
_args.append('/to={dest_path}\\'.format(dest_path=dest_path))
try:
print_standard('Copying main user data...')
run_program(global_vars['FastCopy'], _args, check=True)
except subprocess.CalledProcessError:
print_warning('WARNING: Errors encountered while copying main user data')
else:
print_error('ERROR: No files selected for transfer?')
abort()
# Fonts
selected_items = []
if os.path.exists('{source}\\Windows\\Fonts'.format(source=source_path)):
selected_items.append('{source}\\Windows\\Fonts'.format(source=source_path))
if len(selected_items) > 0:
_args = global_vars['FastCopyArgs'].copy() + selected_items
_args.append('/to={dest_path}\\Windows\\'.format(dest_path=dest_path))
try:
print_standard('Copying Fonts...')
run_program(global_vars['FastCopy'], _args, check=True)
except subprocess.CalledProcessError:
print_warning('WARNING: Errors encountered while copying Fonts')
# Registry
selected_items = []
if os.path.exists('{source}\\Windows\\System32\\config'.format(source=source_path)):
selected_items.append('{source}\\Windows\\System32\\config'.format(source=source_path))
if os.path.exists('{source}\\Windows\\System32\\OEM'.format(source=source_path)):
selected_items.append('{source}\\Windows\\System32\\OEM'.format(source=source_path))
if len(selected_items) > 0:
_args = global_vars['FastCopyArgs'].copy() + selected_items
_args.append('/to={dest_path}\\Windows\\System32\\'.format(dest_path=dest_path))
try:
print_standard('Copying Registry...')
run_program(global_vars['FastCopy'], _args, check=True)
except subprocess.CalledProcessError:
print_warning('WARNING: Errors encountered while copying registry')
def transfer_image_based(source_path):
print_standard('Assessing image...')
os.makedirs(global_vars['TransferDir'], exist_ok=True)
# Scan source
_args = [
'dir',
'{source}'.format(source=source_path), '1']
try:
_list = run_program(global_vars['Tools']['wimlib-imagex'], _args, check=True)
except subprocess.CalledProcessError as err:
print_error('ERROR: Failed to get file list.')
print(err)
abort()
# Add items to list
selected_items = []
root_items = [i.strip() for i in _list.stdout.decode('utf-8', 'ignore').splitlines() if i.count('\\') == 1 and i.strip() != '\\']
for item in root_items:
if REGEX_INCL_ROOT_ITEMS.search(item):
selected_items.append(item)
elif not REGEX_EXCL_ROOT_ITEMS.search(item):
if ask('Extract: "{name}" item?'.format(name=item)):
selected_items.append(item)
# Extract files
if len(selected_items) > 0:
# Write files.txt
with open('{TmpDir}\\wim_files.txt'.format(**global_vars), 'w') as f:
# Defaults
for item in EXTRA_INCL_WIM_ITEMS:
f.write('{item}\n'.format(item=item))
for item in selected_items:
f.write('{item}\n'.format(item=item))
try:
print_standard('Extracting user data...')
_args = [
'extract',
'{source}'.format(source=source_path), '1',
'@{TmpDir}\\wim_files.txt'.format(**global_vars),
'--dest-dir={TransferDir}\\'.format(**global_vars),
'--no-acls',
'--nullglob']
run_program(global_vars['Tools']['wimlib-imagex'], _args, check=True)
except subprocess.CalledProcessError:
print_warning('WARNING: Errors encountered while extracting user data')
else:
print_error('ERROR: No files selected for extraction?')
abort()
pause("Press Enter to exit...")
exit_script()
if __name__ == '__main__':
stay_awake(global_vars)
# Check for existing TransferDir
if os.path.exists(global_vars['TransferDir']):
print_warning('Folder "{TransferDir}" exists. This script will rename the existing folder in order to avoid overwriting data.'.format(**global_vars))
if (ask('Rename existing folder and proceed?')):
_old_transfer = '{TransferDir}.old'.format(**global_vars)
_i = 1;
while os.path.exists(_old_transfer):
_old_transfer = '{TransferDir}.old{i}'.format(i=_i, **global_vars)
_i += 1
print_info('Renaming "{TransferDir}" to "{old_transfer}"'.format(old_transfer=_old_transfer, **global_vars))
os.rename(global_vars['TransferDir'], _old_transfer)
else:
try:
# Prep
stay_awake()
get_ticket_number()
os.system('cls')
select_destination()
select_backup()
scan_backup()
# Transfer
os.system('cls')
print_info('Transfer Details:\n')
show_info('Ticket:', global_vars['TicketNumber'])
show_info('Source:', global_vars['Data']['Source'].path)
show_info('Destination:', global_vars['Data']['Destination'])
if (not ask('Proceed with transfer?')):
abort()
# Set ticket number
ticket = None
while ticket is None:
tmp = input('Enter ticket number: ')
if re.match(r'^([0-9]+([-_]?\w+|))$', tmp):
ticket = tmp
# Get backup
backup_source = select_backup(ticket)
if backup_source is None:
abort()
# Determine restore method
extract_item('wimlib', global_vars, silent=True)
restore_source = None
restore_options = []
_file_based = False
for item in os.scandir(backup_source.path):
if item.is_dir():
_file_based = True
restore_options.append({'Name': 'File-Based:\t{source}'.format(source=item.name), 'Source': item})
for _subitem in os.scandir(item.path):
if is_valid_wim_image(_subitem):
restore_options.append({'Name': 'Image-Based: {dir}\\{source}'.format(dir=item.name, source=_subitem.name), 'Source': _subitem})
elif is_valid_wim_image(item):
restore_options.append({'Name': 'Image-Based:\t{source}'.format(source=item.name), 'Source': item})
if _file_based:
restore_options.append({'Name': 'File-Based:\t.', 'Source': backup_source})
restore_options = sorted(restore_options, key=itemgetter('Name'))
actions = [{'Name': 'Quit', 'Letter': 'Q'}]
if len(restore_options) > 0:
selection = menu_select('Which backup are we using? (Path: {path})'.format(path=backup_source.path), restore_options, actions)
if selection == 'Q':
abort()
else:
restore_source = restore_options[int(selection)-1]['Source']
else:
print_error('ERROR: No restoration options detected.')
abort()
# Start transfer
print_info('Using backup: {path}'.format(path=restore_source.path))
if restore_source.is_dir():
transfer_file_based(restore_source.path)
# Check for Windows.old*
for item in os.scandir(restore_source.path):
if item.is_dir() and re.search(r'^Windows.old', item.name, re.IGNORECASE):
transfer_file_based(item.path, subdir=item.name)
if restore_source.is_file():
transfer_image_based(restore_source.path)
cleanup_transfer()
# Done
umount_backup_shares()
print_success('Done.')
run_kvrt()
pause("Press Enter to exit...")
exit_script(global_vars)
print_info('Transferring Data')
transfer_backup()
try_and_print(message='Removing extra files...', function=cleanup_transfer, cs='Done')
umount_backup_shares()
# Done
run_kvrt()
print_standard('\nDone.')
pause("Press Enter to exit...")
exit_script()
except SystemExit:
pass
except:
major_exception()

View file

@ -71,15 +71,15 @@ set _sources=%_sources% "%source%\Uninstallers"
set _sources=%_sources% "%source%\Activate Windows.cmd"
set _sources=%_sources% "%source%\Enter SafeMode.cmd"
set _sources=%_sources% "%source%\Exit SafeMode.cmd"
set _sources=%_sources% "%source%\Reset Browsers.cmd"
set _sources=%_sources% "%source%\SW Diagnostics.cmd"
set _sources=%_sources% "%source%\SW Final Checklist.cmd"
set _sources=%_sources% "%source%\System Checklist.cmd"
set _sources=%_sources% "%source%\System Diagnostics.cmd"
set _sources=%_sources% "%source%\User Checklist.cmd"
start "" /wait "%fastcopy%" %fastcopy_args% /exclude="Snappy Driver Installer.cmd;*.exe" %_sources% /to="%dest%\"
start "" /wait "%fastcopy%" %fastcopy_args% "%source%\Installers\Extras\Office\Adobe Reader DC.exe" /to="%dest%\Installers\Extras\Office\"
:Ninite
echo Extracting Ninite installers...
"%SEVEN_ZIP%" x "%cbin%\_Ninite.7z" -aoa -bso0 -bse0 -bsp0 -p%ARCHIVE_PASS% -o"%dest%\Installers\Extras" || goto Abort
"%SEVEN_ZIP%" x "%cbin%\_Ninite.7z" -aos -bso0 -bse0 -bsp0 -p%ARCHIVE_PASS% -o"%dest%\Installers\Extras" || goto Abort
:OpenFolder
start "" explorer "%dest%"

View file

@ -33,7 +33,7 @@ call "%bin%\Scripts\init_client_dir.cmd" /Info /Transfer
set L_TYPE=Program
set L_PATH=FastCopy
set L_ITEM=FastCopy.exe
set L_ARGS=/logfile=%log_dir%\FastCopy.log /cmd=noexist_only /utf8 /skip_empty_dir /linkdest /exclude=$RECYCLE.BIN;$Recycle.Bin;.AppleDB;.AppleDesktop;.AppleDouble;.com.apple.timemachine.supported;.dbfseventsd;.DocumentRevisions-V100*;.DS_Store;.fseventsd;.PKInstallSandboxManager;.Spotlight*;.SymAV*;.symSchedScanLockxz;.TemporaryItems;.Trash*;.vol;.VolumeIcon.icns;desktop.ini;Desktop?DB;Desktop?DF;hiberfil.sys;lost+found;Network?Trash?Folder;pagefile.sys;Recycled;RECYCLER;System?Volume?Information;Temporary?Items;Thumbs.db /to=%client_dir%\Transfer\
set L_ARGS=/logfile=%log_dir%\FastCopy.log /cmd=noexist_only /utf8 /skip_empty_dir /linkdest /exclude=$RECYCLE.BIN;$Recycle.Bin;.AppleDB;.AppleDesktop;.AppleDouble;.com.apple.timemachine.supported;.dbfseventsd;.DocumentRevisions-V100*;.DS_Store;.fseventsd;.PKInstallSandboxManager;.Spotlight*;.SymAV*;.symSchedScanLockxz;.TemporaryItems;.Trash*;.vol;.VolumeIcon.icns;desktop.ini;Desktop?DB;Desktop?DF;hiberfil.sys;lost+found;Network?Trash?Folder;pagefile.sys;Recycled;RECYCLER;System?Volume?Information;Temporary?Items;Thumbs.db /to=%client_dir%\Transfer_%iso_date%\
set L_7ZIP=
set L_CHCK=True
set L_ELEV=True
@ -109,4 +109,4 @@ goto Exit
:: Cleanup and exit ::
:Exit
endlocal
exit /b %errorlevel%
exit /b %errorlevel%

View file

@ -33,7 +33,7 @@ call "%bin%\Scripts\init_client_dir.cmd" /Info /Transfer
set L_TYPE=Program
set L_PATH=FastCopy
set L_ITEM=FastCopy.exe
set L_ARGS=/logfile=%log_dir%\FastCopy.log /cmd=noexist_only /utf8 /skip_empty_dir /linkdest /exclude=$RECYCLE.BIN;$Recycle.Bin;.AppleDB;.AppleDesktop;.AppleDouble;.com.apple.timemachine.supported;.dbfseventsd;.DocumentRevisions-V100*;.DS_Store;.fseventsd;.PKInstallSandboxManager;.Spotlight*;.SymAV*;.symSchedScanLockxz;.TemporaryItems;.Trash*;.vol;.VolumeIcon.icns;desktop.ini;Desktop?DB;Desktop?DF;hiberfil.sys;lost+found;Network?Trash?Folder;pagefile.sys;Recycled;RECYCLER;System?Volume?Information;Temporary?Items;Thumbs.db /to=%client_dir%\Transfer\
set L_ARGS=/logfile=%log_dir%\FastCopy.log /cmd=noexist_only /utf8 /skip_empty_dir /linkdest /exclude=$RECYCLE.BIN;$Recycle.Bin;.AppleDB;.AppleDesktop;.AppleDouble;.com.apple.timemachine.supported;.dbfseventsd;.DocumentRevisions-V100*;.DS_Store;.fseventsd;.PKInstallSandboxManager;.Spotlight*;.SymAV*;.symSchedScanLockxz;.TemporaryItems;.Trash*;.vol;.VolumeIcon.icns;desktop.ini;Desktop?DB;Desktop?DF;hiberfil.sys;lost+found;Network?Trash?Folder;pagefile.sys;Recycled;RECYCLER;System?Volume?Information;Temporary?Items;Thumbs.db /to=%client_dir%\Transfer_%iso_date%\
set L_7ZIP=
set L_CHCK=True
set L_ELEV=
@ -109,4 +109,4 @@ goto Exit
:: Cleanup and exit ::
:Exit
endlocal
exit /b %errorlevel%
exit /b %errorlevel%

View file

@ -35,7 +35,7 @@ set L_ITEM=user_data_transfer.py
set L_ARGS=
set L_7ZIP=
set L_CHCK=True
set L_ELEV=
set L_ELEV=True
set L_NCMD=
set L_WAIT=

View file

@ -29,14 +29,14 @@ call :FindBin
:: Set L_ELEV to True to launch with elevated permissions
:: Set L_NCMD to True to stay in the native console window
:: Set L_WAIT to True to have the script wait until L_ITEM has comlpeted
set L_TYPE=Folder
set L_PATH=_Removal Tools
set L_ITEM=.
set L_TYPE=Program
set L_PATH=Display Driver Uninstaller
set L_ITEM=Display Driver Uninstaller.exe
set L_ARGS=
set L_7ZIP=
set L_CHCK=True
set L_ELEV=
set L_NCMD=
set L_NCMD=True
set L_WAIT=
:::::::::::::::::::::::::::::::::::::::::::

View file

@ -1,110 +0,0 @@
:: Wizard Kit: Launcher Script ::
::
:: This script works by setting env variables and then calling Launch.cmd
:: which inherits the variables. This bypasses batch file argument parsing
:: which is awful.
@echo off
:Init
setlocal
title Wizard Kit: Launcher
call :CheckFlags %*
call :FindBin
:DefineLaunch
:: Set L_TYPE to one of these options:
:: Console
:: Office
:: Program
:: PSScript
:: PyScript
:: Set L_PATH to the path to the program folder
:: NOTE: Launch.cmd will test for L_PATH in the following order:
:: 1: %bin%\L_PATH
:: 2: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH)
:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path)
:: Set L_ITEM to the filename of the item to launch (or Office product to install)
:: Set L_ARGS to include any necessary arguments (if any)
:: Set L_CHCK to True to have Launch.cmd to stay open if an error is encountered
:: Set L_ELEV to True to launch with elevated permissions
:: Set L_NCMD to True to stay in the native console window
:: Set L_WAIT to True to have the script wait until L_ITEM has comlpeted
set L_TYPE=Office
set L_PATH=2007
set L_ITEM=2007 Microsoft Office system (SP3)
set L_ARGS=
set L_CHCK=True
set L_ELEV=
set L_NCMD=
set L_WAIT=
:::::::::::::::::::::::::::::::::::::::::::
:: Do not edit anything below this line! ::
:::::::::::::::::::::::::::::::::::::::::::
:LaunchPrep
rem Verifies the environment before launching item
if not defined bin (goto ErrorNoBin)
if not exist "%bin%\Scripts\Launch.cmd" (goto ErrorLaunchCMDMissing)
:Launch
rem Calls the Launch.cmd script using the variables defined above
call "%bin%\Scripts\Launch.cmd" || goto ErrorLaunchCMD
goto Exit
:: Functions ::
:CheckFlags
rem Loops through all arguments to check for accepted flags
set DEBUG=
for %%f in (%*) do (
if /i "%%f" == "/DEBUG" (@echo on & set "DEBUG=/DEBUG")
)
@exit /b 0
:FindBin
rem Checks the current directory and all parents for the ".bin" folder
rem NOTE: Has not been tested for UNC paths
set bin=
pushd "%~dp0"
:FindBinInner
if exist ".bin" (goto FindBinDone)
if "%~d0\" == "%cd%" (popd & @exit /b 1)
cd ..
goto FindBinInner
:FindBinDone
set "bin=%cd%\.bin"
set "cbin=%cd%\.cbin"
popd
@exit /b 0
:: Errors ::
:ErrorLaunchCMD
echo.
echo ERROR: Launch.cmd did not run correctly. Try using the /DEBUG flag?
goto Abort
:ErrorLaunchCMDMissing
echo.
echo ERROR: Launch.cmd script not found.
goto Abort
:ErrorNoBin
echo.
echo ERROR: ".bin" folder not found.
goto Abort
:Abort
color 4e
echo Aborted.
echo.
echo Press any key to exit...
pause>nul
color
rem Set errorlevel to 1 by calling color incorrectly
color 00
goto Exit
:: Cleanup and exit ::
:Exit
endlocal
exit /b %errorlevel%

View file

@ -1,110 +0,0 @@
:: Wizard Kit: Launcher Script ::
::
:: This script works by setting env variables and then calling Launch.cmd
:: which inherits the variables. This bypasses batch file argument parsing
:: which is awful.
@echo off
:Init
setlocal
title Wizard Kit: Launcher
call :CheckFlags %*
call :FindBin
:DefineLaunch
:: Set L_TYPE to one of these options:
:: Console
:: Office
:: Program
:: PSScript
:: PyScript
:: Set L_PATH to the path to the program folder
:: NOTE: Launch.cmd will test for L_PATH in the following order:
:: 1: %bin%\L_PATH
:: 2: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH)
:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path)
:: Set L_ITEM to the filename of the item to launch (or Office product to install)
:: Set L_ARGS to include any necessary arguments (if any)
:: Set L_CHCK to True to have Launch.cmd to stay open if an error is encountered
:: Set L_ELEV to True to launch with elevated permissions
:: Set L_NCMD to True to stay in the native console window
:: Set L_WAIT to True to have the script wait until L_ITEM has comlpeted
set L_TYPE=Office
set L_PATH=2007
set L_ITEM=Access 2007 (SP3)
set L_ARGS=
set L_CHCK=True
set L_ELEV=
set L_NCMD=
set L_WAIT=
:::::::::::::::::::::::::::::::::::::::::::
:: Do not edit anything below this line! ::
:::::::::::::::::::::::::::::::::::::::::::
:LaunchPrep
rem Verifies the environment before launching item
if not defined bin (goto ErrorNoBin)
if not exist "%bin%\Scripts\Launch.cmd" (goto ErrorLaunchCMDMissing)
:Launch
rem Calls the Launch.cmd script using the variables defined above
call "%bin%\Scripts\Launch.cmd" || goto ErrorLaunchCMD
goto Exit
:: Functions ::
:CheckFlags
rem Loops through all arguments to check for accepted flags
set DEBUG=
for %%f in (%*) do (
if /i "%%f" == "/DEBUG" (@echo on & set "DEBUG=/DEBUG")
)
@exit /b 0
:FindBin
rem Checks the current directory and all parents for the ".bin" folder
rem NOTE: Has not been tested for UNC paths
set bin=
pushd "%~dp0"
:FindBinInner
if exist ".bin" (goto FindBinDone)
if "%~d0\" == "%cd%" (popd & @exit /b 1)
cd ..
goto FindBinInner
:FindBinDone
set "bin=%cd%\.bin"
set "cbin=%cd%\.cbin"
popd
@exit /b 0
:: Errors ::
:ErrorLaunchCMD
echo.
echo ERROR: Launch.cmd did not run correctly. Try using the /DEBUG flag?
goto Abort
:ErrorLaunchCMDMissing
echo.
echo ERROR: Launch.cmd script not found.
goto Abort
:ErrorNoBin
echo.
echo ERROR: ".bin" folder not found.
goto Abort
:Abort
color 4e
echo Aborted.
echo.
echo Press any key to exit...
pause>nul
color
rem Set errorlevel to 1 by calling color incorrectly
color 00
goto Exit
:: Cleanup and exit ::
:Exit
endlocal
exit /b %errorlevel%

View file

@ -1,110 +0,0 @@
:: Wizard Kit: Launcher Script ::
::
:: This script works by setting env variables and then calling Launch.cmd
:: which inherits the variables. This bypasses batch file argument parsing
:: which is awful.
@echo off
:Init
setlocal
title Wizard Kit: Launcher
call :CheckFlags %*
call :FindBin
:DefineLaunch
:: Set L_TYPE to one of these options:
:: Console
:: Office
:: Program
:: PSScript
:: PyScript
:: Set L_PATH to the path to the program folder
:: NOTE: Launch.cmd will test for L_PATH in the following order:
:: 1: %bin%\L_PATH
:: 2: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH)
:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path)
:: Set L_ITEM to the filename of the item to launch (or Office product to install)
:: Set L_ARGS to include any necessary arguments (if any)
:: Set L_CHCK to True to have Launch.cmd to stay open if an error is encountered
:: Set L_ELEV to True to launch with elevated permissions
:: Set L_NCMD to True to stay in the native console window
:: Set L_WAIT to True to have the script wait until L_ITEM has comlpeted
set L_TYPE=Office
set L_PATH=2007
set L_ITEM=AccessRuntime2007.exe
set L_ARGS=
set L_CHCK=True
set L_ELEV=
set L_NCMD=
set L_WAIT=
:::::::::::::::::::::::::::::::::::::::::::
:: Do not edit anything below this line! ::
:::::::::::::::::::::::::::::::::::::::::::
:LaunchPrep
rem Verifies the environment before launching item
if not defined bin (goto ErrorNoBin)
if not exist "%bin%\Scripts\Launch.cmd" (goto ErrorLaunchCMDMissing)
:Launch
rem Calls the Launch.cmd script using the variables defined above
call "%bin%\Scripts\Launch.cmd" || goto ErrorLaunchCMD
goto Exit
:: Functions ::
:CheckFlags
rem Loops through all arguments to check for accepted flags
set DEBUG=
for %%f in (%*) do (
if /i "%%f" == "/DEBUG" (@echo on & set "DEBUG=/DEBUG")
)
@exit /b 0
:FindBin
rem Checks the current directory and all parents for the ".bin" folder
rem NOTE: Has not been tested for UNC paths
set bin=
pushd "%~dp0"
:FindBinInner
if exist ".bin" (goto FindBinDone)
if "%~d0\" == "%cd%" (popd & @exit /b 1)
cd ..
goto FindBinInner
:FindBinDone
set "bin=%cd%\.bin"
set "cbin=%cd%\.cbin"
popd
@exit /b 0
:: Errors ::
:ErrorLaunchCMD
echo.
echo ERROR: Launch.cmd did not run correctly. Try using the /DEBUG flag?
goto Abort
:ErrorLaunchCMDMissing
echo.
echo ERROR: Launch.cmd script not found.
goto Abort
:ErrorNoBin
echo.
echo ERROR: ".bin" folder not found.
goto Abort
:Abort
color 4e
echo Aborted.
echo.
echo Press any key to exit...
pause>nul
color
rem Set errorlevel to 1 by calling color incorrectly
color 00
goto Exit
:: Cleanup and exit ::
:Exit
endlocal
exit /b %errorlevel%

View file

@ -1,110 +0,0 @@
:: Wizard Kit: Launcher Script ::
::
:: This script works by setting env variables and then calling Launch.cmd
:: which inherits the variables. This bypasses batch file argument parsing
:: which is awful.
@echo off
:Init
setlocal
title Wizard Kit: Launcher
call :CheckFlags %*
call :FindBin
:DefineLaunch
:: Set L_TYPE to one of these options:
:: Console
:: Office
:: Program
:: PSScript
:: PyScript
:: Set L_PATH to the path to the program folder
:: NOTE: Launch.cmd will test for L_PATH in the following order:
:: 1: %bin%\L_PATH
:: 2: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH)
:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path)
:: Set L_ITEM to the filename of the item to launch (or Office product to install)
:: Set L_ARGS to include any necessary arguments (if any)
:: Set L_CHCK to True to have Launch.cmd to stay open if an error is encountered
:: Set L_ELEV to True to launch with elevated permissions
:: Set L_NCMD to True to stay in the native console window
:: Set L_WAIT to True to have the script wait until L_ITEM has comlpeted
set L_TYPE=Office
set L_PATH=2007
set L_ITEM=Home and Student 2007 (SP3)
set L_ARGS=
set L_CHCK=True
set L_ELEV=
set L_NCMD=
set L_WAIT=
:::::::::::::::::::::::::::::::::::::::::::
:: Do not edit anything below this line! ::
:::::::::::::::::::::::::::::::::::::::::::
:LaunchPrep
rem Verifies the environment before launching item
if not defined bin (goto ErrorNoBin)
if not exist "%bin%\Scripts\Launch.cmd" (goto ErrorLaunchCMDMissing)
:Launch
rem Calls the Launch.cmd script using the variables defined above
call "%bin%\Scripts\Launch.cmd" || goto ErrorLaunchCMD
goto Exit
:: Functions ::
:CheckFlags
rem Loops through all arguments to check for accepted flags
set DEBUG=
for %%f in (%*) do (
if /i "%%f" == "/DEBUG" (@echo on & set "DEBUG=/DEBUG")
)
@exit /b 0
:FindBin
rem Checks the current directory and all parents for the ".bin" folder
rem NOTE: Has not been tested for UNC paths
set bin=
pushd "%~dp0"
:FindBinInner
if exist ".bin" (goto FindBinDone)
if "%~d0\" == "%cd%" (popd & @exit /b 1)
cd ..
goto FindBinInner
:FindBinDone
set "bin=%cd%\.bin"
set "cbin=%cd%\.cbin"
popd
@exit /b 0
:: Errors ::
:ErrorLaunchCMD
echo.
echo ERROR: Launch.cmd did not run correctly. Try using the /DEBUG flag?
goto Abort
:ErrorLaunchCMDMissing
echo.
echo ERROR: Launch.cmd script not found.
goto Abort
:ErrorNoBin
echo.
echo ERROR: ".bin" folder not found.
goto Abort
:Abort
color 4e
echo Aborted.
echo.
echo Press any key to exit...
pause>nul
color
rem Set errorlevel to 1 by calling color incorrectly
color 00
goto Exit
:: Cleanup and exit ::
:Exit
endlocal
exit /b %errorlevel%

View file

@ -1,110 +0,0 @@
:: Wizard Kit: Launcher Script ::
::
:: This script works by setting env variables and then calling Launch.cmd
:: which inherits the variables. This bypasses batch file argument parsing
:: which is awful.
@echo off
:Init
setlocal
title Wizard Kit: Launcher
call :CheckFlags %*
call :FindBin
:DefineLaunch
:: Set L_TYPE to one of these options:
:: Console
:: Office
:: Program
:: PSScript
:: PyScript
:: Set L_PATH to the path to the program folder
:: NOTE: Launch.cmd will test for L_PATH in the following order:
:: 1: %bin%\L_PATH
:: 2: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH)
:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path)
:: Set L_ITEM to the filename of the item to launch (or Office product to install)
:: Set L_ARGS to include any necessary arguments (if any)
:: Set L_CHCK to True to have Launch.cmd to stay open if an error is encountered
:: Set L_ELEV to True to launch with elevated permissions
:: Set L_NCMD to True to stay in the native console window
:: Set L_WAIT to True to have the script wait until L_ITEM has comlpeted
set L_TYPE=Office
set L_PATH=2007
set L_ITEM=Outlook 2007 (SP3)
set L_ARGS=
set L_CHCK=True
set L_ELEV=
set L_NCMD=
set L_WAIT=
:::::::::::::::::::::::::::::::::::::::::::
:: Do not edit anything below this line! ::
:::::::::::::::::::::::::::::::::::::::::::
:LaunchPrep
rem Verifies the environment before launching item
if not defined bin (goto ErrorNoBin)
if not exist "%bin%\Scripts\Launch.cmd" (goto ErrorLaunchCMDMissing)
:Launch
rem Calls the Launch.cmd script using the variables defined above
call "%bin%\Scripts\Launch.cmd" || goto ErrorLaunchCMD
goto Exit
:: Functions ::
:CheckFlags
rem Loops through all arguments to check for accepted flags
set DEBUG=
for %%f in (%*) do (
if /i "%%f" == "/DEBUG" (@echo on & set "DEBUG=/DEBUG")
)
@exit /b 0
:FindBin
rem Checks the current directory and all parents for the ".bin" folder
rem NOTE: Has not been tested for UNC paths
set bin=
pushd "%~dp0"
:FindBinInner
if exist ".bin" (goto FindBinDone)
if "%~d0\" == "%cd%" (popd & @exit /b 1)
cd ..
goto FindBinInner
:FindBinDone
set "bin=%cd%\.bin"
set "cbin=%cd%\.cbin"
popd
@exit /b 0
:: Errors ::
:ErrorLaunchCMD
echo.
echo ERROR: Launch.cmd did not run correctly. Try using the /DEBUG flag?
goto Abort
:ErrorLaunchCMDMissing
echo.
echo ERROR: Launch.cmd script not found.
goto Abort
:ErrorNoBin
echo.
echo ERROR: ".bin" folder not found.
goto Abort
:Abort
color 4e
echo Aborted.
echo.
echo Press any key to exit...
pause>nul
color
rem Set errorlevel to 1 by calling color incorrectly
color 00
goto Exit
:: Cleanup and exit ::
:Exit
endlocal
exit /b %errorlevel%

View file

@ -1,110 +0,0 @@
:: Wizard Kit: Launcher Script ::
::
:: This script works by setting env variables and then calling Launch.cmd
:: which inherits the variables. This bypasses batch file argument parsing
:: which is awful.
@echo off
:Init
setlocal
title Wizard Kit: Launcher
call :CheckFlags %*
call :FindBin
:DefineLaunch
:: Set L_TYPE to one of these options:
:: Console
:: Office
:: Program
:: PSScript
:: PyScript
:: Set L_PATH to the path to the program folder
:: NOTE: Launch.cmd will test for L_PATH in the following order:
:: 1: %bin%\L_PATH
:: 2: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH)
:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path)
:: Set L_ITEM to the filename of the item to launch (or Office product to install)
:: Set L_ARGS to include any necessary arguments (if any)
:: Set L_CHCK to True to have Launch.cmd to stay open if an error is encountered
:: Set L_ELEV to True to launch with elevated permissions
:: Set L_NCMD to True to stay in the native console window
:: Set L_WAIT to True to have the script wait until L_ITEM has comlpeted
set L_TYPE=Office
set L_PATH=2007
set L_ITEM=Professional 2007 (SP3)
set L_ARGS=
set L_CHCK=True
set L_ELEV=
set L_NCMD=
set L_WAIT=
:::::::::::::::::::::::::::::::::::::::::::
:: Do not edit anything below this line! ::
:::::::::::::::::::::::::::::::::::::::::::
:LaunchPrep
rem Verifies the environment before launching item
if not defined bin (goto ErrorNoBin)
if not exist "%bin%\Scripts\Launch.cmd" (goto ErrorLaunchCMDMissing)
:Launch
rem Calls the Launch.cmd script using the variables defined above
call "%bin%\Scripts\Launch.cmd" || goto ErrorLaunchCMD
goto Exit
:: Functions ::
:CheckFlags
rem Loops through all arguments to check for accepted flags
set DEBUG=
for %%f in (%*) do (
if /i "%%f" == "/DEBUG" (@echo on & set "DEBUG=/DEBUG")
)
@exit /b 0
:FindBin
rem Checks the current directory and all parents for the ".bin" folder
rem NOTE: Has not been tested for UNC paths
set bin=
pushd "%~dp0"
:FindBinInner
if exist ".bin" (goto FindBinDone)
if "%~d0\" == "%cd%" (popd & @exit /b 1)
cd ..
goto FindBinInner
:FindBinDone
set "bin=%cd%\.bin"
set "cbin=%cd%\.cbin"
popd
@exit /b 0
:: Errors ::
:ErrorLaunchCMD
echo.
echo ERROR: Launch.cmd did not run correctly. Try using the /DEBUG flag?
goto Abort
:ErrorLaunchCMDMissing
echo.
echo ERROR: Launch.cmd script not found.
goto Abort
:ErrorNoBin
echo.
echo ERROR: ".bin" folder not found.
goto Abort
:Abort
color 4e
echo Aborted.
echo.
echo Press any key to exit...
pause>nul
color
rem Set errorlevel to 1 by calling color incorrectly
color 00
goto Exit
:: Cleanup and exit ::
:Exit
endlocal
exit /b %errorlevel%

View file

@ -1,110 +0,0 @@
:: Wizard Kit: Launcher Script ::
::
:: This script works by setting env variables and then calling Launch.cmd
:: which inherits the variables. This bypasses batch file argument parsing
:: which is awful.
@echo off
:Init
setlocal
title Wizard Kit: Launcher
call :CheckFlags %*
call :FindBin
:DefineLaunch
:: Set L_TYPE to one of these options:
:: Console
:: Office
:: Program
:: PSScript
:: PyScript
:: Set L_PATH to the path to the program folder
:: NOTE: Launch.cmd will test for L_PATH in the following order:
:: 1: %bin%\L_PATH
:: 2: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH)
:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path)
:: Set L_ITEM to the filename of the item to launch (or Office product to install)
:: Set L_ARGS to include any necessary arguments (if any)
:: Set L_CHCK to True to have Launch.cmd to stay open if an error is encountered
:: Set L_ELEV to True to launch with elevated permissions
:: Set L_NCMD to True to stay in the native console window
:: Set L_WAIT to True to have the script wait until L_ITEM has comlpeted
set L_TYPE=Office
set L_PATH=2007
set L_ITEM=Publisher 2007 (SP3)
set L_ARGS=
set L_CHCK=True
set L_ELEV=
set L_NCMD=
set L_WAIT=
:::::::::::::::::::::::::::::::::::::::::::
:: Do not edit anything below this line! ::
:::::::::::::::::::::::::::::::::::::::::::
:LaunchPrep
rem Verifies the environment before launching item
if not defined bin (goto ErrorNoBin)
if not exist "%bin%\Scripts\Launch.cmd" (goto ErrorLaunchCMDMissing)
:Launch
rem Calls the Launch.cmd script using the variables defined above
call "%bin%\Scripts\Launch.cmd" || goto ErrorLaunchCMD
goto Exit
:: Functions ::
:CheckFlags
rem Loops through all arguments to check for accepted flags
set DEBUG=
for %%f in (%*) do (
if /i "%%f" == "/DEBUG" (@echo on & set "DEBUG=/DEBUG")
)
@exit /b 0
:FindBin
rem Checks the current directory and all parents for the ".bin" folder
rem NOTE: Has not been tested for UNC paths
set bin=
pushd "%~dp0"
:FindBinInner
if exist ".bin" (goto FindBinDone)
if "%~d0\" == "%cd%" (popd & @exit /b 1)
cd ..
goto FindBinInner
:FindBinDone
set "bin=%cd%\.bin"
set "cbin=%cd%\.cbin"
popd
@exit /b 0
:: Errors ::
:ErrorLaunchCMD
echo.
echo ERROR: Launch.cmd did not run correctly. Try using the /DEBUG flag?
goto Abort
:ErrorLaunchCMDMissing
echo.
echo ERROR: Launch.cmd script not found.
goto Abort
:ErrorNoBin
echo.
echo ERROR: ".bin" folder not found.
goto Abort
:Abort
color 4e
echo Aborted.
echo.
echo Press any key to exit...
pause>nul
color
rem Set errorlevel to 1 by calling color incorrectly
color 00
goto Exit
:: Cleanup and exit ::
:Exit
endlocal
exit /b %errorlevel%

View file

@ -1,110 +0,0 @@
:: Wizard Kit: Launcher Script ::
::
:: This script works by setting env variables and then calling Launch.cmd
:: which inherits the variables. This bypasses batch file argument parsing
:: which is awful.
@echo off
:Init
setlocal
title Wizard Kit: Launcher
call :CheckFlags %*
call :FindBin
:DefineLaunch
:: Set L_TYPE to one of these options:
:: Console
:: Office
:: Program
:: PSScript
:: PyScript
:: Set L_PATH to the path to the program folder
:: NOTE: Launch.cmd will test for L_PATH in the following order:
:: 1: %bin%\L_PATH
:: 2: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH)
:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path)
:: Set L_ITEM to the filename of the item to launch (or Office product to install)
:: Set L_ARGS to include any necessary arguments (if any)
:: Set L_CHCK to True to have Launch.cmd to stay open if an error is encountered
:: Set L_ELEV to True to launch with elevated permissions
:: Set L_NCMD to True to stay in the native console window
:: Set L_WAIT to True to have the script wait until L_ITEM has comlpeted
set L_TYPE=Office
set L_PATH=2007
set L_ITEM=Small Business 2007 (SP3)
set L_ARGS=
set L_CHCK=True
set L_ELEV=
set L_NCMD=
set L_WAIT=
:::::::::::::::::::::::::::::::::::::::::::
:: Do not edit anything below this line! ::
:::::::::::::::::::::::::::::::::::::::::::
:LaunchPrep
rem Verifies the environment before launching item
if not defined bin (goto ErrorNoBin)
if not exist "%bin%\Scripts\Launch.cmd" (goto ErrorLaunchCMDMissing)
:Launch
rem Calls the Launch.cmd script using the variables defined above
call "%bin%\Scripts\Launch.cmd" || goto ErrorLaunchCMD
goto Exit
:: Functions ::
:CheckFlags
rem Loops through all arguments to check for accepted flags
set DEBUG=
for %%f in (%*) do (
if /i "%%f" == "/DEBUG" (@echo on & set "DEBUG=/DEBUG")
)
@exit /b 0
:FindBin
rem Checks the current directory and all parents for the ".bin" folder
rem NOTE: Has not been tested for UNC paths
set bin=
pushd "%~dp0"
:FindBinInner
if exist ".bin" (goto FindBinDone)
if "%~d0\" == "%cd%" (popd & @exit /b 1)
cd ..
goto FindBinInner
:FindBinDone
set "bin=%cd%\.bin"
set "cbin=%cd%\.cbin"
popd
@exit /b 0
:: Errors ::
:ErrorLaunchCMD
echo.
echo ERROR: Launch.cmd did not run correctly. Try using the /DEBUG flag?
goto Abort
:ErrorLaunchCMDMissing
echo.
echo ERROR: Launch.cmd script not found.
goto Abort
:ErrorNoBin
echo.
echo ERROR: ".bin" folder not found.
goto Abort
:Abort
color 4e
echo Aborted.
echo.
echo Press any key to exit...
pause>nul
color
rem Set errorlevel to 1 by calling color incorrectly
color 00
goto Exit
:: Cleanup and exit ::
:Exit
endlocal
exit /b %errorlevel%

View file

@ -1,110 +0,0 @@
:: Wizard Kit: Launcher Script ::
::
:: This script works by setting env variables and then calling Launch.cmd
:: which inherits the variables. This bypasses batch file argument parsing
:: which is awful.
@echo off
:Init
setlocal
title Wizard Kit: Launcher
call :CheckFlags %*
call :FindBin
:DefineLaunch
:: Set L_TYPE to one of these options:
:: Console
:: Office
:: Program
:: PSScript
:: PyScript
:: Set L_PATH to the path to the program folder
:: NOTE: Launch.cmd will test for L_PATH in the following order:
:: 1: %bin%\L_PATH
:: 2: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH)
:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path)
:: Set L_ITEM to the filename of the item to launch (or Office product to install)
:: Set L_ARGS to include any necessary arguments (if any)
:: Set L_CHCK to True to have Launch.cmd to stay open if an error is encountered
:: Set L_ELEV to True to launch with elevated permissions
:: Set L_NCMD to True to stay in the native console window
:: Set L_WAIT to True to have the script wait until L_ITEM has comlpeted
set L_TYPE=QuickBooks
set L_PATH=2007
set L_ITEM=QuickBooksPremier2007_R13
set L_ARGS=
set L_CHCK=True
set L_ELEV=
set L_NCMD=
set L_WAIT=
:::::::::::::::::::::::::::::::::::::::::::
:: Do not edit anything below this line! ::
:::::::::::::::::::::::::::::::::::::::::::
:LaunchPrep
rem Verifies the environment before launching item
if not defined bin (goto ErrorNoBin)
if not exist "%bin%\Scripts\Launch.cmd" (goto ErrorLaunchCMDMissing)
:Launch
rem Calls the Launch.cmd script using the variables defined above
call "%bin%\Scripts\Launch.cmd" || goto ErrorLaunchCMD
goto Exit
:: Functions ::
:CheckFlags
rem Loops through all arguments to check for accepted flags
set DEBUG=
for %%f in (%*) do (
if /i "%%f" == "/DEBUG" (@echo on & set "DEBUG=/DEBUG")
)
@exit /b 0
:FindBin
rem Checks the current directory and all parents for the ".bin" folder
rem NOTE: Has not been tested for UNC paths
set bin=
pushd "%~dp0"
:FindBinInner
if exist ".bin" (goto FindBinDone)
if "%~d0\" == "%cd%" (popd & @exit /b 1)
cd ..
goto FindBinInner
:FindBinDone
set "bin=%cd%\.bin"
set "cbin=%cd%\.cbin"
popd
@exit /b 0
:: Errors ::
:ErrorLaunchCMD
echo.
echo ERROR: Launch.cmd did not run correctly. Try using the /DEBUG flag?
goto Abort
:ErrorLaunchCMDMissing
echo.
echo ERROR: Launch.cmd script not found.
goto Abort
:ErrorNoBin
echo.
echo ERROR: ".bin" folder not found.
goto Abort
:Abort
color 4e
echo Aborted.
echo.
echo Press any key to exit...
pause>nul
color
rem Set errorlevel to 1 by calling color incorrectly
color 00
goto Exit
:: Cleanup and exit ::
:Exit
endlocal
exit /b %errorlevel%

View file

@ -1,110 +0,0 @@
:: Wizard Kit: Launcher Script ::
::
:: This script works by setting env variables and then calling Launch.cmd
:: which inherits the variables. This bypasses batch file argument parsing
:: which is awful.
@echo off
:Init
setlocal
title Wizard Kit: Launcher
call :CheckFlags %*
call :FindBin
:DefineLaunch
:: Set L_TYPE to one of these options:
:: Console
:: Office
:: Program
:: PSScript
:: PyScript
:: Set L_PATH to the path to the program folder
:: NOTE: Launch.cmd will test for L_PATH in the following order:
:: 1: %bin%\L_PATH
:: 2: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH)
:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path)
:: Set L_ITEM to the filename of the item to launch (or Office product to install)
:: Set L_ARGS to include any necessary arguments (if any)
:: Set L_CHCK to True to have Launch.cmd to stay open if an error is encountered
:: Set L_ELEV to True to launch with elevated permissions
:: Set L_NCMD to True to stay in the native console window
:: Set L_WAIT to True to have the script wait until L_ITEM has comlpeted
set L_TYPE=QuickBooks
set L_PATH=2007
set L_ITEM=QuickBooksPro2007_R13
set L_ARGS=
set L_CHCK=True
set L_ELEV=
set L_NCMD=
set L_WAIT=
:::::::::::::::::::::::::::::::::::::::::::
:: Do not edit anything below this line! ::
:::::::::::::::::::::::::::::::::::::::::::
:LaunchPrep
rem Verifies the environment before launching item
if not defined bin (goto ErrorNoBin)
if not exist "%bin%\Scripts\Launch.cmd" (goto ErrorLaunchCMDMissing)
:Launch
rem Calls the Launch.cmd script using the variables defined above
call "%bin%\Scripts\Launch.cmd" || goto ErrorLaunchCMD
goto Exit
:: Functions ::
:CheckFlags
rem Loops through all arguments to check for accepted flags
set DEBUG=
for %%f in (%*) do (
if /i "%%f" == "/DEBUG" (@echo on & set "DEBUG=/DEBUG")
)
@exit /b 0
:FindBin
rem Checks the current directory and all parents for the ".bin" folder
rem NOTE: Has not been tested for UNC paths
set bin=
pushd "%~dp0"
:FindBinInner
if exist ".bin" (goto FindBinDone)
if "%~d0\" == "%cd%" (popd & @exit /b 1)
cd ..
goto FindBinInner
:FindBinDone
set "bin=%cd%\.bin"
set "cbin=%cd%\.cbin"
popd
@exit /b 0
:: Errors ::
:ErrorLaunchCMD
echo.
echo ERROR: Launch.cmd did not run correctly. Try using the /DEBUG flag?
goto Abort
:ErrorLaunchCMDMissing
echo.
echo ERROR: Launch.cmd script not found.
goto Abort
:ErrorNoBin
echo.
echo ERROR: ".bin" folder not found.
goto Abort
:Abort
color 4e
echo Aborted.
echo.
echo Press any key to exit...
pause>nul
color
rem Set errorlevel to 1 by calling color incorrectly
color 00
goto Exit
:: Cleanup and exit ::
:Exit
endlocal
exit /b %errorlevel%

View file

@ -1,110 +0,0 @@
:: Wizard Kit: Launcher Script ::
::
:: This script works by setting env variables and then calling Launch.cmd
:: which inherits the variables. This bypasses batch file argument parsing
:: which is awful.
@echo off
:Init
setlocal
title Wizard Kit: Launcher
call :CheckFlags %*
call :FindBin
:DefineLaunch
:: Set L_TYPE to one of these options:
:: Console
:: Office
:: Program
:: PSScript
:: PyScript
:: Set L_PATH to the path to the program folder
:: NOTE: Launch.cmd will test for L_PATH in the following order:
:: 1: %bin%\L_PATH
:: 2: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH)
:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path)
:: Set L_ITEM to the filename of the item to launch (or Office product to install)
:: Set L_ARGS to include any necessary arguments (if any)
:: Set L_CHCK to True to have Launch.cmd to stay open if an error is encountered
:: Set L_ELEV to True to launch with elevated permissions
:: Set L_NCMD to True to stay in the native console window
:: Set L_WAIT to True to have the script wait until L_ITEM has comlpeted
set L_TYPE=QuickBooks
set L_PATH=2008
set L_ITEM=QuickBooksPremier2008_R10
set L_ARGS=
set L_CHCK=True
set L_ELEV=
set L_NCMD=
set L_WAIT=
:::::::::::::::::::::::::::::::::::::::::::
:: Do not edit anything below this line! ::
:::::::::::::::::::::::::::::::::::::::::::
:LaunchPrep
rem Verifies the environment before launching item
if not defined bin (goto ErrorNoBin)
if not exist "%bin%\Scripts\Launch.cmd" (goto ErrorLaunchCMDMissing)
:Launch
rem Calls the Launch.cmd script using the variables defined above
call "%bin%\Scripts\Launch.cmd" || goto ErrorLaunchCMD
goto Exit
:: Functions ::
:CheckFlags
rem Loops through all arguments to check for accepted flags
set DEBUG=
for %%f in (%*) do (
if /i "%%f" == "/DEBUG" (@echo on & set "DEBUG=/DEBUG")
)
@exit /b 0
:FindBin
rem Checks the current directory and all parents for the ".bin" folder
rem NOTE: Has not been tested for UNC paths
set bin=
pushd "%~dp0"
:FindBinInner
if exist ".bin" (goto FindBinDone)
if "%~d0\" == "%cd%" (popd & @exit /b 1)
cd ..
goto FindBinInner
:FindBinDone
set "bin=%cd%\.bin"
set "cbin=%cd%\.cbin"
popd
@exit /b 0
:: Errors ::
:ErrorLaunchCMD
echo.
echo ERROR: Launch.cmd did not run correctly. Try using the /DEBUG flag?
goto Abort
:ErrorLaunchCMDMissing
echo.
echo ERROR: Launch.cmd script not found.
goto Abort
:ErrorNoBin
echo.
echo ERROR: ".bin" folder not found.
goto Abort
:Abort
color 4e
echo Aborted.
echo.
echo Press any key to exit...
pause>nul
color
rem Set errorlevel to 1 by calling color incorrectly
color 00
goto Exit
:: Cleanup and exit ::
:Exit
endlocal
exit /b %errorlevel%

View file

@ -1,110 +0,0 @@
:: Wizard Kit: Launcher Script ::
::
:: This script works by setting env variables and then calling Launch.cmd
:: which inherits the variables. This bypasses batch file argument parsing
:: which is awful.
@echo off
:Init
setlocal
title Wizard Kit: Launcher
call :CheckFlags %*
call :FindBin
:DefineLaunch
:: Set L_TYPE to one of these options:
:: Console
:: Office
:: Program
:: PSScript
:: PyScript
:: Set L_PATH to the path to the program folder
:: NOTE: Launch.cmd will test for L_PATH in the following order:
:: 1: %bin%\L_PATH
:: 2: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH)
:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path)
:: Set L_ITEM to the filename of the item to launch (or Office product to install)
:: Set L_ARGS to include any necessary arguments (if any)
:: Set L_CHCK to True to have Launch.cmd to stay open if an error is encountered
:: Set L_ELEV to True to launch with elevated permissions
:: Set L_NCMD to True to stay in the native console window
:: Set L_WAIT to True to have the script wait until L_ITEM has comlpeted
set L_TYPE=QuickBooks
set L_PATH=2008
set L_ITEM=QuickBooksPro2008_R10
set L_ARGS=
set L_CHCK=True
set L_ELEV=
set L_NCMD=
set L_WAIT=
:::::::::::::::::::::::::::::::::::::::::::
:: Do not edit anything below this line! ::
:::::::::::::::::::::::::::::::::::::::::::
:LaunchPrep
rem Verifies the environment before launching item
if not defined bin (goto ErrorNoBin)
if not exist "%bin%\Scripts\Launch.cmd" (goto ErrorLaunchCMDMissing)
:Launch
rem Calls the Launch.cmd script using the variables defined above
call "%bin%\Scripts\Launch.cmd" || goto ErrorLaunchCMD
goto Exit
:: Functions ::
:CheckFlags
rem Loops through all arguments to check for accepted flags
set DEBUG=
for %%f in (%*) do (
if /i "%%f" == "/DEBUG" (@echo on & set "DEBUG=/DEBUG")
)
@exit /b 0
:FindBin
rem Checks the current directory and all parents for the ".bin" folder
rem NOTE: Has not been tested for UNC paths
set bin=
pushd "%~dp0"
:FindBinInner
if exist ".bin" (goto FindBinDone)
if "%~d0\" == "%cd%" (popd & @exit /b 1)
cd ..
goto FindBinInner
:FindBinDone
set "bin=%cd%\.bin"
set "cbin=%cd%\.cbin"
popd
@exit /b 0
:: Errors ::
:ErrorLaunchCMD
echo.
echo ERROR: Launch.cmd did not run correctly. Try using the /DEBUG flag?
goto Abort
:ErrorLaunchCMDMissing
echo.
echo ERROR: Launch.cmd script not found.
goto Abort
:ErrorNoBin
echo.
echo ERROR: ".bin" folder not found.
goto Abort
:Abort
color 4e
echo Aborted.
echo.
echo Press any key to exit...
pause>nul
color
rem Set errorlevel to 1 by calling color incorrectly
color 00
goto Exit
:: Cleanup and exit ::
:Exit
endlocal
exit /b %errorlevel%

View file

@ -1,110 +0,0 @@
:: Wizard Kit: Launcher Script ::
::
:: This script works by setting env variables and then calling Launch.cmd
:: which inherits the variables. This bypasses batch file argument parsing
:: which is awful.
@echo off
:Init
setlocal
title Wizard Kit: Launcher
call :CheckFlags %*
call :FindBin
:DefineLaunch
:: Set L_TYPE to one of these options:
:: Console
:: Office
:: Program
:: PSScript
:: PyScript
:: Set L_PATH to the path to the program folder
:: NOTE: Launch.cmd will test for L_PATH in the following order:
:: 1: %bin%\L_PATH
:: 2: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH)
:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path)
:: Set L_ITEM to the filename of the item to launch (or Office product to install)
:: Set L_ARGS to include any necessary arguments (if any)
:: Set L_CHCK to True to have Launch.cmd to stay open if an error is encountered
:: Set L_ELEV to True to launch with elevated permissions
:: Set L_NCMD to True to stay in the native console window
:: Set L_WAIT to True to have the script wait until L_ITEM has comlpeted
set L_TYPE=QuickBooks
set L_PATH=2009
set L_ITEM=QuickBooksPremier2009_R13
set L_ARGS=
set L_CHCK=True
set L_ELEV=
set L_NCMD=
set L_WAIT=
:::::::::::::::::::::::::::::::::::::::::::
:: Do not edit anything below this line! ::
:::::::::::::::::::::::::::::::::::::::::::
:LaunchPrep
rem Verifies the environment before launching item
if not defined bin (goto ErrorNoBin)
if not exist "%bin%\Scripts\Launch.cmd" (goto ErrorLaunchCMDMissing)
:Launch
rem Calls the Launch.cmd script using the variables defined above
call "%bin%\Scripts\Launch.cmd" || goto ErrorLaunchCMD
goto Exit
:: Functions ::
:CheckFlags
rem Loops through all arguments to check for accepted flags
set DEBUG=
for %%f in (%*) do (
if /i "%%f" == "/DEBUG" (@echo on & set "DEBUG=/DEBUG")
)
@exit /b 0
:FindBin
rem Checks the current directory and all parents for the ".bin" folder
rem NOTE: Has not been tested for UNC paths
set bin=
pushd "%~dp0"
:FindBinInner
if exist ".bin" (goto FindBinDone)
if "%~d0\" == "%cd%" (popd & @exit /b 1)
cd ..
goto FindBinInner
:FindBinDone
set "bin=%cd%\.bin"
set "cbin=%cd%\.cbin"
popd
@exit /b 0
:: Errors ::
:ErrorLaunchCMD
echo.
echo ERROR: Launch.cmd did not run correctly. Try using the /DEBUG flag?
goto Abort
:ErrorLaunchCMDMissing
echo.
echo ERROR: Launch.cmd script not found.
goto Abort
:ErrorNoBin
echo.
echo ERROR: ".bin" folder not found.
goto Abort
:Abort
color 4e
echo Aborted.
echo.
echo Press any key to exit...
pause>nul
color
rem Set errorlevel to 1 by calling color incorrectly
color 00
goto Exit
:: Cleanup and exit ::
:Exit
endlocal
exit /b %errorlevel%

View file

@ -1,110 +0,0 @@
:: Wizard Kit: Launcher Script ::
::
:: This script works by setting env variables and then calling Launch.cmd
:: which inherits the variables. This bypasses batch file argument parsing
:: which is awful.
@echo off
:Init
setlocal
title Wizard Kit: Launcher
call :CheckFlags %*
call :FindBin
:DefineLaunch
:: Set L_TYPE to one of these options:
:: Console
:: Office
:: Program
:: PSScript
:: PyScript
:: Set L_PATH to the path to the program folder
:: NOTE: Launch.cmd will test for L_PATH in the following order:
:: 1: %bin%\L_PATH
:: 2: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH)
:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path)
:: Set L_ITEM to the filename of the item to launch (or Office product to install)
:: Set L_ARGS to include any necessary arguments (if any)
:: Set L_CHCK to True to have Launch.cmd to stay open if an error is encountered
:: Set L_ELEV to True to launch with elevated permissions
:: Set L_NCMD to True to stay in the native console window
:: Set L_WAIT to True to have the script wait until L_ITEM has comlpeted
set L_TYPE=QuickBooks
set L_PATH=2009
set L_ITEM=QuickBooksPro2009_R13
set L_ARGS=
set L_CHCK=True
set L_ELEV=
set L_NCMD=
set L_WAIT=
:::::::::::::::::::::::::::::::::::::::::::
:: Do not edit anything below this line! ::
:::::::::::::::::::::::::::::::::::::::::::
:LaunchPrep
rem Verifies the environment before launching item
if not defined bin (goto ErrorNoBin)
if not exist "%bin%\Scripts\Launch.cmd" (goto ErrorLaunchCMDMissing)
:Launch
rem Calls the Launch.cmd script using the variables defined above
call "%bin%\Scripts\Launch.cmd" || goto ErrorLaunchCMD
goto Exit
:: Functions ::
:CheckFlags
rem Loops through all arguments to check for accepted flags
set DEBUG=
for %%f in (%*) do (
if /i "%%f" == "/DEBUG" (@echo on & set "DEBUG=/DEBUG")
)
@exit /b 0
:FindBin
rem Checks the current directory and all parents for the ".bin" folder
rem NOTE: Has not been tested for UNC paths
set bin=
pushd "%~dp0"
:FindBinInner
if exist ".bin" (goto FindBinDone)
if "%~d0\" == "%cd%" (popd & @exit /b 1)
cd ..
goto FindBinInner
:FindBinDone
set "bin=%cd%\.bin"
set "cbin=%cd%\.cbin"
popd
@exit /b 0
:: Errors ::
:ErrorLaunchCMD
echo.
echo ERROR: Launch.cmd did not run correctly. Try using the /DEBUG flag?
goto Abort
:ErrorLaunchCMDMissing
echo.
echo ERROR: Launch.cmd script not found.
goto Abort
:ErrorNoBin
echo.
echo ERROR: ".bin" folder not found.
goto Abort
:Abort
color 4e
echo Aborted.
echo.
echo Press any key to exit...
pause>nul
color
rem Set errorlevel to 1 by calling color incorrectly
color 00
goto Exit
:: Cleanup and exit ::
:Exit
endlocal
exit /b %errorlevel%

Binary file not shown.

View file

@ -31,7 +31,7 @@ call :FindBin
:: Set L_WAIT to True to have the script wait until L_ITEM has comlpeted
set L_TYPE=PyScript
set L_PATH=Scripts
set L_ITEM=sw_diagnostics.py
set L_ITEM=system_checklist.py
set L_ARGS=
set L_7ZIP=
set L_CHCK=True

View file

@ -31,7 +31,7 @@ call :FindBin
:: Set L_WAIT to True to have the script wait until L_ITEM has comlpeted
set L_TYPE=PyScript
set L_PATH=Scripts
set L_ITEM=sw_checklist.py
set L_ITEM=system_diagnostics.py
set L_ARGS=
set L_7ZIP=
set L_CHCK=True

View file

@ -0,0 +1,5 @@
[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,2
[InternetShortcut]
URL=http://kb.eset.com/esetkb/index?page=content&id=SOLN146
IDList=

View file

@ -0,0 +1,5 @@
[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,2
[InternetShortcut]
URL=http://www.avg.com/us-en/utilities
IDList=

View file

@ -0,0 +1,6 @@
[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,2
[InternetShortcut]
URL=http://files.avast.com/iavs9x/avastclear.exe
IDList=
HotKey=0

View file

@ -0,0 +1,6 @@
[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,2
[InternetShortcut]
URL=http://dlpro.antivir.com/package/regcleaner/win32/en/avira_registry_cleaner_en.zip
IDList=
HotKey=0

View file

@ -0,0 +1,6 @@
[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,2
[InternetShortcut]
URL=http://download.eset.com/special/ESETUninstaller.exe
IDList=
HotKey=0

View file

@ -0,0 +1,6 @@
[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,2
[InternetShortcut]
URL=http://media.kaspersky.com/utilities/ConsumerUtilities/kavremvr.exe
IDList=
HotKey=0

View file

@ -0,0 +1,5 @@
[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,2
[InternetShortcut]
URL=http://www.malwarebytes.org/mbam-clean.exe
IDList=

View file

@ -0,0 +1,5 @@
[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,2
[InternetShortcut]
URL=http://download.mcafee.com/products/licensed/cust_support_patches/MCPR.exe
IDList=

View file

@ -0,0 +1,5 @@
[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,1
[InternetShortcut]
URL=ftp://ftp.symantec.com/public/english_us_canada/removal_tools/Norton_Removal_Tool.exe
IDList=

View file

@ -31,7 +31,7 @@ call :FindBin
:: Set L_WAIT to True to have the script wait until L_ITEM has comlpeted
set L_TYPE=PyScript
set L_PATH=Scripts
set L_ITEM=reset_browsers.py
set L_ITEM=user_checklist.py
set L_ARGS=
set L_7ZIP=
set L_CHCK=True
@ -108,4 +108,4 @@ goto Exit
:: Cleanup and exit ::
:Exit
endlocal
exit /b %errorlevel%
exit /b %errorlevel%