-
Notifications
You must be signed in to change notification settings - Fork 384
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
(core.extension) Get-UninstallKey doesn't handle 64-bit registry from 32-bit processes #222
Comments
I don't see redirection listed as affecting these keys:
EDIT Nevermind, I missed the line above that table saying
|
@ferventcoder - I posted powershell code back to the original commit - handles some other edge cases as well. |
@dtgm are you familiar with registry redirection? Basically the 64bit view of the registry is missing unless explicitly opted into by a 32 bit process. |
@ferventcoder I just wanted to point out that you can actually use the .NET Registry APIs to explicitly open either the 64-bit or the 32-bit Registry views, no matter what the bit-width of the system or the current process is. You can do so using the While I don’t know if the PowerShell Registry cmdlets support this functionality, PowerShell can natively call CLR objects written in C# or any other language (as you probably already know); it just involves more verbose code than using native cmdlets. Furthermore, even if direct CLR object access is required, the nature of the extension being discussed means that the implementation details are irrelevant to the users of the extension; they call it just like any other cmdlet. I can provide a PR if desired. |
@wjk On the PowerShell side, this needs to work all the way back to PowerShell v2 / .NET Framework 2.0 (not 3.5, 2.0). |
@ferventcoder is this still an issue? The uninstall extension as been deprecated in favour of the core extension. Is the reported issue still relevant to that extension? |
I don't know - I was analyzing the PowerShell code that did this when I made the original comment. It would depend on what the core extension code looks like. Is the core extension implemented as PowerShell or C# ? |
Powershell. The source for the extension can be seen here: Thanks! |
I am going to close this at the end of the year if there is no activity due to its 6mo age. |
Related to #214
On f7fe281
@DarwinJS mentioned that the code doesn't work with 32-bit processes attempting to access 64-bit keys. This is because it doesn't use the flag to override Registry Redirection. This could have issues with processes such as Chef that run in 32-bit mode calling this.
The text was updated successfully, but these errors were encountered: