Get install date from managed code

前端 未结 5 542
一个人的身影
一个人的身影 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 07:00

    Another "proper" way is to get the creation date of some file you know for "sure" is added by installer. In my case it's "unins000.exe" which is (re)created by Inno setup v5. No PInvoke involved but simply use FileInfo's Exists and CreationTime properties!

提交回复
热议问题