在哪里指定 Pocket PC 应用程序快捷方式的文本?

发布于 2024-07-09 05:48:42 字数 285 浏览 11 评论 0原文

我不熟悉 Pocket PC 开发,但我必须对 VS2005、Pocket PC 2003 设备应用程序进行一些小的更改。 其中一项更改(我认为这是微不足道的)是更改应用程序快捷方式的文本,但我无法弄清楚该文本的设置位置。 该解决方案包括一个安装项目,所以我正在那里寻找它,但我找不到它。 我知道它一定在某个地方,因为构建安装项目会生成一个包含快捷方式信息的 AppSetup.inf 文件。

这不可能那么困难。 当我在冰箱里找不到就在我面前的那瓶芥末时,我确实患有我妻子所说的“男性视觉”。 我在哪里指定这个文本?

I'm unfamiliar with Pocket PC development, but I have to make a few minor changes to an VS2005, Pocket PC 2003 Device application. One of the changes (which I thought would be trivial) is changing the text of app's shortcut, but I can't figure out where this text is set. The solution includes a setup project, so I'm looking for it in there, but I can't find it. I know it's got to be in there somewhere because building the setup project generates an AppSetup.inf file that contains the shortcut information.

This can't be that difficult. Surly I'm suffering from what my wife refers to as "male vision" when I can't find the bottle of mustard in the refrigerator that's right in front of my face. Where do I specify this text?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

心房敞 2024-07-16 05:48:42

这完全取决于快捷方式的生成方式。 通常使用 3 种机制。

  1. 通过 INF 的 CEShortcuts 部分。 为此,它是第一个逗号之前的文本
  2. 通过 CopyFiles 复制 LNK 文件INF 的 部分。 通过这种机制,您可以在桌面上创建一个物理 LNK 文件,该文件会卷入 CAB 中,并像任何其他文件一样进行复制。 设备上的名称仍然是逗号之前的第一个字符串。
  3. 通过 SHCreateShortcut 中的编程调用="http://msdn.microsoft.com/en-us/library/aa924308.aspx" rel="nofollow noreferrer">自定义 CE 安装 DLL。

您必须弄清楚您的部署场景中正在使用哪个,才能确切地知道需要更改哪些内容。

It depends on exactly how the shortcut is generated. There are generally 3 mechanisms that are used.

  1. Via the CEShortcuts section of the INF. For this, it's the text before the first comma
  2. Via copying an LNK file via the CopyFiles section of the INF. With this mechanism, you create a physical LNK file on the desktop that gets rolled into the CAB and it's copied like any other file. The name on the device is again the first string before the comma.
  3. Via a programmatic call (usually to SHCreateShortcut) in a custom CE Setup DLL.

You'll have to figure out which is being used in your deployment scenario to know exactly what needs to be changed.

老街孤人 2024-07-16 05:48:42

进一步思考一下,您是否试图简单地在安装程序项目的 Studio UI 中找到更改快捷方式的位置? 如果是这样,这篇 MSDN 文章可能会有所帮助。 非常不直观的是,解决方案资源管理器顶部有一些小图标,可以更改安装程序的视图,使您可以看到文件、注册表项等内容。可能您根本没有在看在右侧视图中,您需要选择不同的图标。 没有菜单项可以执行这些图标的功能,并且在您第一次开始使用安装程序项目时很难注意到它们。

Thinking more about this, are you trying to simply find where in the Studio UI of the installer project to change the shortcut? If so, this MSDN article may help. What is very non-intuitive is that there are little icons at the top of the Solution Explorer that change the view of the installer, allowing you to see things like files, registry entries, etc. It may be that you simply aren't looking at the right view and you need to select a different icon. There are no menu items that do what these icons do, and they are hard to notice the first time you start using an installer project.

愚人国度 2024-07-16 05:48:42

嗯,正如我所怀疑的,它就在我面前。 我们将此项目称为 PDAProject。 在解决方案资源管理器中,PDAProjectSetup 项目下有一个标记为PDAProject(活动)的主要输出的项目。 如果我双击此项目,代码编辑器窗口中会出现两个窗格。 最左边的显示了一个标记为目标计算机上的文件系统的文件夹树。 下面是三个文件夹,分别标记为应用程序文件夹程序文件文件夹程序文件夹。 当我单击“程序文件夹”时,应用程序快捷方式将出现在右侧窗格中,我可以修改其文本。

我不知道为什么我从来没有被迫双击 PDAProject (Active) 的主要输出 项目项,即使这是打开任何类或表单进行编辑的方式。 我一直右键单击并打开属性。 也许是时候放弃编程而开始编篮子了。

Well, as I suspected, it was right in front of my face. We'll call this project PDAProject. In the solution explorer, under the PDAProjectSetup project is an item labeled Primary output from PDAProject (Active). If I double-click on this item two panes appear in the code editor window. The one on the far left shows a folder tree labeled File System on Target Machine. Under this are three folders labeled Application Folder, Program Files Folder, and Programs Folder. When I click on the Programs Folder, the application shortcut appears in the pane on the right and I can modify its text.

I don't know why I was never compelled to double click on that Primary output from PDAProject (Active) project item even though that's how you open any class or form for editing. I kept right-clicking and opening the Properties. Maybe it's time to give up programming and take up basket weaving.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文