How to execute custom action before installing files when using VS's Setup Project?

我的未来我决定 提交于 2019-12-24 10:38:18

问题


I have a simple VS setup project. On the first screen user inputs database name and credentials to access it. Then user clicks 'Next' button and files are copied. I would like to add one check which should be executed after user typed database name and credentials, but before copying files. This check should hit the database and verify some info. And depending on the result of this check installation will be continued or interrupted.

How could i do it? Is it possible to do it using VS setup project?

Thanks


回答1:


I've figured out that it is impossible to execute custom action before installing files using VS's setup project. This is because VS's setup project copies files at first and after that executes custom actions. This is by design. That's why I decided to create a small winforms application with setup's interface and required behavior.



来源:https://stackoverflow.com/questions/3651583/how-to-execute-custom-action-before-installing-files-when-using-vss-setup-proje

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