如何动态链接到尚不存在的目录?

发布于 2024-12-07 05:00:57 字数 334 浏览 1 评论 0原文

我有一个 InstallScript 项目,我正在考虑将其手动重新创建为基本 MSI 项目。对于InstallScript 项目,我们有几个利用动态文件链接的组件,并链接到路径变量中指定的位置。

但是,当我尝试在 Basic MSI 项目中执行此操作时,我收到一条错误:“您输入的文件夹名称不是系统上的有效文件夹名称。”这是完全正确的 - 指定的目录不存在,但它们将在编译安装程序之前的构建时创建。 InstallScript 项目似乎对动态链接到当前不存在的目录没有任何疑虑。 Basic MSI 拒绝这样做。

有什么方法可以链接到尚不存在的目录吗?我是否需要在这些位置创建虚拟文件夹来安抚 InstallShield?

I have an InstallScript project that I'm looking at manually recreating as a Basic MSI project. For the InstallScript project, we have several components that utilize dynamic file linking, and link to a location specified in a path variable.

However, when I attempt to do this in the Basic MSI project, I receive an error: "The folder name you have entered is not a valid folder name on your system." This is completely correct - the specified directories don't exist, but they will be created at build time, before the installer is compiled. The InstallScript project seemed to have no qualms about dynamically linking to a directory that does not currently exist. The Basic MSI refuses to do it.

Is there any way to link to directories that don't exist (yet)? Do I need to create dummy folders in these locations to appease InstallShield?

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

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

发布评论

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

评论(1

千紇 2024-12-14 05:00:57

我根本不支持动态链接,但如果必须的话,只需创建一个空目录,构建自动化将在其中创建它,然后设置动态链接。 (按合同设计。)

当然,这就是动态文件链接的问题......与实际描述哪些文件安装在哪里相比,没有太多合同。 YMMV。

Not the I endorse dynamic linking at all, but if you must, just create the empty directory where the build automation will create it and then setup your dynamic links. ( Design by contract. )

Course that's the problem with dynamic file linking...... there isn't much of a contract as compared to actually describing which files get installed where. YMMV.

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