* NEW: CompressedBin folder .cbin
* This folder holds compressed versions of what was in .bin
* These files are 7-zip compressed using file + header encryption
* (This is to avoid false-positive AV alerts)
* NEW: Python conversion
* All scripts rewritten / ported to Python
* All PoSH scripts removed
* All scripts adjusted to no longer use vars as a variable
* This is because vars is a built-in function
* Also, slightly more clear as vars_wk == variables for Wizard Kit
* vars_os merged with vars_wk for since both are based on the current system
* Launch.cmd no longer uses %path% and instead directly modifies L_PATH
* fixes bug where an empty %PATH% would halt various scripts
* Copy WizardKit
* Now only copies the required folders in .bin
* Avoids potentially massive slowdowns on often-used UFDs
* Updated to support the new .cbin folder
* User Data Transfer expanded
* File-based main data selection is now done first
* Default inclusions and exclusions adjusted
* Cleanup should now unhide TransferDir
* Launch.cmd and Launchers updated
* Launch and Launcher_Template reworked to support the new .cbin method
* Launch will extract the archive (if exists) and then launch the item
* Launch.cmd now automatically reloads inside ConEmu
* Launch.cmd now runs from L_ITEM's dir in most cases
* Added L_NCMD to use the native command window instead of ConEmu
* Added PywScript mode that uses Python native console window
* Launchers are customized at the top of the files now
* FindBin and Flags functions have been moved to the end of the file
* Launchers and Launch.cmd now use more descriptive variable names
* Helps readability and troubleshooting
* Ported code from copy_office.cmd into Launch.cmd
* Office setup local folders now have better naming
* Scripts should now print details about the ENV when aborting
* Should help diagnose future breaks, typos, etc..
* Added a gen_office.bash script for creating the Office Setup Launchers
* Fixed Office variable issue (needed delayedexpansion)
* SW Diagnostics / SW Checklist
* (Re)added Kill All Processes section using ProcessKiller 2.0 from Tron
* Added Everything - dumps a file listing of the %systemdrive%
* Added Opera to the browser backup section
* AdwCleaner is no longer removed during the checklist
* HWiNFO has replaced HWMonitor due to false AMD/ATI readings
* HWiNFO is not opened until after Enter is pressed to exit the checklist
* Installed OS warnings expanded to mark many more versions as outdated
* SAS is no longer force-removed at the end of the script
* The new user data size function is reading data for all users
135 lines
No EOL
7.2 KiB
Bash
135 lines
No EOL
7.2 KiB
Bash
#!/bin/bash
|
|
|
|
cd ../../
|
|
mkdir Installers/Extras/Office -p
|
|
pushd Installers/Extras/Office
|
|
mkdir 2007
|
|
mkdir 2010
|
|
mkdir 2013
|
|
mkdir 2016
|
|
|
|
cp ../../../.bin/Scripts/Launcher_Template.cmd "2007/2007 Microsoft Office system (SP3).cmd"
|
|
sed -ir 's/__TYPE__/Office/' "2007/2007 Microsoft Office system (SP3).cmd"
|
|
sed -ir 's/__PATH__/2007/' "2007/2007 Microsoft Office system (SP3).cmd"
|
|
sed -ir 's/__ITEM__/2007 Microsoft Office system (SP3)/' "2007/2007 Microsoft Office system (SP3).cmd"
|
|
|
|
cp ../../../.bin/Scripts/Launcher_Template.cmd "2007/Access 2007 (SP3).cmd"
|
|
sed -ir 's/__TYPE__/Office/' "2007/Access 2007 (SP3).cmd"
|
|
sed -ir 's/__PATH__/2007/' "2007/Access 2007 (SP3).cmd"
|
|
sed -ir 's/__ITEM__/Access 2007 (SP3)/' "2007/Access 2007 (SP3).cmd"
|
|
|
|
cp ../../../.bin/Scripts/Launcher_Template.cmd "2007/AccessRuntime2007.cmd"
|
|
sed -ir 's/__TYPE__/Office/' "2007/AccessRuntime2007.cmd"
|
|
sed -ir 's/__PATH__/2007/' "2007/AccessRuntime2007.cmd"
|
|
sed -ir 's/__ITEM__/AccessRuntime2007.exe/' "2007/AccessRuntime2007.cmd"
|
|
|
|
cp ../../../.bin/Scripts/Launcher_Template.cmd "2007/Home and Student 2007 (SP3).cmd"
|
|
sed -ir 's/__TYPE__/Office/' "2007/Home and Student 2007 (SP3).cmd"
|
|
sed -ir 's/__PATH__/2007/' "2007/Home and Student 2007 (SP3).cmd"
|
|
sed -ir 's/__ITEM__/Home and Student 2007 (SP3)/' "2007/Home and Student 2007 (SP3).cmd"
|
|
|
|
cp ../../../.bin/Scripts/Launcher_Template.cmd "2007/Outlook 2007 (SP3).cmd"
|
|
sed -ir 's/__TYPE__/Office/' "2007/Outlook 2007 (SP3).cmd"
|
|
sed -ir 's/__PATH__/2007/' "2007/Outlook 2007 (SP3).cmd"
|
|
sed -ir 's/__ITEM__/Outlook 2007 (SP3)/' "2007/Outlook 2007 (SP3).cmd"
|
|
|
|
cp ../../../.bin/Scripts/Launcher_Template.cmd "2007/Professional 2007 (SP3).cmd"
|
|
sed -ir 's/__TYPE__/Office/' "2007/Professional 2007 (SP3).cmd"
|
|
sed -ir 's/__PATH__/2007/' "2007/Professional 2007 (SP3).cmd"
|
|
sed -ir 's/__ITEM__/Professional 2007 (SP3)/' "2007/Professional 2007 (SP3).cmd"
|
|
|
|
cp ../../../.bin/Scripts/Launcher_Template.cmd "2007/Publisher 2007 (SP3).cmd"
|
|
sed -ir 's/__TYPE__/Office/' "2007/Publisher 2007 (SP3).cmd"
|
|
sed -ir 's/__PATH__/2007/' "2007/Publisher 2007 (SP3).cmd"
|
|
sed -ir 's/__ITEM__/Publisher 2007 (SP3)/' "2007/Publisher 2007 (SP3).cmd"
|
|
|
|
cp ../../../.bin/Scripts/Launcher_Template.cmd "2007/Small Business 2007 (SP3).cmd"
|
|
sed -ir 's/__TYPE__/Office/' "2007/Small Business 2007 (SP3).cmd"
|
|
sed -ir 's/__PATH__/2007/' "2007/Small Business 2007 (SP3).cmd"
|
|
sed -ir 's/__ITEM__/Small Business 2007 (SP3)/' "2007/Small Business 2007 (SP3).cmd"
|
|
|
|
cp ../../../.bin/Scripts/Launcher_Template.cmd "2010/Outlook 2010 (SP2) (x32).cmd"
|
|
sed -ir 's/__TYPE__/Office/' "2010/Outlook 2010 (SP2) (x32).cmd"
|
|
sed -ir 's/__PATH__/2010/' "2010/Outlook 2010 (SP2) (x32).cmd"
|
|
sed -ir 's/__ITEM__/Outlook 2010 (SP2) (x32)/' "2010/Outlook 2010 (SP2) (x32).cmd"
|
|
|
|
cp ../../../.bin/Scripts/Launcher_Template.cmd "2010/Outlook 2010 (SP2) (x64).cmd"
|
|
sed -ir 's/__TYPE__/Office/' "2010/Outlook 2010 (SP2) (x64).cmd"
|
|
sed -ir 's/__PATH__/2010/' "2010/Outlook 2010 (SP2) (x64).cmd"
|
|
sed -ir 's/__ITEM__/Outlook 2010 (SP2) (x64)/' "2010/Outlook 2010 (SP2) (x64).cmd"
|
|
|
|
cp ../../../.bin/Scripts/Launcher_Template.cmd "2010/Professional Plus 2010 (SP2).cmd"
|
|
sed -ir 's/__TYPE__/Office/' "2010/Professional Plus 2010 (SP2).cmd"
|
|
sed -ir 's/__PATH__/2010/' "2010/Professional Plus 2010 (SP2).cmd"
|
|
sed -ir 's/__ITEM__/Professional Plus 2010 (SP2)/' "2010/Professional Plus 2010 (SP2).cmd"
|
|
|
|
cp ../../../.bin/Scripts/Launcher_Template.cmd "2010/Publisher 2010 (SP2).cmd"
|
|
sed -ir 's/__TYPE__/Office/' "2010/Publisher 2010 (SP2).cmd"
|
|
sed -ir 's/__PATH__/2010/' "2010/Publisher 2010 (SP2).cmd"
|
|
sed -ir 's/__ITEM__/Publisher 2010 (SP2)/' "2010/Publisher 2010 (SP2).cmd"
|
|
|
|
cp ../../../.bin/Scripts/Launcher_Template.cmd "2010/Single Image 2010 (SP2).cmd"
|
|
sed -ir 's/__TYPE__/Office/' "2010/Single Image 2010 (SP2).cmd"
|
|
sed -ir 's/__PATH__/2010/' "2010/Single Image 2010 (SP2).cmd"
|
|
sed -ir 's/__ITEM__/Single Image 2010 (SP2)/' "2010/Single Image 2010 (SP2).cmd"
|
|
|
|
cp ../../../.bin/Scripts/Launcher_Template.cmd "2013/Home and Business 2013 (x64).cmd"
|
|
sed -ir 's/__TYPE__/Office/' "2013/Home and Business 2013 (x64).cmd"
|
|
sed -ir 's/__PATH__/2013/' "2013/Home and Business 2013 (x64).cmd"
|
|
sed -ir 's/__ITEM__/hb_64.xml/' "2013/Home and Business 2013 (x64).cmd"
|
|
|
|
cp ../../../.bin/Scripts/Launcher_Template.cmd "2013/Home and Student 2013 (x64).cmd"
|
|
sed -ir 's/__TYPE__/Office/' "2013/Home and Student 2013 (x64).cmd"
|
|
sed -ir 's/__PATH__/2013/' "2013/Home and Student 2013 (x64).cmd"
|
|
sed -ir 's/__ITEM__/hs_64.xml/' "2013/Home and Student 2013 (x64).cmd"
|
|
|
|
cp ../../../.bin/Scripts/Launcher_Template.cmd "2013/Office 365 2013 (x64).cmd"
|
|
sed -ir 's/__TYPE__/Office/' "2013/Office 365 2013 (x64).cmd"
|
|
sed -ir 's/__PATH__/2013/' "2013/Office 365 2013 (x64).cmd"
|
|
sed -ir 's/__ITEM__/365_64.xml/' "2013/Office 365 2013 (x64).cmd"
|
|
|
|
cp ../../../.bin/Scripts/Launcher_Template.cmd "2013/Home and Business 2013 (x32).cmd"
|
|
sed -ir 's/__TYPE__/Office/' "2013/Home and Business 2013 (x32).cmd"
|
|
sed -ir 's/__PATH__/2013/' "2013/Home and Business 2013 (x32).cmd"
|
|
sed -ir 's/__ITEM__/hb_32.xml/' "2013/Home and Business 2013 (x32).cmd"
|
|
|
|
cp ../../../.bin/Scripts/Launcher_Template.cmd "2013/Home and Student 2013 (x32).cmd"
|
|
sed -ir 's/__TYPE__/Office/' "2013/Home and Student 2013 (x32).cmd"
|
|
sed -ir 's/__PATH__/2013/' "2013/Home and Student 2013 (x32).cmd"
|
|
sed -ir 's/__ITEM__/hs_32.xml/' "2013/Home and Student 2013 (x32).cmd"
|
|
|
|
cp ../../../.bin/Scripts/Launcher_Template.cmd "2013/Office 365 2013 (x32).cmd"
|
|
sed -ir 's/__TYPE__/Office/' "2013/Office 365 2013 (x32).cmd"
|
|
sed -ir 's/__PATH__/2013/' "2013/Office 365 2013 (x32).cmd"
|
|
sed -ir 's/__ITEM__/365_32.xml/' "2013/Office 365 2013 (x32).cmd"
|
|
|
|
cp ../../../.bin/Scripts/Launcher_Template.cmd "2016/Home and Business 2016 (x64).cmd"
|
|
sed -ir 's/__TYPE__/Office/' "2016/Home and Business 2016 (x64).cmd"
|
|
sed -ir 's/__PATH__/2016/' "2016/Home and Business 2016 (x64).cmd"
|
|
sed -ir 's/__ITEM__/hb_64.xml/' "2016/Home and Business 2016 (x64).cmd"
|
|
|
|
cp ../../../.bin/Scripts/Launcher_Template.cmd "2016/Home and Student 2016 (x64).cmd"
|
|
sed -ir 's/__TYPE__/Office/' "2016/Home and Student 2016 (x64).cmd"
|
|
sed -ir 's/__PATH__/2016/' "2016/Home and Student 2016 (x64).cmd"
|
|
sed -ir 's/__ITEM__/hs_64.xml/' "2016/Home and Student 2016 (x64).cmd"
|
|
|
|
cp ../../../.bin/Scripts/Launcher_Template.cmd "2016/Office 365 2016 (x64).cmd"
|
|
sed -ir 's/__TYPE__/Office/' "2016/Office 365 2016 (x64).cmd"
|
|
sed -ir 's/__PATH__/2016/' "2016/Office 365 2016 (x64).cmd"
|
|
sed -ir 's/__ITEM__/365_64.xml/' "2016/Office 365 2016 (x64).cmd"
|
|
|
|
cp ../../../.bin/Scripts/Launcher_Template.cmd "2016/Home and Business 2016 (x32).cmd"
|
|
sed -ir 's/__TYPE__/Office/' "2016/Home and Business 2016 (x32).cmd"
|
|
sed -ir 's/__PATH__/2016/' "2016/Home and Business 2016 (x32).cmd"
|
|
sed -ir 's/__ITEM__/hb_32.xml/' "2016/Home and Business 2016 (x32).cmd"
|
|
|
|
cp ../../../.bin/Scripts/Launcher_Template.cmd "2016/Home and Student 2016 (x32).cmd"
|
|
sed -ir 's/__TYPE__/Office/' "2016/Home and Student 2016 (x32).cmd"
|
|
sed -ir 's/__PATH__/2016/' "2016/Home and Student 2016 (x32).cmd"
|
|
sed -ir 's/__ITEM__/hs_32.xml/' "2016/Home and Student 2016 (x32).cmd"
|
|
|
|
cp ../../../.bin/Scripts/Launcher_Template.cmd "2016/Office 365 2016 (x32).cmd"
|
|
sed -ir 's/__TYPE__/Office/' "2016/Office 365 2016 (x32).cmd"
|
|
sed -ir 's/__PATH__/2016/' "2016/Office 365 2016 (x32).cmd"
|
|
sed -ir 's/__ITEM__/365_32.xml/' "2016/Office 365 2016 (x32).cmd"
|
|
popd |