Get install date from managed code

前端 未结 5 538
一个人的身影
一个人的身影 2020-12-19 06:15

Is there a managed API to retrieve an application\'s install date using the Product GUID?

Thanks. Scott

5条回答
  •  借酒劲吻你
    2020-12-19 06:57

    I don't know about any API which will do that, but you could try to read the value from the Registry directly. Check the following key:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{product-id}
        InstallDate = 20081004
    

    The information stored under the Uninstall key is displayed e.g. in Control Panel -> Add or Remove Programs.

提交回复
热议问题