OpenNoteBlockStudio icon indicating copy to clipboard operation
OpenNoteBlockStudio copied to clipboard

Program version on windows is undefined.

Open maitreyorene opened this issue 3 years ago • 4 comments

Describe the bug The program version is not defined the windows registry. Therefore the winget utility fails to find the software version and still detects an available update. To Reproduce Steps to reproduce the behavior:

  1. Go to 'shell'
  2. Execute command 'winget list --id OpenNoteBlockStudio.MinecraftNoteBlockStudio.'
  3. See version unknown

Expected behavior Please define a version for your executable. And thank you for reading this issue.

Screenshots accually

What it should give fixed

maitreyorene avatar Jun 19 '23 12:06 maitreyorene

EDIT: by default missing regedit DisplayVersion key in "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Minecraft Note Block Studio" Fixed regedit fixed

maitreyorene avatar Jun 19 '23 13:06 maitreyorene

powershell script to fix it

$value = (Get-Command "$env:USERPROFILE\Minecraft Note Block Studio\Minecraft Note Block Studio.exe").FileVersionInfo.FileVersion
$update = ((Get-ItemProperty -Path "Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Minecraft Note Block Studio\").DisplayVersion -ne $value)
if ($update){
    Set-ItemProperty -Path "Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Minecraft Note Block Studio\" -Name DisplayVersion -Value $value
}

maitreyorene avatar Jun 19 '23 14:06 maitreyorene

hey i ran the installer exe file through virus total and 3 anti-virus went of about a trojan virus

Screenshot 2023-06-21 154519

and i surched it up and google said this: A Trojan Horse Virus is a type of malware that downloads onto a computer disguised as a legitimate program. The delivery method typically sees an attacker use social engineering to hide malicious code within legitimate software to try and gain users' system access with their software.

sandyysandy avatar Jun 21 '23 06:06 sandyysandy

Hi @sandyysandy, that's a false positive. NBS is used daily by hundreds of users and all the code that it's running is available for inspection here on GitHub, so rest assured it won't harm your computer. Also, please open a different issue if you have any further inquiries, as each issue should only handle a single question. :)

Bentroen avatar Jun 21 '23 15:06 Bentroen