improved uninstall feature

pull/87/head
Romain 2022-05-23 18:08:39 +02:00
parent f552c5b261
commit 94b554e04c
2 changed files with 2 additions and 4 deletions

View File

@ -1,2 +0,0 @@
@echo off
powershell -Command "Start-Process powershell.exe -Argument '-noprofile -executionpolicy bypass -file """%~dp0WAU-Uninstall.ps1""" '" -Verb RunAs

View File

@ -15,8 +15,8 @@ function Invoke-PostUpdateActions {
New-ItemProperty $regPath -Name Publisher -Value "Romanitho" -Force
New-ItemProperty $regPath -Name URLInfoAbout -Value "https://github.com/Romanitho/Winget-AutoUpdate" -Force
New-ItemProperty $regPath -Name InstallLocation -Value $WorkingDir -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 UninstallString -Value "powershell.exe -noprofile -executionpolicy bypass -file `"$WingetUpdatePath\WAU-Uninstall.ps1`"" -Force
New-ItemProperty $regPath -Name QuietUninstallString -Value "powershell.exe -noprofile -executionpolicy bypass -file `"$WingetUpdatePath\WAU-Uninstall.ps1`"" -Force
New-ItemProperty $regPath -Name WAU_UpdatePrerelease -Value 0 -PropertyType DWord -Force
#log