[
https://issues.apache.org/jira/browse/NETBEANS-2523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17008169#comment-17008169
]
Lars Bruun-Hansen commented on NETBEANS-2523:
---------------------------------------------
It is worth noting why the bug hasn't had more of an impact:
* Windows will ignore such registry entry where there's a mismatch between the
stated type (e.g. DWORD) and the length of the actual value.. For the case of
the 'NoModify' it will - if unset - default to a value of true (1) and this is
what NBI intends anyway (NBI's uninstaller feature doesn't support modifying an
installation).
* NBI has no other use-case for _writing_ registry keys than setting the
Uninstaller information. Of these, only the 'NoModify' entry is of type DWORD.
All the other registry entries are of type string. (see screenshot)
However, I've seen certain Windows system analyzer tools trip over this value
from NBI. The tool flagged the registry value as "suspect". (can't right now
remember which tool it was)
> Netbeans 64-bit creates invalid nomodify value in windows registry for years
> ----------------------------------------------------------------------------
>
> Key: NETBEANS-2523
> URL: https://issues.apache.org/jira/browse/NETBEANS-2523
> Project: NetBeans
> Issue Type: Bug
> Reporter: Joseph Szabo
> Assignee: Lars Bruun-Hansen
> Priority: Major
> Attachments: 2020-01-04 22_13_24-Registry Editor.png
>
>
> See [https://netbeans.org/bugzilla/show_bug.cgi?id=251538]
> Netbeans 64 bit installer creates a 64 bit integer in what is supposed to be
> a 32 bit dword in the registry, which becomes an invalid value.
>
> Windows Registry Editor Version 5.00
> [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\nbi-nb-base-8.2.0.0.201609300101]
> "NoModify"=hex(4):01,00,00,00,00,00,00,00
>
> Netbeans prevents powershell from listing registry uninstall keys in windows:
> {noformat}
> get-itemproperty hklm:\software\microsoft\windows\currentversion\uninstall*
> ...
> get-itemproperty : Specified cast is not valid.
> At line:1 char:1
> + get-itemproperty hklm:\software\microsoft\windows\currentversion\unin ...
> + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> + CategoryInfo : NotSpecified: ( [Get-ItemProperty], InvalidCastException
> + FullyQualifiedErrorId :
> System.InvalidCastException,Microsoft.PowerShell.Commands.GetItemPropertyCommand
> {noformat}
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists