views:

493

answers:

4

I'm using Visual Studio 2005. I have a program written in C#. When I create the installer and then add the primary output, it's not picking up any dependencies. Not even .Net. Anybody have any ideas?

+1  A: 

Try to do a build of your installer, it may add the dependencies at that time.

Otávio Décio
Didn't fix it. but it did give me a somewhat useful error message.
Kevin
A: 

I fixed my own problem, but figured I would post the "fix" in case any else should run into the problem. I went back under my main project>references and removed the references to other projects. Then I right clicked on each of the other projects and removed them. I added them all back and rebuilt the project. Then I right clicked on the "Detected dependencies" folder in the installer and hit refresh dependencies and it detected them all

Kevin
A: 

If you want to install the .NET Framework with your setup, you should add it under "Pre-requisites" on the property pages of your setup and deployment project.

Then the created bootstrapper (i.e. the setup.exe file) will check whether the specified version of the .NET Framework is present on the target system and install it as needed.

Please note that this check is only done by the setup.exe file and not when the user double-clicks the msi file. The reason for that is that Windows installer does not allow one msi file (your installer) to start another msi installation (e.g. the .NET Framework installation).

0xA3
A: 

Your dependency dll must be in binary search path of windows. That is PATH=/path/to/dll must be in environment.