Creating an install / install file in Visual Studio that requires a specific dll

I developed the program in the edition of Visual Studio 2010 Express. I want to create an installation / installation file for a program. The Express version allows me to create a "One Click Installer". The program requires a dll file, which must be in the same directory as the exe program file for operation. However, I cannot import the dll file as a link because it generates an error. Therefore, the One Click installation file does not install the program correctly.

Can I force the One click installer to copy this file to the installation directory during the installation process? If not, what other parameters do I need to create an installation / installation file for my project?

thanks

+1
source share
1 answer

It is called ClickOnce. Project + Add an existing item and select this DLL. This adds it to your project. Select it and look in the "Properties" window. The Build action must be set to Content, which causes ClickOnce to publish it. Copy to the output directory should be set to "Copy if new", which ensures that the DLL will be copied to your output directory. What did you do manually earlier.

+2
source

Source: https://habr.com/ru/post/946489/


All Articles