我試圖確定註冊表項是否存在。我正在使用某人已經創建的宏,但是它沒有正確識別註冊表項存在檢查註冊表項是否存在總是失敗
它說某個鍵在實際上不存在時不存在。我是否錯誤地使用了這個macro?
我的代碼,路徑到註冊表項是正確的:
!insertmacro IfKeyExists "HKLM" "Software\Microsoft\Windows\CurrentVersion\Uninstall\${COMPANYNAME}\${APPNAME}" "Version"
Pop $R0
MessageBox MB_OK "Exists: $R0" # always is zero when shd be 1