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

Deal with missing HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify #497

Merged
merged 1 commit into from
Dec 9, 2015

Conversation

iouri-s
Copy link
Contributor

@iouri-s iouri-s commented Nov 18, 2015

In case you are wondering how iconStreamData can possibly be null :

From https://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k(Microsoft.Win32.Registry.GetValue);k(TargetFrameworkMoniker-.NETFramework,Version%3Dv4.5.2);k(DevLang-csharp)&rd=true :

Return Value
Type: System.Object
null if the subkey specified by keyName does not exist; otherwise, the value associated with valueName, or defaultValue if valueName is not found.

This happens when installing for a user who has never logged in, using powershell's Invoke-Command -Credential cmdlet.

In case you are wondering how iconStreamData can possibly be null :

From https://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&l=EN-US&k=k(Microsoft.Win32.Registry.GetValue);k(TargetFrameworkMoniker-.NETFramework,Version%3Dv4.5.2);k(DevLang-csharp)&rd=true :

Return Value
Type: System.Object
null if the subkey specified by keyName does not exist; otherwise, the value associated with valueName, or defaultValue if valueName is not found.

This happens when installing for a user who has never logged in, using powershell's Invoke-Command  -Credential cmdlet.
anaisbetts added a commit that referenced this pull request Dec 9, 2015
Deal with missing HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify
@anaisbetts anaisbetts merged commit 2d3a0f7 into Squirrel:master Dec 9, 2015
@anaisbetts
Copy link
Contributor

Into it - thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants