如何在 Windows Installer 中创建文件夹的快捷方式?

发布于 2024-09-15 11:52:56 字数 326 浏览 1 评论 0原文

我需要安装一个快捷方式来打开我正在创建的文件夹之一。我要做什么来创建目标是文件夹而不是文件的快捷方式?我尝试将该文件夹设为快捷方式的目标,但是当我尝试安装该应用程序时,Windows Installer 告诉我无法创建快捷方式,即使目标文件夹(目标文件夹的父级)和目标文件夹本身都存在安装结束。

编辑:我应该提到我正在使用 Wise Windows Installer 编辑器。

仍在等待我可以使用的答案。即使它是放在快捷方式表本身中的内容。 (Cichy 的回答对我没有帮助,因为它显然是针对特定的 IDE(他没有提到),并且从给出的说明来看,它显然不是 Wise。)

I need to install a shortcut that opens one of the folders that I'm creating. What mist I do to create a shortcut whose target is a folder instead of a file? I tried making the folder the shortcut's target, but when I try to install the application, Windows Installer tells me that the shortcut can't be created even though both the destination folder (the target folder's parent) and the target folder itself exist by the end of the install.

Edit: I should have mentioned that I'm using Wise Windows Installer Editor.

Still waiting for an answer that I can use. Even if it's what to put in the Shortcuts table itself. (Cichy's answer doesn't help me, because it's obviously geared to a specific IDE (which he doesn't mention), and from the instructions given, it's obviously not Wise.)

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

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

发布评论

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

评论(2

2024-09-22 11:52:56

在“文件系统(安装项目)”窗口中,在要创建快捷方式的目录上单击鼠标右键(假设“目标计算机上的文件系统”内的“应用程序文件夹”)。
选择“创建应用程序文件夹的快捷方式”。
将在此目录中创建快捷方式,然后您只需将其拖放到“用户程序菜单”或您想要的任何位置即可。

in the "File System (setup project)" window, click right mouse button on directory you want to create shortcut (lets say "Application Folder" inside "File System on target machine".
Choose "Create Shortcut to Application folder".
Shortcut will be created in this directory, and than you simply drag&drop it on "User's Programs Menu" or where ever you want it to have.

○闲身 2024-09-22 11:52:56

终于在我能够使用的微软论坛之一得到了回复。其过程如下:

在“快捷方式”表中,给出“目标”字段的目录路径。您可以
需要 Orca 或类似 IS 直接编辑器来做到这一点。
示例
目标-> [安装目录]文档\快捷目录

在我的例子中,我只是将文件夹的键名称(来自目录表)放在方括号中。
示例
目标-> [我的目标目录]

Finally got a response in one of the Microsoft forums that I was able to use. It goes as follows:

In the ‘Shortcut’ table, give the directory path to ‘target’ filed. You may
need Orca or something like IS direct editor to do that.
Example
Target - > [INSTALLDIR]Documents\ShortCutDir

In my case, I simply put the key name of my folder (from the Directory table) in square brackets.
Example
Target - > [MyTargetDir]

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