Mr-Tbone / AoV

10 stars 1 forks source link

DisplayVersion not read correctly #2

Closed thewillwilson closed 2 years ago

thewillwilson commented 2 years ago

Hi!

Just been digging into the script before deploying it, but just noticed the script doesn't actually read the DisplayVersion from the registry correctly even when it's there, therefore showing 0.0.0.0.

It looks like it's caused by the install script looking for $AppKey = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$ProfileName" with $profilename being $ProfileName = "$company AoV Device Tunnel"

Whereas the reg is actually being written with the GUID suffix by $AddRemKey = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$guid" therefore isn't actually finding the key

Mr-Tbone commented 2 years ago

Thanks for reporting! Now fixed in version 1.3