I have created one windows project and created a deployment project.
When I given the .msi setup file to client & if he do not have .net installed on his machine it say to install .net first.
What I want is that if client’s machine does not have .NET then setup file can starts the installing it silently otherwise it can install my application.
How can I do this?
First, don’t use the crappy deployment projects, get WIX and use WIX. It is VS integrated, and it works a lot better than deployment proejcts which dont even produce valid MSI files per validation.
Second, this is not what MSI files CAN do – no way. MSI files are control databases. Installing prereqquisites is done by the .exe file that predates the MSI file (th “bootstrapper”). Both WIIX and deployment projects can handle this. For Wix the reference is http://wix.sourceforge.net/manual-wix3/install_dotnet.htm. I wont touch deployment projects because they are outdated.