Skip to content

Commit

Permalink
Remove leftovers during update
Browse files Browse the repository at this point in the history
v2.1
  • Loading branch information
Technetium1 committed Aug 27, 2020
1 parent bb042c6 commit b30b95c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ChocolateyUpdate.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import certifi
import sys

version = "2.0"
version = "2.1"


def printascii():
Expand Down Expand Up @@ -85,6 +85,8 @@ def admincheck():
printascii()
stopcontrolledfolderaccess = "powershell.exe -Command Set-MpPreference -EnableControlledFolderAccess Disabled > nul 2>&1"
system(stopcontrolledfolderaccess)
if Path("OldChocolateyUpdate.exe").exists():
remove("OldChocolateyUpdate.exe")
if getattr(sys, "frozen", True):
selfupdate()
if which("choco") is not None:
Expand Down

0 comments on commit b30b95c

Please sign in to comment.