pyranja / profile

My .dotfiles and utilities
The Unlicense
0 stars 0 forks source link

Detect "from another computer" taint on Install-Script during installation #42

Closed pyranja closed 7 years ago

pyranja commented 7 years ago

Prevent installation if the installer package is tainted after the download.

This prevents follow-up failures, where each installed script is tainted. Tainted scripts require exec policy Unrestricted and require confirmation for each invocation.

Maybe this problem can is solved, when a proper installation path is available (chocolatey or PSGet).

pyranja commented 7 years ago

See https://msdn.microsoft.com/en-us/powershell/reference/5.1/microsoft.powershell.utility/unblock-file?f=255&MSPPError=-2147217396

pyranja commented 7 years ago

Resolved by installing via chocolatey and PSGet