Using a custom folder for “File Search” Launch Con

2019-09-02 12:26发布

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?

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

Thanks, Aditya

1条回答
Viruses.
2楼-- · 2019-09-02 13:04

Try setting the folder to:

[WindowsVolume]MyFolder

WindowsVolume property is resolved automatically to "C:\"

查看更多
登录 后发表回答