How do I prevent programmatically the “Program Compatibility Assistant” in Vista (and Windows 7) from appearing?

后端 未结 1 771
清歌不尽
清歌不尽 2020-12-19 08:31

I develop a C++ program which might use adobe flash, although it is not essential.
I use CoCreateInstance to create the flash object, and if it fails, I know flash is no

相关标签:
1条回答
  • 2020-12-19 08:53

    Snippet from here (Talks about setup but relevant to your case)

    How can I opt out of the Program Compatibility Assistant for my setup?

    In order to prevent the Program Compatibility Assistant from appearing, you must include an embedded manifest that specifies a requested execution level for your setup executable. If you wrap the setup executable in a self-extracting package, you must also include an embedded manifest in the self-extracting package too. Once you do this, Windows Vista will treat your setup as Windows Vista-aware, and it will no longer show the PCA dialog when setup exits after a failure or cancellation.

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