avoid pop-up Program Compatibility Assistant (PCA) dialog

<!-- [if gte mso 9]><![endif]-->

  On Window 7 operating system, the Program Compatibility Assistant (PCA) dialog may pop up at the end of installation. This warning dialog will be displayed if the installation unsuccessfully to finish, is canceled by the user, or does not create an entry in Add/Remove Programs Control Panel.

Windows implements PCA program to detect the installation whether successful finish.

There are two ways to avoid this dialog.

1.       Add following section to the manifest of setup.exe. If you use Installshield to make packages, you can add codes below in files named  setupexe.*.manifest under the folder  "C:/Program Files/InstallShield/2010/Support".

<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"> 

            <application> 

                        <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/> 

                        <supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/> 

            </application>

</compatibility>

Write a key to [HKEY_CURRENT_USER/Software/Microsoft/Windows NT/CurrentVersion/AppCompatFlags/Compatibility Assistant/Persisted]. This way can work on most setup programs. But forInstallshield-based project, it can’t avoid PCA dialog popping up when uninstalled form Add/Remove Programs Control Panel. So the best way is to add a manifest.

 Note that I find Installshield(2008) packages don't show this warning dialog,but other programs like Winrar will also show this dialog.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值