本文介绍了使用自定义文件夹进行“文件搜索”; VS Installer中的启动条件(VS 2010)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为VS2010中的解决方案创建安装文件。这是一个C#应用程序。到目前为止,它可以满足我的需求。但是,我做了一些Interop的工作,除非系统上存在一些本机DLL,否则不应运行此安装文件。我尝试使用文件搜索启动条件类型尝试在启动安装程序之前查找此文件,但它似乎仅适用于文件搜索启动的文件夹属性中组合框中列出的特殊文件夹。健康)状况。我可以通过VS安装项目做什么我需要做的事情?

I am trying to create a setup file for my solution in VS2010. It's a C# application. So far it does whatever I need. However, I do some Interop stuff and this setup file shouldn't be run unless some Native DLLs exist on the system. I tried using the "File Search" Launch Condition type to try and find this file before I launch the installer, but it only seems to work for the special folders it lists in the combo box in the "Folder" Property for the File Search Launch Condition. Is there any way I can do what I need with the VS Setup Project?

在继续进行安装之前,我需要检查C:\MYFOLDER\中是否存在文件。

I need to check if a file in C:\MYFOLDER\ exists before I let the setup continue. Is this possible through VS Installer?

谢谢,
Aditya

Thanks,Aditya

推荐答案

尝试将文件夹设置为:

[WindowsVolume]MyFolder

WindowsVolume属性自动解析为 C:\

WindowsVolume property is resolved automatically to "C:\"

这篇关于使用自定义文件夹进行“文件搜索”; VS Installer中的启动条件(VS 2010)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 05:55