简体   繁体   English

如何检查 installshield 2021 中源目录中的文件是否存在?

[英]How to check existence of a file from source directory in installshield 2021?

I need to add a file existence condition in installshield 2021 and the file is in the source directory of setup.我需要在installshield 2021中添加一个文件存在条件,该文件在setup的源目录下。 I tried accessing it using path variable but I guess while validating exit condition, path variables are not initialized or set.我尝试使用路径变量访问它,但我猜想在验证退出条件时,路径变量未初始化或设置。 Is there any way to add the condition in UI?有没有办法在用户界面中添加条件? (Without MSI or installscript) (没有 MSI 或安装脚本)

For example, my setup directory will look like this and each folder is a package in issuite.例如,我的设置目录将如下所示,每个文件夹在 issuite 中都是一个 package。 I need to check whether a file in second folder is exists inside the exit condition.我需要检查第二个文件夹中的文件是否存在于退出条件内。

在此处输入图像描述

(Since I am new to IS, I cant find other ways to do this one). (因为我是 IS 的新手,所以我找不到其他方法来做这个)。 Thanks in advance.提前致谢。

Actually I achieved this with [GetCurrentDir] in the exit condition.实际上,我在退出条件下使用 [GetCurrentDir] 实现了这一点。 Hope this helps someone希望这对某人有帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM