Using a custom folder for “File Search” Launch Condition in VS Installer (VS 2010)

百般思念 提交于 2019-12-11 17:13:36

问题


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:


Try setting the folder to:

[WindowsVolume]MyFolder

WindowsVolume property is resolved automatically to "C:\"



来源:https://stackoverflow.com/questions/6077626/using-a-custom-folder-for-file-search-launch-condition-in-vs-installer-vs-201

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!