RegDBGetKeyValueEx returns -1

前端 未结 1 1450
眼角桃花
眼角桃花 2020-12-22 11:17

I am using below installscript code to identify whether SharePoint is installed or not. but its not working. The function returns -1. Not sure what is the issue. can someon

相关标签:
1条回答
  • 2020-12-22 11:34

    Installscipt: Where is your value located? Have you accounted for the 64- versus 32 bit sections of the registry?

    • HKEY_LOCAL_MACHINE\SOFTWARE

    • HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node

    Perhaps investigate the 64-bit option here (REGDB_OPTION_WOW64_64KEY) if you need the 64-bit section of the registry.


    AppSearch: for a simple registry retrieval like this, you could use AppSearch instead (System Search View). I don't have the time to make a sample for that right now. You can also see the System Search View / Wizard.

    0 讨论(0)
提交回复
热议问题