Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement PowerShell Redirection Fix #119

Closed
ferventcoder opened this issue Mar 27, 2016 · 1 comment
Closed

Implement PowerShell Redirection Fix #119

ferventcoder opened this issue Mar 27, 2016 · 1 comment

Comments

@ferventcoder
Copy link
Contributor

Related to #18

ferventcoder added a commit to ferventcoder/puppet-chocolatey that referenced this issue Mar 27, 2016
PowerShell v2/3 caches the output stream. Then it throws errors due to
the FileStream not being what is expected. Fixes "The OS handle's
position is not what FileStream expected. Do not use a handle
simultaneously in one FileStream and in Win32 code or another
FileStream."

The fix comes from
http://www.leeholmes.com/blog/2008/07/30/workaround-the-os-handles-position-is-not-what-filestream-expected/
plus information in the comments that actually makes it work.
@ferventcoder
Copy link
Contributor Author

@rismoney this

@ferventcoder ferventcoder added this to the 1.3.0 milestone Mar 27, 2016
@ferventcoder ferventcoder self-assigned this Mar 27, 2016
@ferventcoder ferventcoder modified the milestones: 1.2.2, 1.3.0 Apr 6, 2016
ferventcoder added a commit to ferventcoder/puppet-chocolatey that referenced this issue Jul 6, 2016
* master:
  (version) 1.2.5
  (maint) prep for release of 1.2.5
  (chocolatey-archiveGH-128) PowerShell 1.x provider fixes for "else"
  (chocolatey-archiveGH-133) Feature list update for  0.9.10
  (version) 1.2.4
  (chocolatey-archiveGH-125) Compatible Up to PowerShell Provider 3.x
  (chocolatey-archiveGH-125) Wrap PowerShell Redirect in Try/Catch
  (chocolatey-archiveGH-69) Fix - default provider example
  (doc) make that text a bit more prominent
  (version) 1.2.3 for real
  (version) 1.2.3
  (doc) add editions of Chocolatey
  (chocolatey-archiveGH-100) Do not call choco with --debug --verbose
  (version) 1.2.2
  Sign the installer script template
  (chocolatey-archiveGH-119) Implement PowerShell Redirection Fix
ferventcoder added a commit to ferventcoder/puppet-chocolatey that referenced this issue Jul 11, 2016
* master:
  (version) 1.2.6
  (MODULES-3536) modsync update
  (maint) Remove travis and metadata-json-lint gems
  (chocolatey-archiveGH-134) Only Enable AutoUninstaller in 0.9.9.x
  (version) 1.2.5
  (maint) prep for release of 1.2.5
  (chocolatey-archiveGH-128) PowerShell 1.x provider fixes for "else"
  (chocolatey-archiveGH-133) Feature list update for  0.9.10
  (version) 1.2.4
  (chocolatey-archiveGH-125) Compatible Up to PowerShell Provider 3.x
  (chocolatey-archiveGH-125) Wrap PowerShell Redirect in Try/Catch
  (chocolatey-archiveGH-69) Fix - default provider example
  (doc) make that text a bit more prominent
  (version) 1.2.3 for real
  (version) 1.2.3
  (doc) add editions of Chocolatey
  (chocolatey-archiveGH-100) Do not call choco with --debug --verbose
  (version) 1.2.2
  Sign the installer script template
  (chocolatey-archiveGH-119) Implement PowerShell Redirection Fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant