fix shortcut path
This commit is contained in:
parent
367dcb7d5b
commit
9dfed11f17
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ PowerShell -Command "$archive = '%TEMP%\W10Privacy.zip';" ^
|
|||
"Expand-Archive -Path $archive -DestinationPath $env:TEMP;" ^
|
||||
"$file = $env:TEMP + '\\' + (Get-ChildItem $env:TEMP\W10Privacy*.exe).BaseName + '.exe';" ^
|
||||
"Start-Process $file /S -NoNewWindow -Wait -PassThru;" ^
|
||||
"$shortcut = '%ProgramData%\Microsoft\Windows\Start Menu\Programs\W10Privacy.lnk';" ^
|
||||
"$shortcut = '%APPDATA%\Microsoft\Windows\Start Menu\Programs\W10Privacy.lnk';" ^
|
||||
"$bytes = [System.IO.File]::ReadAllBytes($shortcut);" ^
|
||||
"$bytes[0x15] = $bytes[0x15] -bor 0x20;" ^
|
||||
"[System.IO.File]::WriteAllBytes($shortcut, $bytes)"
|
||||
|
|
Loading…
Reference in a new issue