0

I've developed an application for Windows Mobile using Windows Mobile 6 Pro with CF 3.5 and I have some deployment questions.

I'm targeting only Pocket PC and I don't want to let users install it on their smartphone (because it simply won't work).

How can I check for the platform on which the user is installing the application and show him some error message?

Just to let you know, I have an .msi in order to install the app into the device from the desktop (setup project with cab inside), and it's fine.

I just need this extra verification.

4

1 回答 1

3

有关如何检测平台的信息,请参阅此链接。Cab 文件支持可选的setup.dll,可用于在 Install init、Install exit、Uninstall init 和 Unistall exit 中注册自定义操作。如果平台不匹配,您可以使用 install init 入口点并停止安装或显示对话框。这当然必须是原生开发。

于 2009-03-04T19:21:51.567 回答