Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
In my project there are following things :-

1. SAP crystal reports
2. Sql db that is online so no worry about it
3. .net framework

I want to make .exe of my project or want to deploy project such that User does not have to install anything on this computer . I think there is a possible way to add dll files for crystal reports and something for dotnet so user not have to install it we can say it as a click once application
Posted

The user is going to have to install those components to get your application to work. If you are using ClickOnce then you can go to the project settings (My Project in the Solution Explorer) then the Publish Tab. Click the Prerequisites button. Here you can specify components that your program requires before it will run. You can opt to have a copy of the installs for these prerequisites download from your server, or from the vendor's web site.

For more information, try researching here.[^]
 
Share this answer
 
Comments
[no name] 9-May-14 11:05am    
Is there any way we can provide so that customer need not to install .net framework manually like we add some file for .net installation or dll etc
Kschuler 9-May-14 11:09am    
If you are using ClickOnce and you follow my solution, it will all be installed at once. I believe that it will still have to popup a special box with the terms of agreement for the .Net framework, etc which the user will have to click Agree on. But the components will install together with your app.
[no name] 9-May-14 11:21am    
you mean to say .net framework and crystal reports that i have install must be installed
Kschuler 9-May-14 11:24am    
If they are already installed on the machine that you are trying to install your app on, then they will NOT require you to install them again. That will be handled for you.
[no name] 9-May-14 11:25am    
But its not installed on client machine and he is quite long away from my place and i want to create setup that does not make customer to install anything than our software
I think its possible, just include the dll of the crystal reports that you are referencing in the project in your release or debug folder, and then modify the references to point that assemblies.

This way the dlls to be use but crystal reports will be that ones and you can include them in your installer.
 
Share this answer
 
Comments
[no name] 9-May-14 10:59am    
but without doing this thing dlls are still present in Applications folder when we deploy application so what is different in this approach
Gergilcan 9-May-14 11:12am    
the difference is that the references used in your project must be the ones on the deplay folder, instead of the installed ones, because even when they are there, the program are currently using the installed ones on your machine.
[no name] 9-May-14 11:20am    
still can't understand why they need to be deploy folder as they are included to application after depoloy and is there any method that customer need not to install crystal reports
Kschuler 9-May-14 11:26am    
You cannot install the .Net framework by just including some DLLs in your app. And I'm not sure if you CAN for Crystal Reports, but if you can it's not recommended. They have redistributable packages for just this purpose.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900