Read Registry Keys on different Windows Versions with NSIS -


i'm reading registry key in nsis script detect wether microsoft visual 2010 redistributable installed or not.

... readregstr $r0 hklm "software\microsoft\windows\currentversion\uninstall{da5e371c-6333-3d8a-93a4-6fd5b20bcc6e}" "displayname" ${if} $r0 != "" messagebox mb_ok "c++ 2010 redistributable detected" goto yescpp2010 ${else} messagebox mb_ok "c++ 2010 not found" goto nocpp2010 ${endif} ...

i tried on windows 7 , works. won't work on other windows versions if programms have other keys. have same keys? if keys different, there way them?

the guid can change service pack's , security updates this blog claims can check installed dword under hkey_local_machine\software\microsoft\visualstudio\10.0\vc\vcredist\x64.

for previous msvc versions suggest querying sxs don't think 2010 uses technology...


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -