diff --git a/.bin/ConEmu/ConEmu.xml b/.bin/ConEmu/ConEmu.xml new file mode 100644 index 00000000..e1f2d5e8 --- /dev/null +++ b/.bin/ConEmu/ConEmu.xml @@ -0,0 +1,787 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Copy WizardKit.cmd b/.bin/Scripts/Copy WizardKit.cmd similarity index 100% rename from Copy WizardKit.cmd rename to .bin/Scripts/Copy WizardKit.cmd diff --git a/.bin/Scripts/Launcher_Template.cmd b/.bin/Scripts/Launcher_Template.cmd index 552382db..488f5800 100644 --- a/.bin/Scripts/Launcher_Template.cmd +++ b/.bin/Scripts/Launcher_Template.cmd @@ -12,6 +12,10 @@ call :CheckFlags %* call :FindBin call :SetTitle Launcher +:Optional +:: This section is for any work that needs done before launching L_ITEM +rem EXTRA_CODE_GOES_HERE + :DefineLaunch :: Set L_TYPE to one of these options: :: Console, Folder, Office, Program, PSScript, or PyScript @@ -30,12 +34,12 @@ call :SetTitle Launcher :: 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=__TYPE__ -set L_PATH=__PATH__ -set L_ITEM=__ITEM__ +set L_TYPE= +set L_PATH= +set L_ITEM= set L_ARGS= set L_7ZIP= -set L_CHCK=True +set L_CHCK= set L_ELEV= set L_NCMD= set L_WAIT= diff --git a/.bin/Scripts/_Update Kit.cmd b/.bin/Scripts/_Update Kit.cmd deleted file mode 100644 index 5d7e71d5..00000000 --- a/.bin/Scripts/_Update Kit.cmd +++ /dev/null @@ -1,126 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=PyScript -set L_PATH=Scripts -set L_ITEM=update_kit.py -set L_ARGS= -set L_7ZIP= -set L_CHCK=True -set L_ELEV= -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% diff --git a/.bin/Scripts/build_kit.ps1 b/.bin/Scripts/build_kit.ps1 new file mode 100644 index 00000000..6338cc99 --- /dev/null +++ b/.bin/Scripts/build_kit.ps1 @@ -0,0 +1,170 @@ +# Wizard Kit: Download kit components + +## Init ## +clear +$host.UI.RawUI.WindowTitle = "Wizard Kit: Build Tool" +$wd = $(Split-Path $MyInvocation.MyCommand.Path) +$bin = (Get-Item $wd).Parent.FullName +$tmp = "{0}\tmp" -f $bin +$errors = 0 +pushd "$wd" +$host.UI.RawUI.BackgroundColor = "black" +$host.UI.RawUI.ForegroundColor = "white" +$progressPreference = 'silentlyContinue' + +## Functions ## +function download-file { + param ([String]$path, [String]$name, [String]$url) + $outfile = "{0}\{1}" -f $path, $name + + Write-Host ("Downloading: {0}" -f $name) + New-Item -Type Directory $path 2>&1 | Out-Null + try { + invoke-webrequest -uri $url -outfile $outfile + } + catch { + Write-Host (" ERROR: Failed to download file." ) -foregroundcolor "Red" + $errors += 1 + } +} +function find-dynamic-url { + param ([String]$source_page, [String]$regex) + $d_url = "" + + # Get source page + invoke-webrequest -uri $source_page -outfile "tmp_page" + + # Search for real url + $d_url = Get-Content "tmp_page" | Where-Object {$_ -imatch $regex} + $d_url = $d_url -ireplace '.*(a |)href="([^"]+)".*', '$2' + $d_url = $d_url -ireplace ".*(a |)href='([^']+)'.*", '$2' + + # Remove tmp_page + Remove-Item "tmp_page" + + return $d_url +} +function wk_pause { + param([string]$message = "Press Enter to continue... ") + Write-Host $message + $x = read-host +} + +## Download ## +$path = $tmp + +# 7-Zip +$url = "http://www.7-zip.org/a/7z1701.msi" +download-file $path "7z-installer.msi" $url +$url = "http://www.7-zip.org/a/7z1701-extra.7z" +download-file $path "7z-extra.7z" $url + +# ConEmu +$url = "https://github.com/Maximus5/ConEmu/releases/download/v17.11.09/ConEmuPack.171109.7z" +download-file $path "ConEmuPack.7z" $url + +# Notepad++ +$url = "https://notepad-plus-plus.org/repository/7.x/7.5.1/npp.7.5.1.bin.minimalist.7z" +download-file $path "npp.7z" $url + +# Python +$url = "https://www.python.org/ftp/python/3.6.3/python-3.6.3-embed-win32.zip" +download-file $path "python32.zip" $url +$url = "https://www.python.org/ftp/python/3.6.3/python-3.6.3-embed-amd64.zip" +download-file $path "python64.zip" $url + +# Python: psutil +$dl_page = "https://pypi.python.org/pypi/psutil" +$regex = "href=.*-cp36-cp36m-win32.whl" +$url = find-dynamic-url $dl_page $regex +download-file $path "psutil32.whl" $url +$regex = "href=.*-cp36-cp36m-win_amd64.whl" +$url = find-dynamic-url $dl_page $regex +download-file $path "psutil64.whl" $url + +# Python: requests & dependancies +$regex = "href=.*.py3-none-any.whl" +foreach ($mod in @("chardet", "certifi", "idna", "urllib3", "requests")) { + $dl_page = "https://pypi.python.org/pypi/{0}" -f $mod + $name = "{0}.whl" -f $mod + $url = find-dynamic-url $dl_page $regex + download-file $path $name $url +} + +## Extract ## +# 7-Zip +Write-Host "Extracting: 7-Zip" +try { + start "msiexec" -argumentlist @("/a", "$tmp\7z-installer.msi", "TARGETDIR=$tmp\7zi", "/qn") -wait + $sz = "$tmp\7zi\Files\7-Zip\7z.exe" + start $sz -argumentlist @("x", "$tmp\7z-extra.7z", "-o$bin\7-Zip", "-aoa", "-bso0", "-bse0", "-bsp0", "-x!x64\*.dll", "-x!Far", "-x!*.dll") -nonewwindow -wait + Start-Sleep 1 + Move-Item "$bin\7-Zip\x64\7za.exe" "$bin\7-Zip\7za64.exe" + Remove-Item "$bin\7-Zip\x64" -Recurse + Remove-Item "$tmp\7z*" -Recurse + $sz = "$bin\7-Zip\7za.exe" +} +catch { + Write-Host (" ERROR: Failed to extract files." ) -foregroundcolor "Red" +} + +# Notepad++ +Write-Host "Extracting: Notepad++" +try { + start $sz -argumentlist @("x", "$tmp\npp.7z", "-o$bin\NotepadPlusPlus", "-aoa", "-bso0", "-bse0", "-bsp0") -nonewwindow -wait + Remove-Item "$tmp\npp.7z" + Move-Item "$bin\NotepadPlusPlus\notepad++.exe" "$bin\NotepadPlusPlus\notepadplusplus.exe" +} +catch { + Write-Host (" ERROR: Failed to extract files." ) -foregroundcolor "Red" +} + +# ConEmu +Write-Host "Extracting: ConEmu" +try { + start $sz -argumentlist @("x", "$tmp\ConEmuPack.7z", "-o$bin\ConEmu", "-aoa", "-bso0", "-bse0", "-bsp0") -nonewwindow -wait + Remove-Item "$tmp\ConEmuPack.7z" +} +catch { + Write-Host (" ERROR: Failed to extract files." ) -foregroundcolor "Red" +} + +# Python x32 +Write-Host "Extracting: Python (x32)" +try { + foreach ($file in @("python32.zip", "certifi.whl", "chardet.whl", "idna.whl", "psutil32.whl", "requests.whl", "urllib3.whl")) { + start $sz -argumentlist @("x", "$tmp\$file", "-o$bin\Python\x32", "-aoa", "-bso0", "-bse0", "-bsp0") -nonewwindow -wait + } +} +catch { + Write-Host (" ERROR: Failed to extract files." ) -foregroundcolor "Red" +} + +# Python x64 +Write-Host "Extracting: Python (x64)" +try { + foreach ($file in @("python64.zip", "certifi.whl", "chardet.whl", "idna.whl", "psutil64.whl", "requests.whl", "urllib3.whl")) { + start $sz -argumentlist @("x", "$tmp\$file", "-o$bin\Python\x64", "-aoa", "-bso0", "-bse0", "-bsp0") -nonewwindow -wait + } + Remove-Item "$tmp\python*.zip" + Remove-Item "$tmp\*.whl" +} +catch { + Write-Host (" ERROR: Failed to extract files." ) -foregroundcolor "Red" +} + +## Cleanup ## +Move-Item "$bin\..\Build Kit.cmd" "$bin\Scripts\Build Kit.cmd" + +## Configure ## +Write-Host "Configuring kit" +wk_pause "Press Enter to open settings..." +start "$bin\NotepadPlusPlus\notepadplusplus.exe" -argumentlist @("$bin\Scripts\settings\main.py") -wait + +## Done ## +popd +if ($errors -gt 0) { + wk_pause "Press Enter to exit..." +} else { + start "$bin\ConEmu\ConEmu.exe" -argumentlist @("-run", "$bin\Python\x32\python.exe", "$bin\Scripts\update_kit.py") +} diff --git a/.bin/Scripts/settings/launchers.py b/.bin/Scripts/settings/launchers.py new file mode 100644 index 00000000..3adca3a1 --- /dev/null +++ b/.bin/Scripts/settings/launchers.py @@ -0,0 +1,857 @@ +# Wizard Kit: Settings - Launchers + +LAUNCHERS = { + '/': { + 'Activate Windows': { + 'L_TYPE': 'PyScript', + 'L_PATH': 'Scripts', + 'L_ITEM': 'activate.py', + 'L_CHCK': 'True', + 'L_ELEV': 'True', + 'L_NCMD': '', + }, + 'Enter SafeMode': { + 'L_TYPE': 'PyScript', + 'L_PATH': 'Scripts', + 'L_ITEM': 'safemode_enter.py', + 'L_CHCK': 'True', + 'L_ELEV': 'True', + 'L_NCMD': '', + }, + 'Exit SafeMode': { + 'L_TYPE': 'PyScript', + 'L_PATH': 'Scripts', + 'L_ITEM': 'safemode_exit.py', + 'L_CHCK': 'True', + 'L_ELEV': 'True', + 'L_NCMD': '', + }, + 'System Checklist': { + 'L_TYPE': 'PyScript', + 'L_PATH': 'Scripts', + 'L_ITEM': 'system_checklist.py', + 'L_CHCK': 'True', + 'L_ELEV': 'True', + 'L_NCMD': '', + }, + 'System Diagnostics': { + 'L_TYPE': 'PyScript', + 'L_PATH': 'Scripts', + 'L_ITEM': 'system_diagnostics.py', + 'L_CHCK': 'True', + 'L_ELEV': 'True', + 'L_NCMD': '', + }, + 'User Checklist': { + 'L_TYPE': 'PyScript', + 'L_PATH': 'Scripts', + 'L_ITEM': 'user_checklist.py', + 'L_CHCK': 'True', + 'L_NCMD': '', + }, + }, + '/Data Recovery': { + 'PhotoRec (CLI)': { + 'L_TYPE': 'Console', + 'L_PATH': 'TestDisk', + 'L_ITEM': 'photorec_win.exe', + 'L_ARGS': '', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': 'True', + 'L_NCMD': '', + 'L_WAIT': '', + }, + 'PhotoRec': { + 'L_TYPE': 'Program', + 'L_PATH': 'TestDisk', + 'L_ITEM': 'qphotorec_win.exe', + 'L_ARGS': '', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': 'True', + 'L_NCMD': 'True', + 'L_WAIT': '', + }, + 'TestDisk': { + 'L_TYPE': 'Console', + 'L_PATH': 'TestDisk', + 'L_ITEM': 'testdisk_win.exe', + 'L_ARGS': '', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': 'True', + 'L_NCMD': '', + 'L_WAIT': '', + }, + }, + '/Data Transfers': { + 'FastCopy (as ADMIN)': { + 'L_TYPE': 'Program', + 'L_PATH': 'FastCopy', + 'L_ITEM': 'FastCopy.exe', + 'L_ARGS': ( + r' /logfile=%log_dir%\FastCopy.log' + r' /cmd=noexist_only' + r' /utf8' + r' /skip_empty_dir' + r' /linkdest' + r' /exclude=' + r'$RECYCLE.BIN;' + r'$Recycle.Bin;' + r'.AppleDB;' + r'.AppleDesktop;' + r'.AppleDouble;' + r'.com.apple.timemachine.supported;' + r'.dbfseventsd;' + r'.DocumentRevisions-V100*;' + r'.DS_Store;' + r'.fseventsd;' + r'.PKInstallSandboxManager;' + r'.Spotlight*;' + r'.SymAV*;' + r'.symSchedScanLockxz;' + r'.TemporaryItems;' + r'.Trash*;' + r'.vol;' + r'.VolumeIcon.icns;' + r'desktop.ini;' + r'Desktop?DB;' + r'Desktop?DF;' + r'hiberfil.sys;' + r'lost+found;' + r'Network?Trash?Folder;' + r'pagefile.sys;' + r'Recycled;' + r'RECYCLER;' + r'System?Volume?Information;' + r'Temporary?Items;' + r'Thumbs.db' + r' /to=%client_dir%\Transfer_%iso_date%\ ' + ), + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': 'True', + 'L_NCMD': 'True', + 'L_WAIT': '', + 'Extra Code': [ + r'call "%bin%\Scripts\init_client_dir.cmd" /Info /Transfer', + ], + }, + 'FastCopy': { + 'L_TYPE': 'Program', + 'L_PATH': 'FastCopy', + 'L_ITEM': 'FastCopy.exe', + 'L_ARGS': ( + r' /logfile=%log_dir%\FastCopy.log' + r' /cmd=noexist_only' + r' /utf8' + r' /skip_empty_dir' + r' /linkdest' + r' /exclude=' + r'$RECYCLE.BIN;' + r'$Recycle.Bin;' + r'.AppleDB;' + r'.AppleDesktop;' + r'.AppleDouble;' + r'.com.apple.timemachine.supported;' + r'.dbfseventsd;' + r'.DocumentRevisions-V100*;' + r'.DS_Store;' + r'.fseventsd;' + r'.PKInstallSandboxManager;' + r'.Spotlight*;' + r'.SymAV*;' + r'.symSchedScanLockxz;' + r'.TemporaryItems;' + r'.Trash*;' + r'.vol;' + r'.VolumeIcon.icns;' + r'desktop.ini;' + r'Desktop?DB;' + r'Desktop?DF;' + r'hiberfil.sys;' + r'lost+found;' + r'Network?Trash?Folder;' + r'pagefile.sys;' + r'Recycled;' + r'RECYCLER;' + r'System?Volume?Information;' + r'Temporary?Items;' + r'Thumbs.db' + r' /to=%client_dir%\Transfer_%iso_date%\ ' + ), + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': 'True', + 'L_WAIT': '', + 'Extra Code': [ + r'call "%bin%\Scripts\init_client_dir.cmd" /Info /Transfer', + ], + }, + 'KVRT': { + 'L_TYPE': 'Program', + 'L_PATH': 'KVRT', + 'L_ITEM': 'KVRT.exe', + 'L_ARGS': ( + r' -accepteula' + r' -d %q_dir%' + r' -processlevel 3' + r' -dontcryptsupportinfo' + r' -fixednames' + ), + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': 'True', + 'L_WAIT': '', + 'Extra Code': [ + r'call "%bin%\Scripts\init_client_dir.cmd" /Quarantine', + r'set "q_dir=%client_dir%\Quarantine\KVRT"', + r'mkdir "%q_dir%">nul 2>&1', + ], + }, + 'Transferred Keys': { + 'L_TYPE': 'PyScript', + 'L_PATH': 'Scripts', + 'L_ITEM': 'transferred_keys.py', + 'L_ARGS': '', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': 'True', + 'L_NCMD': '', + 'L_WAIT': '', + }, + 'User Data Transfer': { + 'L_TYPE': 'PyScript', + 'L_PATH': 'Scripts', + 'L_ITEM': 'user_data_transfer.py', + 'L_ARGS': '', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': 'True', + 'L_NCMD': '', + 'L_WAIT': '', + }, + 'XYplorer (as ADMIN)': { + 'L_TYPE': 'Program', + 'L_PATH': 'XYplorerFree', + 'L_ITEM': 'XYplorerFree.exe', + 'L_ARGS': r'/exp /win=max %userprofile%', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': 'True', + 'L_NCMD': 'True', + 'L_WAIT': '', + }, + 'XYplorer': { + 'L_TYPE': 'Program', + 'L_PATH': 'XYplorerFree', + 'L_ITEM': 'XYplorerFree.exe', + 'L_ARGS': r'/exp /win=max %userprofile%', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': 'True', + 'L_WAIT': '', + }, + }, + '/Diagnostics': { + 'HWiNFO': { + 'L_TYPE': 'Program', + 'L_PATH': 'HWiNFO', + 'L_ITEM': 'HWiNFO.exe', + 'L_ARGS': '', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': 'True', + 'L_WAIT': '', + 'Extra Code': [ + r'for %%a in (32 64) do (', + r' copy /y "%bin%\HWiNFO\general.ini" "%bin%\HWiNFO\HWiNFO%%a.ini"', + r' (echo SensorsOnly=0)>>"%bin%\HWiNFO\HWiNFO%%a.ini"', + r' (echo SummaryOnly=0)>>"%bin%\HWiNFO\HWiNFO%%a.ini"', + r')', + ], + }, + 'ProduKey': { + 'L_TYPE': 'Program', + 'L_PATH': 'ProduKey', + 'L_ITEM': 'ProduKey.exe', + 'L_ARGS': '', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': 'True', + 'L_NCMD': 'True', + 'L_WAIT': '', + 'Extra Code': [ + r'if exist "%bin%\ProduKey" (', + r' del "%bin%\ProduKey\ProduKey.cfg" 2>nul', + r' del "%bin%\ProduKey\ProduKey64.cfg" 2>nul', + r')', + ], + }, + }, + '/Diagnostics/Extras': { + 'AIDA64': { + 'L_TYPE': 'Program', + 'L_PATH': 'AIDA64', + 'L_ITEM': 'aida64.exe', + 'L_ARGS': '', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': 'True', + 'L_WAIT': '', + }, + 'Autoruns (with VirusTotal Scan)': { + 'L_TYPE': 'Program', + 'L_PATH': 'Autoruns', + 'L_ITEM': 'Autoruns.exe', + 'L_ARGS': '-e', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': 'True', + 'L_WAIT': '', + 'Extra Code': [ + r'reg add HKCU\Software\Sysinternals\AutoRuns /v checkvirustotal /t REG_DWORD /d 1 /f >nul', + r'reg add HKCU\Software\Sysinternals\AutoRuns /v EulaAccepted /t REG_DWORD /d 1 /f >nul', + r'reg add HKCU\Software\Sysinternals\AutoRuns /v shownomicrosoft /t REG_DWORD /d 1 /f >nul', + r'reg add HKCU\Software\Sysinternals\AutoRuns /v shownowindows /t REG_DWORD /d 1 /f >nul', + r'reg add HKCU\Software\Sysinternals\AutoRuns /v showonlyvirustotal /t REG_DWORD /d 1 /f >nul', + r'reg add HKCU\Software\Sysinternals\AutoRuns /v submitvirustotal /t REG_DWORD /d 0 /f >nul', + r'reg add HKCU\Software\Sysinternals\AutoRuns /v verifysignatures /t REG_DWORD /d 1 /f >nul', + r'reg add HKCU\Software\Sysinternals\AutoRuns\SigCheck /v EulaAccepted /t REG_DWORD /d 1 /f >nul', + r'reg add HKCU\Software\Sysinternals\AutoRuns\Streams /v EulaAccepted /t REG_DWORD /d 1 /f >nul', + r'reg add HKCU\Software\Sysinternals\AutoRuns\VirusTotal /v VirusTotalTermsAccepted /t REG_DWORD /d 1 /f >nul', + ], + }, + 'BleachBit': { + 'L_TYPE': 'Program', + 'L_PATH': 'BleachBit', + 'L_ITEM': 'bleachbit.exe', + 'L_ARGS': '', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': 'True', + 'L_WAIT': '', + }, + 'BlueScreenView': { + 'L_TYPE': 'Program', + 'L_PATH': 'BlueScreenView', + 'L_ITEM': 'BlueScreenView.exe', + 'L_ARGS': '', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': 'True', + 'L_NCMD': 'True', + 'L_WAIT': '', + }, + 'ERUNT': { + 'L_TYPE': 'Program', + 'L_PATH': 'erunt', + 'L_ITEM': 'ERUNT.EXE', + 'L_ARGS': '%log_dir%\Registry sysreg curuser otherusers', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': 'True', + 'L_NCMD': 'True', + 'L_WAIT': '', + 'Extra Code': [ + r'call "%bin%\Scripts\init_client_dir.cmd" /Info', + ], + }, + 'HitmanPro': { + 'L_TYPE': 'Program', + 'L_PATH': '', + 'L_ITEM': '', + 'L_ARGS': '', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': 'True', + 'L_WAIT': '', + 'Extra Code': [ + r'call "%bin%\Scripts\init_client_dir.cmd" /Info', + ], + }, + 'HWiNFO (Sensors)': { + 'L_TYPE': 'Program', + 'L_PATH': 'HWiNFO', + 'L_ITEM': 'HWiNFO.exe', + 'L_ARGS': '', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': 'True', + 'L_WAIT': '', + 'Extra Code': [ + r'for %%a in (32 64) do (', + r' copy /y "%bin%\HWiNFO\general.ini" "%bin%\HWiNFO\HWiNFO%%a.ini"', + r' (echo SensorsOnly=1)>>"%bin%\HWiNFO\HWiNFO%%a.ini"', + r' (echo SummaryOnly=0)>>"%bin%\HWiNFO\HWiNFO%%a.ini"', + r')', + ], + }, + }, + '/Drivers': { + 'Intel RST (Current Release)': { + 'L_TYPE': 'Program', + 'L_PATH': '_Drivers\Intel RST', + 'L_ITEM': 'SetupRST_15.8.exe', + 'L_ARGS': '', + 'L_7ZIP': 'SetupRST_15.8.exe', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': 'True', + 'L_WAIT': '', + }, + 'Intel RST (Previous Releases)': { + 'L_TYPE': 'Folder', + 'L_PATH': '_Drivers\Intel RST', + 'L_ITEM': '.', + 'L_ARGS': '', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': 'True', + 'L_WAIT': '', + }, + 'Intel SSD Toolbox': { + 'L_TYPE': 'Program', + 'L_PATH': '_Drivers', + 'L_ITEM': 'Intel SSD Toolbox.exe', + 'L_ARGS': '', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': 'True', + 'L_WAIT': '', + }, + 'Samsing Magician': { + 'L_TYPE': 'Program', + 'L_PATH': '_Drivers', + 'L_ITEM': 'Samsung Magician.exe', + 'L_ARGS': '', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': 'True', + 'L_WAIT': '', + }, + 'Snappy Driver Installer': { + 'L_TYPE': 'Program', + 'L_PATH': '_Drivers\SDI', + 'L_ITEM': 'SDI.exe', + 'L_ARGS': '', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': 'True', + 'L_WAIT': '', + }, + }, + '/Drivers/Extras': { + 'Acer': { + 'L_TYPE': 'Program', + 'L_PATH': 'HWiNFO', + 'L_ITEM': 'HWiNFO.exe', + 'L_ARGS': '', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': 'True', + 'L_WAIT': '', + 'Extra Code': [ + r'for %%a in (32 64) do (', + r' copy /y "%bin%\HWiNFO\general.ini" "%bin%\HWiNFO\HWiNFO%%a.ini"', + r' (echo SensorsOnly=0)>>"%bin%\HWiNFO\HWiNFO%%a.ini"', + r' (echo SummaryOnly=0)>>"%bin%\HWiNFO\HWiNFO%%a.ini"', + r')', + r'start "" "http://us.acer.com/ac/en/US/content/drivers"', + ], + }, + 'Lenovo': { + 'L_TYPE': 'Program', + 'L_PATH': 'HWiNFO', + 'L_ITEM': 'HWiNFO.exe', + 'L_ARGS': '', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': 'True', + 'L_WAIT': '', + 'Extra Code': [ + r'for %%a in (32 64) do (', + r' copy /y "%bin%\HWiNFO\general.ini" "%bin%\HWiNFO\HWiNFO%%a.ini"', + r' (echo SensorsOnly=0)>>"%bin%\HWiNFO\HWiNFO%%a.ini"', + r' (echo SummaryOnly=0)>>"%bin%\HWiNFO\HWiNFO%%a.ini"', + r')', + r'start "" "http://support.lenovo.com/us/en/products?tabName=Downloads"', + ], + }, + 'Toshiba': { + 'L_TYPE': 'Program', + 'L_PATH': 'HWiNFO', + 'L_ITEM': 'HWiNFO.exe', + 'L_ARGS': '', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': 'True', + 'L_WAIT': '', + 'Extra Code': [ + r'for %%a in (32 64) do (', + r' copy /y "%bin%\HWiNFO\general.ini" "%bin%\HWiNFO\HWiNFO%%a.ini"', + r' (echo SensorsOnly=0)>>"%bin%\HWiNFO\HWiNFO%%a.ini"', + r' (echo SummaryOnly=0)>>"%bin%\HWiNFO\HWiNFO%%a.ini"', + r')', + r'start "" "http://support.toshiba.com/drivers"', + ], + }, + }, + '/Installers': { + 'SW Bundle': { + 'L_TYPE': 'PyScript', + 'L_PATH': 'Scripts', + 'L_ITEM': 'install_sw_bundle.py', + 'L_ARGS': '', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': 'True', + 'L_NCMD': '', + 'L_WAIT': '', + }, + }, + '/Installers/Extras/Office/2013': { + 'Home and Business 2013 (x32)': { + 'L_TYPE': 'Office', + 'L_PATH': '2013', + 'L_ITEM': 'hb_32.xml', + 'L_ARGS': '', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': '', + 'L_WAIT': '', + }, + 'Home and Business 2013 (x64)': { + 'L_TYPE': 'Office', + 'L_PATH': '2013', + 'L_ITEM': 'hb_64.xml', + 'L_ARGS': '', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': '', + 'L_WAIT': '', + }, + 'Home and Student 2013 (x32)': { + 'L_TYPE': 'Office', + 'L_PATH': '2013', + 'L_ITEM': 'hs_32.xml', + 'L_ARGS': '', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': '', + 'L_WAIT': '', + }, + 'Home and Student 2013 (x64)': { + 'L_TYPE': 'Office', + 'L_PATH': '2013', + 'L_ITEM': 'hs_64.xml', + 'L_ARGS': '', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': '', + 'L_WAIT': '', + }, + }, + '/Installers/Extras/Office/2016': { + 'Home and Business 2016 (x32)': { + 'L_TYPE': 'Office', + 'L_PATH': '2016', + 'L_ITEM': 'hb_32.xml', + 'L_ARGS': '', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': '', + 'L_WAIT': '', + }, + 'Home and Business 2016 (x64)': { + 'L_TYPE': 'Office', + 'L_PATH': '2016', + 'L_ITEM': 'hb_64.xml', + 'L_ARGS': '', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': '', + 'L_WAIT': '', + }, + 'Home and Student 2016 (x32)': { + 'L_TYPE': 'Office', + 'L_PATH': '2016', + 'L_ITEM': 'hs_32.xml', + 'L_ARGS': '', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': '', + 'L_WAIT': '', + }, + 'Home and Student 2016 (x64)': { + 'L_TYPE': 'Office', + 'L_PATH': '2016', + 'L_ITEM': 'hs_64.xml', + 'L_ARGS': '', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': '', + 'L_WAIT': '', + }, + 'Office 365 2016 (x32)': { + 'L_TYPE': 'Office', + 'L_PATH': '2016', + 'L_ITEM': '365_32.xml', + 'L_ARGS': '', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': '', + 'L_WAIT': '', + }, + 'Office 365 2016 (x64)': { + 'L_TYPE': 'Office', + 'L_PATH': '2016', + 'L_ITEM': '365_64.xml', + 'L_ARGS': '', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': '', + 'L_WAIT': '', + }, + }, + '/Misc': { + 'ConEmu (as ADMIN)': { + 'L_TYPE': 'Program', + 'L_PATH': 'ConEmu', + 'L_ITEM': 'ConEmu.exe', + 'L_ARGS': '', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': 'True', + 'L_NCMD': 'True', + 'L_WAIT': '', + }, + 'ConEmu': { + 'L_TYPE': 'Program', + 'L_PATH': 'ConEmu', + 'L_ITEM': 'ConEmu.exe', + 'L_ARGS': '', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': 'True', + 'L_WAIT': '', + }, + 'Everything': { + 'L_TYPE': 'Program', + 'L_PATH': 'Everything', + 'L_ITEM': 'Everything.exe', + 'L_ARGS': '-nodb', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': 'True', + 'L_NCMD': 'True', + 'L_WAIT': '', + }, + 'Notepad++': { + 'L_TYPE': 'Program', + 'L_PATH': 'notepadplusplus', + 'L_ITEM': 'notepadplusplus.exe', + 'L_ARGS': '', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': 'True', + 'L_WAIT': '', + }, + 'TreeSizeFree': { + 'L_TYPE': 'Program', + 'L_PATH': 'TreeSizeFree', + 'L_ITEM': 'TreeSizeFree.exe', + 'L_ARGS': '', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': 'True', + 'L_NCMD': 'True', + 'L_WAIT': '', + }, + 'Update Kit': { + 'L_TYPE': 'PyScript', + 'L_PATH': 'Scripts', + 'L_ITEM': 'update_kit.py', + 'L_ARGS': '', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': '', + 'L_WAIT': '', + }, + 'XMPlay': { + 'L_TYPE': 'Program', + 'L_PATH': 'XMPlay', + 'L_ITEM': 'xmplay.exe', + 'L_ARGS': '"%bin%\XMPlay\music.7z"', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': 'True', + 'L_WAIT': '', + }, + }, + '/Repairs': { + 'AdwCleaner': { + 'L_TYPE': 'Program', + 'L_PATH': 'AdwCleaner', + 'L_ITEM': 'AdwCleaner.exe', + 'L_ARGS': '', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': 'True', + 'L_WAIT': '', + }, + 'Autoruns': { + 'L_TYPE': 'Program', + 'L_PATH': 'Autoruns', + 'L_ITEM': 'Autoruns.exe', + 'L_ARGS': '-e', + 'L_7ZIP': 'Autoruns*', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': 'True', + 'L_WAIT': '', + 'Extra Code': [ + r'reg add HKCU\Software\Sysinternals\AutoRuns /v checkvirustotal /t REG_DWORD /d 0 /f >nul', + r'reg add HKCU\Software\Sysinternals\AutoRuns /v EulaAccepted /t REG_DWORD /d 1 /f >nul', + r'reg add HKCU\Software\Sysinternals\AutoRuns /v shownomicrosoft /t REG_DWORD /d 1 /f >nul', + r'reg add HKCU\Software\Sysinternals\AutoRuns /v shownowindows /t REG_DWORD /d 1 /f >nul', + r'reg add HKCU\Software\Sysinternals\AutoRuns /v showonlyvirustotal /t REG_DWORD /d 0 /f >nul', + r'reg add HKCU\Software\Sysinternals\AutoRuns /v submitvirustotal /t REG_DWORD /d 0 /f >nul', + r'reg add HKCU\Software\Sysinternals\AutoRuns /v verifysignatures /t REG_DWORD /d 0 /f >nul', + r'reg add HKCU\Software\Sysinternals\AutoRuns\SigCheck /v EulaAccepted /t REG_DWORD /d 1 /f >nul', + r'reg add HKCU\Software\Sysinternals\AutoRuns\Streams /v EulaAccepted /t REG_DWORD /d 1 /f >nul', + r'reg add HKCU\Software\Sysinternals\AutoRuns\VirusTotal /v VirusTotalTermsAccepted /t REG_DWORD /d 1 /f >nul', + ], + }, + 'CHKDSK': { + 'L_TYPE': 'PyScript', + 'L_PATH': 'Scripts', + 'L_ITEM': 'check_disk.py', + 'L_ARGS': '', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': 'True', + 'L_NCMD': '', + 'L_WAIT': '', + }, + 'DISM': { + 'L_TYPE': 'PyScript', + 'L_PATH': 'Scripts', + 'L_ITEM': 'dism.py', + 'L_ARGS': '', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': 'True', + 'L_NCMD': 'TRUE', + 'L_WAIT': '', + }, + 'KVRT': { + 'L_TYPE': 'Program', + 'L_PATH': 'KVRT', + 'L_ITEM': 'KVRT.exe', + 'L_ARGS': ( + r' -accepteula' + r' -d %q_dir%' + r' -processlevel 3' + r' -dontcryptsupportinfo' + r' -fixednames' + ), + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': 'True', + 'L_WAIT': '', + 'Extra Code': [ + r'call "%bin%\Scripts\init_client_dir.cmd" /Quarantine', + r'set "q_dir=%client_dir%\Quarantine\KVRT"', + r'mkdir "%q_dir%">nul 2>&1', + ], + }, + 'RKill': { + 'L_TYPE': 'Program', + 'L_PATH': 'RKill', + 'L_ITEM': 'RKill.exe', + 'L_ARGS': '', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': 'True', + 'L_WAIT': '', + 'Extra Code': [ + r'call "%bin%\Scripts\init_client_dir.cmd" /Info', + ], + }, + 'SFC Scan': { + 'L_TYPE': 'PyScript', + 'L_PATH': 'Scripts', + 'L_ITEM': 'sfc_scan.py', + 'L_ARGS': '', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': 'True', + 'L_NCMD': 'True', + 'L_WAIT': '', + }, + 'TDSSKiller': { + 'L_TYPE': 'Program', + 'L_PATH': 'TDSSKiller', + 'L_ITEM': 'TDSSKiller.exe', + 'L_ARGS': ( + r' -l %log_dir%\TDSSKiller.log' + r' -qpath %q_dir%' + r' -accepteula' + r' -accepteulaksn' + r' -dcexact' + r' -tdlfs' + ), + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': 'True', + 'L_WAIT': '', + 'Extra Code': [ + r'call "%bin%\Scripts\init_client_dir.cmd" /Quarantine', + r'set "q_dir=%client_dir%\Quarantine\TDSSKiller"', + r'mkdir "%q_dir%">nul 2>&1', + ], + }, + }, + '/Uninstallers': { + 'IObit Uninstaller': { + 'L_TYPE': 'Program', + 'L_PATH': 'IObitUninstallerPortable', + 'L_ITEM': 'IObitUninstallerPortable.exe', + 'L_ARGS': '', + 'L_7ZIP': '', + 'L_CHCK': 'True', + 'L_ELEV': '', + 'L_NCMD': 'True', + 'L_WAIT': '', + }, + }, + }, + +if __name__ == '__main__': + print("This file is not meant to be called directly.") diff --git a/.bin/Scripts/update_kit.py b/.bin/Scripts/update_kit.py index ea2da6db..96807cfd 100644 --- a/.bin/Scripts/update_kit.py +++ b/.bin/Scripts/update_kit.py @@ -11,6 +11,9 @@ init_global_vars() os.system('title {}: Kit Update Tool'.format(KIT_NAME_FULL)) if __name__ == '__main__': + print('Loaded update_kit.py!') + pause('Hmm...') + exit_script() try: other_results = { 'Error': { diff --git a/.gitignore b/.gitignore index d425d033..bf961f6b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,19 +1,17 @@ **/__pycache__/* -.bin/tmp -.bin/ConEmu/ -.bin/python/ -.bin/7-Zip/ -.bin/NotepadPlusPlus/ -.cbin/ *.exe -.bin/HWiNFO/HWiNFO*.ini -.bin/ProcessKiller/ -.bin/SysinternalsSuite/ -.bin/XMPlay/ +.bin/7-Zip/ .bin/AIDA64/ .bin/BleachBit/ -.bin/erunt/ -.bin/Everything/ -.bin/ProduKey/ .bin/ClassicStartSkin/ -.bin/curl/ +.bin/ConEmu/ +.bin/Erunt/ +.bin/Everything/ +.bin/HWiNFO/HWiNFO*.ini +.bin/NotepadPlusPlus/ +.bin/ProcessKiller/ +.bin/ProduKey/ +.bin/Python/ +.bin/Tmp/ +.bin/XMPlay/ +.cbin/ diff --git a/Drivers/Extras/AMD.url b/.root_items/Drivers/Extras/AMD.url similarity index 100% rename from Drivers/Extras/AMD.url rename to .root_items/Drivers/Extras/AMD.url diff --git a/Drivers/Extras/Dell (FTP - Browse for Drivers).url b/.root_items/Drivers/Extras/Dell (FTP - Browse for Drivers).url similarity index 100% rename from Drivers/Extras/Dell (FTP - Browse for Drivers).url rename to .root_items/Drivers/Extras/Dell (FTP - Browse for Drivers).url diff --git a/Drivers/Extras/Dell (Simplified Interface).url b/.root_items/Drivers/Extras/Dell (Simplified Interface).url similarity index 100% rename from Drivers/Extras/Dell (Simplified Interface).url rename to .root_items/Drivers/Extras/Dell (Simplified Interface).url diff --git a/Drivers/Extras/Dell (Support Site).url b/.root_items/Drivers/Extras/Dell (Support Site).url similarity index 100% rename from Drivers/Extras/Dell (Support Site).url rename to .root_items/Drivers/Extras/Dell (Support Site).url diff --git a/Drivers/Extras/Device Remover.url b/.root_items/Drivers/Extras/Device Remover.url similarity index 100% rename from Drivers/Extras/Device Remover.url rename to .root_items/Drivers/Extras/Device Remover.url diff --git a/Drivers/Extras/Display Driver Uninstaller.url b/.root_items/Drivers/Extras/Display Driver Uninstaller.url similarity index 100% rename from Drivers/Extras/Display Driver Uninstaller.url rename to .root_items/Drivers/Extras/Display Driver Uninstaller.url diff --git a/Drivers/Extras/HP.url b/.root_items/Drivers/Extras/HP.url similarity index 100% rename from Drivers/Extras/HP.url rename to .root_items/Drivers/Extras/HP.url diff --git a/Drivers/Extras/Intel Driver & Support Assistant.url b/.root_items/Drivers/Extras/Intel Driver & Support Assistant.url similarity index 100% rename from Drivers/Extras/Intel Driver & Support Assistant.url rename to .root_items/Drivers/Extras/Intel Driver & Support Assistant.url diff --git a/Drivers/Extras/NVIDIA.url b/.root_items/Drivers/Extras/NVIDIA.url similarity index 100% rename from Drivers/Extras/NVIDIA.url rename to .root_items/Drivers/Extras/NVIDIA.url diff --git a/Drivers/Extras/Samsung Tools & Software.url b/.root_items/Drivers/Extras/Samsung Tools & Software.url similarity index 100% rename from Drivers/Extras/Samsung Tools & Software.url rename to .root_items/Drivers/Extras/Samsung Tools & Software.url diff --git a/Installers/BackBlaze.url b/.root_items/Installers/BackBlaze.url similarity index 100% rename from Installers/BackBlaze.url rename to .root_items/Installers/BackBlaze.url diff --git a/Misc/Fix Missing Optical Drive.reg b/.root_items/Misc/Fix Missing Optical Drive.reg similarity index 100% rename from Misc/Fix Missing Optical Drive.reg rename to .root_items/Misc/Fix Missing Optical Drive.reg diff --git a/Misc/Nirsoft Utilities - Outlook.url b/.root_items/Misc/Nirsoft Utilities - Outlook.url similarity index 100% rename from Misc/Nirsoft Utilities - Outlook.url rename to .root_items/Misc/Nirsoft Utilities - Outlook.url diff --git a/Misc/Nirsoft Utilities - Passwords.url b/.root_items/Misc/Nirsoft Utilities - Passwords.url similarity index 100% rename from Misc/Nirsoft Utilities - Passwords.url rename to .root_items/Misc/Nirsoft Utilities - Passwords.url diff --git a/Misc/Sysinternals Suite (Live).url b/.root_items/Misc/Sysinternals Suite (Live).url similarity index 100% rename from Misc/Sysinternals Suite (Live).url rename to .root_items/Misc/Sysinternals Suite (Live).url diff --git a/Uninstallers/AV Removal Tools/AV Removal Tools.url b/.root_items/Uninstallers/AV Removal Tools/AV Removal Tools.url similarity index 100% rename from Uninstallers/AV Removal Tools/AV Removal Tools.url rename to .root_items/Uninstallers/AV Removal Tools/AV Removal Tools.url diff --git a/Uninstallers/AV Removal Tools/AVG.url b/.root_items/Uninstallers/AV Removal Tools/AVG.url similarity index 100% rename from Uninstallers/AV Removal Tools/AVG.url rename to .root_items/Uninstallers/AV Removal Tools/AVG.url diff --git a/Uninstallers/AV Removal Tools/Avast.url b/.root_items/Uninstallers/AV Removal Tools/Avast.url similarity index 100% rename from Uninstallers/AV Removal Tools/Avast.url rename to .root_items/Uninstallers/AV Removal Tools/Avast.url diff --git a/Uninstallers/AV Removal Tools/Avira.url b/.root_items/Uninstallers/AV Removal Tools/Avira.url similarity index 100% rename from Uninstallers/AV Removal Tools/Avira.url rename to .root_items/Uninstallers/AV Removal Tools/Avira.url diff --git a/Uninstallers/AV Removal Tools/ESET.url b/.root_items/Uninstallers/AV Removal Tools/ESET.url similarity index 100% rename from Uninstallers/AV Removal Tools/ESET.url rename to .root_items/Uninstallers/AV Removal Tools/ESET.url diff --git a/Uninstallers/AV Removal Tools/Kaspersky.url b/.root_items/Uninstallers/AV Removal Tools/Kaspersky.url similarity index 100% rename from Uninstallers/AV Removal Tools/Kaspersky.url rename to .root_items/Uninstallers/AV Removal Tools/Kaspersky.url diff --git a/Uninstallers/AV Removal Tools/MBAM.url b/.root_items/Uninstallers/AV Removal Tools/MBAM.url similarity index 100% rename from Uninstallers/AV Removal Tools/MBAM.url rename to .root_items/Uninstallers/AV Removal Tools/MBAM.url diff --git a/Uninstallers/AV Removal Tools/McAfee.url b/.root_items/Uninstallers/AV Removal Tools/McAfee.url similarity index 100% rename from Uninstallers/AV Removal Tools/McAfee.url rename to .root_items/Uninstallers/AV Removal Tools/McAfee.url diff --git a/Uninstallers/AV Removal Tools/Norton.url b/.root_items/Uninstallers/AV Removal Tools/Norton.url similarity index 100% rename from Uninstallers/AV Removal Tools/Norton.url rename to .root_items/Uninstallers/AV Removal Tools/Norton.url diff --git a/Activate Windows.cmd b/Activate Windows.cmd deleted file mode 100644 index 615d5f93..00000000 --- a/Activate Windows.cmd +++ /dev/null @@ -1,126 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=PyScript -set L_PATH=Scripts -set L_ITEM=activate.py -set L_ARGS= -set L_7ZIP= -set L_CHCK=True -set L_ELEV=True -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Build Kit.cmd b/Build Kit.cmd new file mode 100644 index 00000000..4a81d71b --- /dev/null +++ b/Build Kit.cmd @@ -0,0 +1,53 @@ +:: Wizard Kit: Build Tool Launcher :: + +@echo off + +:Init +setlocal +call :CheckFlags %* +title Wizard Kit: Build Tool + +:LaunchPrep +rem Verifies the environment before launching item +if not exist ".bin\Scripts\build_kit.ps1" (goto ErrorBuildKitMissing) + +:Launch +rem Calls the Launch.cmd script using the variables defined above +powershell -executionpolicy bypass -noprofile -file .bin\Scripts\build_kit.ps1 || goto ErrorUnknown +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 + +:: Errors :: +:ErrorBuildKitMissing +echo. +echo ERROR: build_kit.ps1 script not found. +goto Abort + +:ErrorUnknown +echo. +echo ERROR: Encountered an unknown error. +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% diff --git a/Data Recovery/PhotoRec (CLI).cmd b/Data Recovery/PhotoRec (CLI).cmd deleted file mode 100644 index 4d1eb5bb..00000000 --- a/Data Recovery/PhotoRec (CLI).cmd +++ /dev/null @@ -1,126 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=Console -set L_PATH=TestDisk -set L_ITEM=photorec_win.exe -set L_ARGS= -set L_7ZIP= -set L_CHCK=True -set L_ELEV=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Data Recovery/PhotoRec.cmd b/Data Recovery/PhotoRec.cmd deleted file mode 100644 index d489acd9..00000000 --- a/Data Recovery/PhotoRec.cmd +++ /dev/null @@ -1,126 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=Console -set L_PATH=TestDisk -set L_ITEM=qphotorec_win.exe -set L_ARGS= -set L_7ZIP= -set L_CHCK=True -set L_ELEV=True -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Data Recovery/TestDisk.cmd b/Data Recovery/TestDisk.cmd deleted file mode 100644 index b29aba6e..00000000 --- a/Data Recovery/TestDisk.cmd +++ /dev/null @@ -1,126 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=Console -set L_PATH=TestDisk -set L_ITEM=testdisk_win.exe -set L_ARGS= -set L_7ZIP= -set L_CHCK=True -set L_ELEV=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Data Transfers/FastCopy (as ADMIN).cmd b/Data Transfers/FastCopy (as ADMIN).cmd deleted file mode 100644 index 9de4f7e4..00000000 --- a/Data Transfers/FastCopy (as ADMIN).cmd +++ /dev/null @@ -1,127 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher -call "%bin%\Scripts\init_client_dir.cmd" /Info /Transfer - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=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_%iso_date%\ -set L_7ZIP= -set L_CHCK=True -set L_ELEV=True -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% diff --git a/Data Transfers/FastCopy.cmd b/Data Transfers/FastCopy.cmd deleted file mode 100644 index eae3688c..00000000 --- a/Data Transfers/FastCopy.cmd +++ /dev/null @@ -1,127 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher -call "%bin%\Scripts\init_client_dir.cmd" /Info /Transfer - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=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_%iso_date%\ -set L_7ZIP= -set L_CHCK=True -set L_ELEV= -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% diff --git a/Data Transfers/KVRT.cmd b/Data Transfers/KVRT.cmd deleted file mode 100644 index 2ad0f695..00000000 --- a/Data Transfers/KVRT.cmd +++ /dev/null @@ -1,129 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher -call "%bin%\Scripts\init_client_dir.cmd" /Quarantine -set "q_dir=%client_dir%\Quarantine\KVRT" -mkdir "%q_dir%">nul 2>&1 - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=Program -set L_PATH=KVRT -set L_ITEM=KVRT.exe -set L_ARGS=-accepteula -d %q_dir% -processlevel 3 -dontcryptsupportinfo -fixednames -set L_7ZIP= -set L_CHCK=True -set L_ELEV= -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Data Transfers/Transferred Keys.cmd b/Data Transfers/Transferred Keys.cmd deleted file mode 100644 index be1f1369..00000000 --- a/Data Transfers/Transferred Keys.cmd +++ /dev/null @@ -1,126 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=PyScript -set L_PATH=Scripts -set L_ITEM=transferred_keys.py -set L_ARGS= -set L_7ZIP= -set L_CHCK=True -set L_ELEV=True -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Data Transfers/User Data Transfer.cmd b/Data Transfers/User Data Transfer.cmd deleted file mode 100644 index 0820a153..00000000 --- a/Data Transfers/User Data Transfer.cmd +++ /dev/null @@ -1,126 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=PyScript -set L_PATH=Scripts -set L_ITEM=user_data_transfer.py -set L_ARGS= -set L_7ZIP= -set L_CHCK=True -set L_ELEV=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Data Transfers/XYplorer (as ADMIN).cmd b/Data Transfers/XYplorer (as ADMIN).cmd deleted file mode 100644 index 2af99043..00000000 --- a/Data Transfers/XYplorer (as ADMIN).cmd +++ /dev/null @@ -1,126 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=Program -set L_PATH=XYplorerFree -set L_ITEM=XYplorerFree.exe -set L_ARGS=/exp /win=max %userprofile% -set L_7ZIP= -set L_CHCK=True -set L_ELEV=True -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Data Transfers/XYplorer.cmd b/Data Transfers/XYplorer.cmd deleted file mode 100644 index e4371c6c..00000000 --- a/Data Transfers/XYplorer.cmd +++ /dev/null @@ -1,126 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=Program -set L_PATH=XYplorerFree -set L_ITEM=XYplorerFree.exe -set L_ARGS=/exp /win=max %userprofile% -set L_7ZIP= -set L_CHCK=True -set L_ELEV= -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Diagnostics/Extras/AIDA64.cmd b/Diagnostics/Extras/AIDA64.cmd deleted file mode 100644 index 8f834b62..00000000 --- a/Diagnostics/Extras/AIDA64.cmd +++ /dev/null @@ -1,126 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=Program -set L_PATH=AIDA64 -set L_ITEM=aida64.exe -set L_ARGS= -set L_7ZIP= -set L_CHCK=True -set L_ELEV= -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Diagnostics/Extras/Autoruns (with VirusTotal Scan).cmd b/Diagnostics/Extras/Autoruns (with VirusTotal Scan).cmd deleted file mode 100644 index f355c653..00000000 --- a/Diagnostics/Extras/Autoruns (with VirusTotal Scan).cmd +++ /dev/null @@ -1,138 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:Configure -reg add HKCU\Software\Sysinternals\AutoRuns /v checkvirustotal /t REG_DWORD /d 1 /f >nul -reg add HKCU\Software\Sysinternals\AutoRuns /v EulaAccepted /t REG_DWORD /d 1 /f >nul -reg add HKCU\Software\Sysinternals\AutoRuns /v shownomicrosoft /t REG_DWORD /d 1 /f >nul -reg add HKCU\Software\Sysinternals\AutoRuns /v shownowindows /t REG_DWORD /d 1 /f >nul -reg add HKCU\Software\Sysinternals\AutoRuns /v showonlyvirustotal /t REG_DWORD /d 1 /f >nul -reg add HKCU\Software\Sysinternals\AutoRuns /v submitvirustotal /t REG_DWORD /d 0 /f >nul -reg add HKCU\Software\Sysinternals\AutoRuns /v verifysignatures /t REG_DWORD /d 1 /f >nul -reg add HKCU\Software\Sysinternals\AutoRuns\SigCheck /v EulaAccepted /t REG_DWORD /d 1 /f >nul -reg add HKCU\Software\Sysinternals\AutoRuns\Streams /v EulaAccepted /t REG_DWORD /d 1 /f >nul -reg add HKCU\Software\Sysinternals\AutoRuns\VirusTotal /v VirusTotalTermsAccepted /t REG_DWORD /d 1 /f >nul - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=Program -set L_PATH=Autoruns -set L_ITEM=Autoruns.exe -set L_ARGS=-e -set L_7ZIP=Autoruns* -set L_CHCK=True -set L_ELEV= -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Diagnostics/Extras/BleachBit.cmd b/Diagnostics/Extras/BleachBit.cmd deleted file mode 100644 index 582e34c8..00000000 --- a/Diagnostics/Extras/BleachBit.cmd +++ /dev/null @@ -1,126 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=Program -set L_PATH=BleachBit -set L_ITEM=bleachbit.exe -set L_ARGS= -set L_7ZIP= -set L_CHCK=True -set L_ELEV= -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Diagnostics/Extras/BlueScreenView.cmd b/Diagnostics/Extras/BlueScreenView.cmd deleted file mode 100644 index 928705c1..00000000 --- a/Diagnostics/Extras/BlueScreenView.cmd +++ /dev/null @@ -1,126 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=Program -set L_PATH=BlueScreenView -set L_ITEM=BlueScreenView.exe -set L_ARGS= -set L_7ZIP= -set L_CHCK=True -set L_ELEV=True -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Diagnostics/Extras/ERUNT.cmd b/Diagnostics/Extras/ERUNT.cmd deleted file mode 100644 index 5ca53226..00000000 --- a/Diagnostics/Extras/ERUNT.cmd +++ /dev/null @@ -1,127 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher -call "%bin%\Scripts\init_client_dir.cmd" /Info - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=Program -set L_PATH=erunt -set L_ITEM=ERUNT.EXE -set L_ARGS=%log_dir%\Registry sysreg curuser otherusers -set L_7ZIP= -set L_CHCK=True -set L_ELEV=True -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Diagnostics/Extras/HWiNFO (Sensors).cmd b/Diagnostics/Extras/HWiNFO (Sensors).cmd deleted file mode 100644 index b8038dee..00000000 --- a/Diagnostics/Extras/HWiNFO (Sensors).cmd +++ /dev/null @@ -1,134 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:Configure -rem just configure for both x32 & x64 -for %%a in (32 64) do ( - copy /y "%bin%\HWiNFO\general.ini" "%bin%\HWiNFO\HWiNFO%%a.ini" - (echo SensorsOnly=1)>>"%bin%\HWiNFO\HWiNFO%%a.ini" - (echo SummaryOnly=0)>>"%bin%\HWiNFO\HWiNFO%%a.ini" -) - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=Program -set L_PATH=HWiNFO -set L_ITEM=HWiNFO.exe -set L_ARGS= -set L_7ZIP= -set L_CHCK=True -set L_ELEV=True -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Diagnostics/Extras/HitmanPro.cmd b/Diagnostics/Extras/HitmanPro.cmd deleted file mode 100644 index ec6344af..00000000 --- a/Diagnostics/Extras/HitmanPro.cmd +++ /dev/null @@ -1,127 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher -call "%bin%\Scripts\init_client_dir.cmd" /Info - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=Program -set L_PATH=HitmanPro -set L_ITEM=HitmanPro.exe -set L_ARGS=/scan /noinstall /noupload /log=%log_dir%\hitman.xml -set L_7ZIP= -set L_CHCK=True -set L_ELEV= -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Diagnostics/HWiNFO.cmd b/Diagnostics/HWiNFO.cmd deleted file mode 100644 index 564f2895..00000000 --- a/Diagnostics/HWiNFO.cmd +++ /dev/null @@ -1,134 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:Configure -rem just configure for both x32 & x64 -for %%a in (32 64) do ( - copy /y "%bin%\HWiNFO\general.ini" "%bin%\HWiNFO\HWiNFO%%a.ini" - (echo SensorsOnly=0)>>"%bin%\HWiNFO\HWiNFO%%a.ini" - (echo SummaryOnly=0)>>"%bin%\HWiNFO\HWiNFO%%a.ini" -) - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=Program -set L_PATH=HWiNFO -set L_ITEM=HWiNFO.exe -set L_ARGS= -set L_7ZIP= -set L_CHCK=True -set L_ELEV=True -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Diagnostics/ProduKey.cmd b/Diagnostics/ProduKey.cmd deleted file mode 100644 index d4e8b544..00000000 --- a/Diagnostics/ProduKey.cmd +++ /dev/null @@ -1,132 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:ClearConfigs -if exist "%bin%\ProduKey" ( - del "%bin%\ProduKey\ProduKey.cfg" 2>nul - del "%bin%\ProduKey\ProduKey64.cfg" 2>nul -) - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=Program -set L_PATH=ProduKey -set L_ITEM=ProduKey.exe -set L_ARGS= -set L_7ZIP= -set L_CHCK=True -set L_ELEV=True -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Drivers/Extras/Acer.cmd b/Drivers/Extras/Acer.cmd deleted file mode 100644 index 89addc25..00000000 --- a/Drivers/Extras/Acer.cmd +++ /dev/null @@ -1,137 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:Configure -rem just configure for both x32 & x64 -for %%a in (32 64) do ( - copy /y "%bin%\HWiNFO\general.ini" "%bin%\HWiNFO\HWiNFO%%a.ini" - (echo SensorsOnly=0)>>"%bin%\HWiNFO\HWiNFO%%a.ini" - (echo SummaryOnly=0)>>"%bin%\HWiNFO\HWiNFO%%a.ini" -) - -:OpenDriverPage -start "" "http://us.acer.com/ac/en/US/content/drivers" - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=Program -set L_PATH=HWiNFO -set L_ITEM=HWiNFO.exe -set L_ARGS= -set L_7ZIP= -set L_CHCK=True -set L_ELEV= -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Drivers/Extras/Lenovo.cmd b/Drivers/Extras/Lenovo.cmd deleted file mode 100644 index f072ae41..00000000 --- a/Drivers/Extras/Lenovo.cmd +++ /dev/null @@ -1,137 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:Configure -rem just configure for both x32 & x64 -for %%a in (32 64) do ( - copy /y "%bin%\HWiNFO\general.ini" "%bin%\HWiNFO\HWiNFO%%a.ini" - (echo SensorsOnly=0)>>"%bin%\HWiNFO\HWiNFO%%a.ini" - (echo SummaryOnly=0)>>"%bin%\HWiNFO\HWiNFO%%a.ini" -) - -:OpenDriverPage -start "" "http://support.lenovo.com/us/en/products?tabName=Downloads" - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=Program -set L_PATH=HWiNFO -set L_ITEM=HWiNFO.exe -set L_ARGS= -set L_7ZIP= -set L_CHCK=True -set L_ELEV= -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Drivers/Extras/Toshiba.cmd b/Drivers/Extras/Toshiba.cmd deleted file mode 100644 index 28116d3b..00000000 --- a/Drivers/Extras/Toshiba.cmd +++ /dev/null @@ -1,137 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:Configure -rem just configure for both x32 & x64 -for %%a in (32 64) do ( - copy /y "%bin%\HWiNFO\general.ini" "%bin%\HWiNFO\HWiNFO%%a.ini" - (echo SensorsOnly=0)>>"%bin%\HWiNFO\HWiNFO%%a.ini" - (echo SummaryOnly=0)>>"%bin%\HWiNFO\HWiNFO%%a.ini" -) - -:OpenDriverPage -start "" "http://support.toshiba.com/drivers" - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=Program -set L_PATH=HWiNFO -set L_ITEM=HWiNFO.exe -set L_ARGS= -set L_7ZIP= -set L_CHCK=True -set L_ELEV= -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Drivers/Intel RST (Current Release).cmd b/Drivers/Intel RST (Current Release).cmd deleted file mode 100644 index 8f5f09c4..00000000 --- a/Drivers/Intel RST (Current Release).cmd +++ /dev/null @@ -1,126 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=Program -set L_PATH=_Drivers\Intel RST -set L_ITEM=SetupRST_15.8.exe -set L_ARGS= -set L_7ZIP=SetupRST_15.8.exe -set L_CHCK=True -set L_ELEV= -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Drivers/Intel RST (Previous Releases).cmd b/Drivers/Intel RST (Previous Releases).cmd deleted file mode 100644 index 8c6a994b..00000000 --- a/Drivers/Intel RST (Previous Releases).cmd +++ /dev/null @@ -1,126 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=Folder -set L_PATH=_Drivers\Intel RST -set L_ITEM=. -set L_ARGS= -set L_7ZIP= -set L_CHCK=True -set L_ELEV= -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Drivers/Intel SSD Toolbox.cmd b/Drivers/Intel SSD Toolbox.cmd deleted file mode 100644 index c830d5e0..00000000 --- a/Drivers/Intel SSD Toolbox.cmd +++ /dev/null @@ -1,126 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=Program -set L_PATH=_Drivers -set L_ITEM=Intel SSD Toolbox.exe -set L_ARGS= -set L_7ZIP= -set L_CHCK=True -set L_ELEV= -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Drivers/Samsing Magician.cmd b/Drivers/Samsing Magician.cmd deleted file mode 100644 index 84b003ef..00000000 --- a/Drivers/Samsing Magician.cmd +++ /dev/null @@ -1,126 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=Program -set L_PATH=_Drivers -set L_ITEM=Samsung Magician.exe -set L_ARGS= -set L_7ZIP= -set L_CHCK=True -set L_ELEV= -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Drivers/Snappy Driver Installer.cmd b/Drivers/Snappy Driver Installer.cmd deleted file mode 100644 index fdbf842a..00000000 --- a/Drivers/Snappy Driver Installer.cmd +++ /dev/null @@ -1,126 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=Program -set L_PATH=_Drivers\SDI -set L_ITEM=SDI.exe -set L_ARGS= -set L_7ZIP= -set L_CHCK=True -set L_ELEV= -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Enter SafeMode.cmd b/Enter SafeMode.cmd deleted file mode 100644 index 64dc125e..00000000 --- a/Enter SafeMode.cmd +++ /dev/null @@ -1,126 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=PyScript -set L_PATH=Scripts -set L_ITEM=safemode_enter.py -set L_ARGS= -set L_7ZIP= -set L_CHCK=True -set L_ELEV=True -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Exit SafeMode.cmd b/Exit SafeMode.cmd deleted file mode 100644 index 19ac904c..00000000 --- a/Exit SafeMode.cmd +++ /dev/null @@ -1,126 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=PyScript -set L_PATH=Scripts -set L_ITEM=safemode_exit.py -set L_ARGS= -set L_7ZIP= -set L_CHCK=True -set L_ELEV=True -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Installers/Extras/Office/2013/Home and Business 2013 (x32).cmd b/Installers/Extras/Office/2013/Home and Business 2013 (x32).cmd deleted file mode 100644 index f80f5afd..00000000 --- a/Installers/Extras/Office/2013/Home and Business 2013 (x32).cmd +++ /dev/null @@ -1,125 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -: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=2013 -set L_ITEM=hb_32.xml -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Installers/Extras/Office/2013/Home and Business 2013 (x64).cmd b/Installers/Extras/Office/2013/Home and Business 2013 (x64).cmd deleted file mode 100644 index a622b8b1..00000000 --- a/Installers/Extras/Office/2013/Home and Business 2013 (x64).cmd +++ /dev/null @@ -1,125 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -: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=2013 -set L_ITEM=hb_64.xml -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Installers/Extras/Office/2013/Home and Student 2013 (x32).cmd b/Installers/Extras/Office/2013/Home and Student 2013 (x32).cmd deleted file mode 100644 index d6da84d5..00000000 --- a/Installers/Extras/Office/2013/Home and Student 2013 (x32).cmd +++ /dev/null @@ -1,125 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -: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=2013 -set L_ITEM=hs_32.xml -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Installers/Extras/Office/2013/Home and Student 2013 (x64).cmd b/Installers/Extras/Office/2013/Home and Student 2013 (x64).cmd deleted file mode 100644 index 4f946af2..00000000 --- a/Installers/Extras/Office/2013/Home and Student 2013 (x64).cmd +++ /dev/null @@ -1,125 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -: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=2013 -set L_ITEM=hs_64.xml -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Installers/Extras/Office/2016/Home and Business 2016 (x32).cmd b/Installers/Extras/Office/2016/Home and Business 2016 (x32).cmd deleted file mode 100644 index 41ae7ed8..00000000 --- a/Installers/Extras/Office/2016/Home and Business 2016 (x32).cmd +++ /dev/null @@ -1,125 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -: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=2016 -set L_ITEM=hb_32.xml -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Installers/Extras/Office/2016/Home and Business 2016 (x64).cmd b/Installers/Extras/Office/2016/Home and Business 2016 (x64).cmd deleted file mode 100644 index 0b091dfb..00000000 --- a/Installers/Extras/Office/2016/Home and Business 2016 (x64).cmd +++ /dev/null @@ -1,125 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -: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=2016 -set L_ITEM=hb_64.xml -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Installers/Extras/Office/2016/Home and Student 2016 (x32).cmd b/Installers/Extras/Office/2016/Home and Student 2016 (x32).cmd deleted file mode 100644 index 95c5218b..00000000 --- a/Installers/Extras/Office/2016/Home and Student 2016 (x32).cmd +++ /dev/null @@ -1,125 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -: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=2016 -set L_ITEM=hs_32.xml -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Installers/Extras/Office/2016/Home and Student 2016 (x64).cmd b/Installers/Extras/Office/2016/Home and Student 2016 (x64).cmd deleted file mode 100644 index bebd1ef8..00000000 --- a/Installers/Extras/Office/2016/Home and Student 2016 (x64).cmd +++ /dev/null @@ -1,125 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -: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=2016 -set L_ITEM=hs_64.xml -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Installers/Extras/Office/2016/Office 365 2016 (x32).cmd b/Installers/Extras/Office/2016/Office 365 2016 (x32).cmd deleted file mode 100644 index 8cb85d76..00000000 --- a/Installers/Extras/Office/2016/Office 365 2016 (x32).cmd +++ /dev/null @@ -1,125 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -: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=2016 -set L_ITEM=365_32.xml -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Installers/Extras/Office/2016/Office 365 2016 (x64).cmd b/Installers/Extras/Office/2016/Office 365 2016 (x64).cmd deleted file mode 100644 index 6dd35122..00000000 --- a/Installers/Extras/Office/2016/Office 365 2016 (x64).cmd +++ /dev/null @@ -1,125 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -: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=2016 -set L_ITEM=365_64.xml -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Installers/Extras/QuickBooks/2015/QuickBooksPremier2015.cmd b/Installers/Extras/QuickBooks/2015/QuickBooksPremier2015.cmd deleted file mode 100644 index b09a8f0d..00000000 --- a/Installers/Extras/QuickBooks/2015/QuickBooksPremier2015.cmd +++ /dev/null @@ -1,124 +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 -call :SetTitle Launcher - -: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=2015 -set L_ITEM=QuickBooksPremier2015 -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "KIT_NAME_FULL=%%f" -) -set "KIT_NAME_FULL=%KIT_NAME_FULL:~15,-1%" -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% diff --git a/Installers/Extras/QuickBooks/2015/QuickBooksPro2015.cmd b/Installers/Extras/QuickBooks/2015/QuickBooksPro2015.cmd deleted file mode 100644 index 15b14db0..00000000 --- a/Installers/Extras/QuickBooks/2015/QuickBooksPro2015.cmd +++ /dev/null @@ -1,124 +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 -call :SetTitle Launcher - -: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=2015 -set L_ITEM=QuickBooksPro2015 -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "KIT_NAME_FULL=%%f" -) -set "KIT_NAME_FULL=%KIT_NAME_FULL:~15,-1%" -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% diff --git a/Installers/Extras/QuickBooks/2016/QuickBooksPremier2016.cmd b/Installers/Extras/QuickBooks/2016/QuickBooksPremier2016.cmd deleted file mode 100644 index d80839c1..00000000 --- a/Installers/Extras/QuickBooks/2016/QuickBooksPremier2016.cmd +++ /dev/null @@ -1,124 +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 -call :SetTitle Launcher - -: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=2016 -set L_ITEM=QuickBooksPremier2016 -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "KIT_NAME_FULL=%%f" -) -set "KIT_NAME_FULL=%KIT_NAME_FULL:~15,-1%" -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% diff --git a/Installers/Extras/QuickBooks/2016/QuickBooksPro2016.cmd b/Installers/Extras/QuickBooks/2016/QuickBooksPro2016.cmd deleted file mode 100644 index 71010aa0..00000000 --- a/Installers/Extras/QuickBooks/2016/QuickBooksPro2016.cmd +++ /dev/null @@ -1,124 +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 -call :SetTitle Launcher - -: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=2016 -set L_ITEM=QuickBooksPro2016 -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "KIT_NAME_FULL=%%f" -) -set "KIT_NAME_FULL=%KIT_NAME_FULL:~15,-1%" -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% diff --git a/Installers/Extras/QuickBooks/2017/QuickBooksPremier2017.cmd b/Installers/Extras/QuickBooks/2017/QuickBooksPremier2017.cmd deleted file mode 100644 index 371629f6..00000000 --- a/Installers/Extras/QuickBooks/2017/QuickBooksPremier2017.cmd +++ /dev/null @@ -1,124 +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 -call :SetTitle Launcher - -: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=2017 -set L_ITEM=QuickBooksPremier2017 -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "KIT_NAME_FULL=%%f" -) -set "KIT_NAME_FULL=%KIT_NAME_FULL:~15,-1%" -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% diff --git a/Installers/Extras/QuickBooks/2017/QuickBooksPro2017.cmd b/Installers/Extras/QuickBooks/2017/QuickBooksPro2017.cmd deleted file mode 100644 index 632d9fb9..00000000 --- a/Installers/Extras/QuickBooks/2017/QuickBooksPro2017.cmd +++ /dev/null @@ -1,124 +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 -call :SetTitle Launcher - -: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=2017 -set L_ITEM=QuickBooksPro2017 -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "KIT_NAME_FULL=%%f" -) -set "KIT_NAME_FULL=%KIT_NAME_FULL:~15,-1%" -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% diff --git a/Installers/SW Bundle.cmd b/Installers/SW Bundle.cmd deleted file mode 100644 index c9168179..00000000 --- a/Installers/SW Bundle.cmd +++ /dev/null @@ -1,126 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=PyScript -set L_PATH=Scripts -set L_ITEM=install_sw_bundle.py -set L_ARGS= -set L_7ZIP= -set L_CHCK=True -set L_ELEV=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Misc/ConEmu (as ADMIN).cmd b/Misc/ConEmu (as ADMIN).cmd deleted file mode 100644 index 2499d61b..00000000 --- a/Misc/ConEmu (as ADMIN).cmd +++ /dev/null @@ -1,126 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=Program -set L_PATH=ConEmu -set L_ITEM=ConEmu.exe -set L_ARGS= -set L_7ZIP= -set L_CHCK=True -set L_ELEV=True -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Misc/ConEmu.cmd b/Misc/ConEmu.cmd deleted file mode 100644 index 3526cffa..00000000 --- a/Misc/ConEmu.cmd +++ /dev/null @@ -1,126 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=Program -set L_PATH=ConEmu -set L_ITEM=ConEmu.exe -set L_ARGS= -set L_7ZIP= -set L_CHCK=True -set L_ELEV= -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Misc/Everything.cmd b/Misc/Everything.cmd deleted file mode 100644 index ec340519..00000000 --- a/Misc/Everything.cmd +++ /dev/null @@ -1,126 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=Program -set L_PATH=Everything -set L_ITEM=Everything.exe -set L_ARGS=-nodb -set L_7ZIP= -set L_CHCK=True -set L_ELEV=True -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Misc/Notepad++.cmd b/Misc/Notepad++.cmd deleted file mode 100644 index 85026824..00000000 --- a/Misc/Notepad++.cmd +++ /dev/null @@ -1,126 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=Program -set L_PATH=notepadplusplus -set L_ITEM=notepadplusplus.exe -set L_ARGS= -set L_7ZIP= -set L_CHCK=True -set L_ELEV= -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Misc/TreeSizeFree.cmd b/Misc/TreeSizeFree.cmd deleted file mode 100644 index eece55aa..00000000 --- a/Misc/TreeSizeFree.cmd +++ /dev/null @@ -1,126 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=Program -set L_PATH=TreeSizeFree -set L_ITEM=TreeSizeFree.exe -set L_ARGS= -set L_7ZIP= -set L_CHCK=True -set L_ELEV=True -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Misc/XMPlay.cmd b/Misc/XMPlay.cmd deleted file mode 100644 index 468b8d04..00000000 --- a/Misc/XMPlay.cmd +++ /dev/null @@ -1,126 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=Program -set L_PATH=XMPlay -set L_ITEM=xmplay.exe -set L_ARGS="%bin%\XMPlay\music.7z" -set L_7ZIP= -set L_CHCK=True -set L_ELEV= -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Repairs/AdwCleaner.cmd b/Repairs/AdwCleaner.cmd deleted file mode 100644 index 5efa7114..00000000 --- a/Repairs/AdwCleaner.cmd +++ /dev/null @@ -1,126 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=Program -set L_PATH=AdwCleaner -set L_ITEM=AdwCleaner.exe -set L_ARGS= -set L_7ZIP= -set L_CHCK=True -set L_ELEV= -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Repairs/Autoruns.cmd b/Repairs/Autoruns.cmd deleted file mode 100644 index 7df953ac..00000000 --- a/Repairs/Autoruns.cmd +++ /dev/null @@ -1,138 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:Configure -reg add HKCU\Software\Sysinternals\AutoRuns /v checkvirustotal /t REG_DWORD /d 0 /f >nul -reg add HKCU\Software\Sysinternals\AutoRuns /v EulaAccepted /t REG_DWORD /d 1 /f >nul -reg add HKCU\Software\Sysinternals\AutoRuns /v shownomicrosoft /t REG_DWORD /d 1 /f >nul -reg add HKCU\Software\Sysinternals\AutoRuns /v shownowindows /t REG_DWORD /d 1 /f >nul -reg add HKCU\Software\Sysinternals\AutoRuns /v showonlyvirustotal /t REG_DWORD /d 0 /f >nul -reg add HKCU\Software\Sysinternals\AutoRuns /v submitvirustotal /t REG_DWORD /d 0 /f >nul -reg add HKCU\Software\Sysinternals\AutoRuns /v verifysignatures /t REG_DWORD /d 0 /f >nul -reg add HKCU\Software\Sysinternals\AutoRuns\SigCheck /v EulaAccepted /t REG_DWORD /d 1 /f >nul -reg add HKCU\Software\Sysinternals\AutoRuns\Streams /v EulaAccepted /t REG_DWORD /d 1 /f >nul -reg add HKCU\Software\Sysinternals\AutoRuns\VirusTotal /v VirusTotalTermsAccepted /t REG_DWORD /d 1 /f >nul - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=Program -set L_PATH=Autoruns -set L_ITEM=Autoruns.exe -set L_ARGS=-e -set L_7ZIP=Autoruns* -set L_CHCK=True -set L_ELEV= -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Repairs/CHKDSK.cmd b/Repairs/CHKDSK.cmd deleted file mode 100644 index cb4404de..00000000 --- a/Repairs/CHKDSK.cmd +++ /dev/null @@ -1,126 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=PyScript -set L_PATH=Scripts -set L_ITEM=check_disk.py -set L_ARGS= -set L_7ZIP= -set L_CHCK=True -set L_ELEV=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Repairs/DISM.cmd b/Repairs/DISM.cmd deleted file mode 100644 index e15bba1b..00000000 --- a/Repairs/DISM.cmd +++ /dev/null @@ -1,126 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=PyScript -set L_PATH=Scripts -set L_ITEM=dism.py -set L_ARGS= -set L_7ZIP= -set L_CHCK=True -set L_ELEV=True -set L_NCMD=TRUE -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Repairs/KVRT.cmd b/Repairs/KVRT.cmd deleted file mode 100644 index 2ad0f695..00000000 --- a/Repairs/KVRT.cmd +++ /dev/null @@ -1,129 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher -call "%bin%\Scripts\init_client_dir.cmd" /Quarantine -set "q_dir=%client_dir%\Quarantine\KVRT" -mkdir "%q_dir%">nul 2>&1 - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=Program -set L_PATH=KVRT -set L_ITEM=KVRT.exe -set L_ARGS=-accepteula -d %q_dir% -processlevel 3 -dontcryptsupportinfo -fixednames -set L_7ZIP= -set L_CHCK=True -set L_ELEV= -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Repairs/RKill.cmd b/Repairs/RKill.cmd deleted file mode 100644 index 44da0cd3..00000000 --- a/Repairs/RKill.cmd +++ /dev/null @@ -1,131 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher -call "%bin%\Scripts\init_client_dir.cmd" /Info - -:UglyHackToOpenRKillFolder -rem "Sleeps" in the background for 10 secs and then opens the RKill folder -start "" /b cmd /c ping -n 10 127.0.0.1^>nul ^& if exist "%bin%\RKill" explorer "%bin%\RKill" - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=Program -set L_PATH=RKill -set L_ITEM=RKill.exe -set L_ARGS= -set L_7ZIP= -set L_CHCK=True -set L_ELEV= -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Repairs/SFC Scan.cmd b/Repairs/SFC Scan.cmd deleted file mode 100644 index 282e11b7..00000000 --- a/Repairs/SFC Scan.cmd +++ /dev/null @@ -1,126 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=PyScript -set L_PATH=Scripts -set L_ITEM=sfc_scan.py -set L_ARGS= -set L_7ZIP= -set L_CHCK=True -set L_ELEV=True -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Repairs/TDSSKiller.cmd b/Repairs/TDSSKiller.cmd deleted file mode 100644 index 588cf17f..00000000 --- a/Repairs/TDSSKiller.cmd +++ /dev/null @@ -1,129 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher -call "%bin%\Scripts\init_client_dir.cmd" /Quarantine -set "q_dir=%client_dir%\Quarantine\TDSSKiller" -mkdir "%q_dir%">nul 2>&1 - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=Program -set L_PATH=TDSSKiller -set L_ITEM=TDSSKiller.exe -set L_ARGS=-l %log_dir%\TDSSKiller.log -qpath %q_dir% -accepteula -accepteulaksn -dcexact -tdlfs -set L_7ZIP= -set L_CHCK=True -set L_ELEV= -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/System Checklist.cmd b/System Checklist.cmd deleted file mode 100644 index 03c398cd..00000000 --- a/System Checklist.cmd +++ /dev/null @@ -1,126 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=PyScript -set L_PATH=Scripts -set L_ITEM=system_checklist.py -set L_ARGS= -set L_7ZIP= -set L_CHCK=True -set L_ELEV=True -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/System Diagnostics.cmd b/System Diagnostics.cmd deleted file mode 100644 index 56a25389..00000000 --- a/System Diagnostics.cmd +++ /dev/null @@ -1,126 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=PyScript -set L_PATH=Scripts -set L_ITEM=system_diagnostics.py -set L_ARGS= -set L_7ZIP= -set L_CHCK=True -set L_ELEV=True -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/Uninstallers/IObit Uninstaller.cmd b/Uninstallers/IObit Uninstaller.cmd deleted file mode 100644 index c418fd32..00000000 --- a/Uninstallers/IObit Uninstaller.cmd +++ /dev/null @@ -1,126 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=Program -set L_PATH=IObitUninstaller -set L_ITEM=IObitUninstaler.exe -set L_ARGS= -set L_7ZIP= -set L_CHCK=True -set L_ELEV= -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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% \ No newline at end of file diff --git a/User Checklist.cmd b/User Checklist.cmd deleted file mode 100644 index 6d8ae60b..00000000 --- a/User Checklist.cmd +++ /dev/null @@ -1,126 +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 EnableDelayedExpansion -title Wizard Kit: Launcher -call :CheckFlags %* -call :FindBin -call :SetTitle Launcher - -:DefineLaunch -:: Set L_TYPE to one of these options: -:: Console, Folder, Office, Program, PSScript, or PyScript -:: Set L_PATH to the path to the program folder -:: NOTE: Launch.cmd will test for L_PATH in the following order: -:: 1: %cbin%\L_PATH.7z (which will be extracted to %bin%\L_PATH) -:: 2: %bin%\L_PATH -:: 3. %L_PATH% (i.e. treat L_PATH as an absolute path) -:: Set L_ITEM to one of the following: -:: 1. The filename of the item to launch -:: 2. The Office product to install -:: 3. '.' to open extracted folder -:: Set L_ARGS to include any necessary arguments (if any) -:: Set L_7ZIP to include any necessary arguments for extraction -:: 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=PyScript -set L_PATH=Scripts -set L_ITEM=user_checklist.py -set L_ARGS= -set L_7ZIP= -set L_CHCK=True -set L_ELEV= -set L_NCMD=True -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 - -:SetTitle -rem Sets title using KIT_NAME_FULL from settings\main.py -set "SETTINGS=%bin%\Scripts\settings\main.py" -for /f "tokens=* usebackq" %%f in (`findstr KIT_NAME_FULL %SETTINGS%`) do ( - set "_v=%%f" - set "_v=!_v:*'=!" - set "KIT_NAME_FULL=!_v:~0,-1!" -) -set "window_title=%*" -if not defined window_title set "window_title=Launcher" -set "window_title=%KIT_NAME_FULL%: %window_title%" -title %window_title% -@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%