Added logs

pull/87/head
Romain 2022-05-23 09:19:24 +02:00
parent 31a3eae947
commit 9a96201372
1 changed files with 12 additions and 0 deletions

View File

@ -17,6 +17,9 @@ function Invoke-PostUpdateActions {
New-ItemProperty $regPath -Name UninstallString -Value "$WorkingDir\WAU-Uninstall.bat" -Force New-ItemProperty $regPath -Name UninstallString -Value "$WorkingDir\WAU-Uninstall.bat" -Force
New-ItemProperty $regPath -Name QuietUninstallString -Value "$WorkingDir\WAU-Uninstall.bat" -Force New-ItemProperty $regPath -Name QuietUninstallString -Value "$WorkingDir\WAU-Uninstall.bat" -Force
New-ItemProperty $regPath -Name WAU_UpdatePrerelease -Value 0 -PropertyType DWord -Force New-ItemProperty $regPath -Name WAU_UpdatePrerelease -Value 0 -PropertyType DWord -Force
#log
Write-Log "$regPath created." "green"
} }
#Convert about.xml if exists (previous WAU versions) to reg #Convert about.xml if exists (previous WAU versions) to reg
@ -29,6 +32,9 @@ function Invoke-PostUpdateActions {
#Remove file once converted #Remove file once converted
Remove-Item $WAUAboutPath -Force -Confirm:$false Remove-Item $WAUAboutPath -Force -Confirm:$false
#log
Write-Log "$WAUAboutPath converted." "green"
} }
#Convert config.xml if exists (previous WAU versions) to reg #Convert config.xml if exists (previous WAU versions) to reg
@ -42,6 +48,9 @@ function Invoke-PostUpdateActions {
#Remove file once converted #Remove file once converted
Remove-Item $WAUConfigPath -Force -Confirm:$false Remove-Item $WAUConfigPath -Force -Confirm:$false
#log
Write-Log "$WAUConfigPath converted." "green"
} }
#Remove old functions #Remove old functions
@ -53,6 +62,9 @@ function Invoke-PostUpdateActions {
foreach ($FileName in $FileNames){ foreach ($FileName in $FileNames){
if (Test-Path $FileName) { if (Test-Path $FileName) {
Remove-Item $FileName -Force -Confirm:$false Remove-Item $FileName -Force -Confirm:$false
#log
Write-Log "$FileName removed." "green"
} }
} }