Update readme.md

This commit is contained in:
Max Krieger 2025-01-28 08:48:24 +01:00
parent d0c16c6c29
commit 29bba81164
2 changed files with 29 additions and 28 deletions

View file

@ -25,9 +25,8 @@
Just output on screen
.NOTES
Version: 1.2
Author: Singleton Factory GmbH
Creation Date: 2023-01-18
Purpose/Change: New company, new luck
Author: Heko Büroservice GmbH & Co. KG.
Creation Date: 2025-01-28
.EXAMPLE
.\msoffice-removal-tool.ps1 -InstallOffice365 -SupressReboot
#>
@ -175,23 +174,24 @@ Function Invoke-RebootInSeconds($Seconds) {
}
Function Set-CurrentStage($StageValue) {
if (-not (Test-Path "HKLM:\Software\OEM\Singleton-Factory-GmbH\M365\Install")) {
New-Item -Path "HKLM:\Software\OEM\Singleton-Factory-GmbH\M365\Install" -Force | Out-Null
if (-not (Test-Path "HKLM:\Software\OEM\Heko-Bueroservice-GmbH\M365\Install")) {
New-Item -Path "HKLM:\Software\OEM\Heko-Bueroservice-GmbH\M365\Install" -Force | Out-Null
}
New-ItemProperty -Path "HKLM:\Software\OEM\Singleton-Factory-GmbH\M365\Install" -Name "CurrentStage" -Value $StageValue -PropertyType String -Force | Out-Null
New-ItemProperty -Path "HKLM:\Software\OEM\Heko-Bueroservice-GmbH\M365\Install" -Name "CurrentStage" -Value $StageValue -PropertyType String -Force | Out-Null
}
Function Invoke-Intro {
Write-Host " __ _ _ _ ___ _ "
Write-Host " / _(_)_ __ __ _| | ___| |_ ___ _ __ / __\_ _ ___| |_ ___ _ __ _ _ "
Write-Host " \ \| | '_ \ / _' | |/ _ \ __/ _ \| '_ \ / _\/ _' |/ __| __/ _ \| '__| | | |"
Write-Host " _\ \ | | | | (_| | | __/ || (_) | | | | / / | (_| | (__| || (_) | | | |_| |"
Write-Host " \__/_|_| |_|\__, |_|\___|\__\___/|_| |_| \/ \__,_|\___|\__\___/|_| \__, |"
Write-Host " |___/ |___/ "
Write-Host "Microsoft Office Removal Tool"
Write-Host "by Aaron Viehl (Singleton Factory GmbH)"
Write-Host "singleton-factory.de"
Function Invoke-Intro {
Write-Host " _ _ _ ______ _ _ _ "
Write-Host "| | | | | | | ___ (_) (_) (_) "
Write-Host "| |_| | ___| | _____ | |_/ /_ _ _ __ ___ ___ ___ _ ____ ___ ___ ___ "
Write-Host "| _ |/ _ \ |/ / _ \ | ___ \ | | | '__/ _ \/ __|/ _ \ '__\ \ / / |/ __/ _ \"
Write-Host "| | | | __/ < (_) | | |_/ / |_| | | | (_) \__ \ __/ | \ V /| | (_| __/"
Write-Host "\_| |_/\___|_|\_\___/ \____/ \__,_|_| \___/|___/\___|_| \_/ |_|\___\___|"
Write-Host ""
Write-Host "Microsoft Office Removal Tool"
Write-Host "by Max Krieger"
Write-Host "heko-bs.de"
Write-Host ""
}
#-----------------------------------------------------------[Execution]------------------------------------------------------------
@ -209,8 +209,8 @@ if (-Not $Force) {
Invoke-Intro
# Check if there is a stage to resume
if (-not ($RunAgain)) {
if (Test-Path "HKLM:\Software\OEM\Singleton-Factory-GmbH\M365\Install") {
$CurrentStageValue = (Get-ItemProperty "HKLM:\Software\OEM\Singleton-Factory-GmbH\M365\Install").CurrentStage
if (Test-Path "HKLM:\Software\OEM\Heko-Bueroservice-GmbH\M365\Install") {
$CurrentStageValue = (Get-ItemProperty "HKLM:\Software\OEM\Heko-Bueroservice-GmbH\M365\Install").CurrentStage
Switch ($CurrentStageValue) {
1 {
Write-Host "Resuming Stage 1: Uninstalling Office ..."