.net and java deployment - c#

we have a website developed in java and .net. it works fine. but now we want to develop a installer in .net for the deployment of website. which should deploy both modules means java and .net .
i know about custom installer in .net but how can i deploy java module through this installer???????

You should be able to use a standard Setup project in Visual Studio. Since we are talking about Java, all you have to do is place the right JAR in the right folder. You would do that the same way you would any other content file.

Do you mean you want to compile your Java files while making the installer?
In that case, you are probably better off using scripts to compile the Java files, copy them to some folder, and include that folder in your .NET installer.

Related

How to use GStreamer in ASP.NET application?

I want to develop an ASP.NET application using GStreamer, especially the GStreamer Editing Services (GES) module in the server end.
To do this I googled it and didn't find any detailed material about how to combine them together.
So I decided to try it myself.
Firstly I downloaded the two installer files from here and successfully installed them on my Windows 7 computer.
Next I created a C# project in VS2013 and tried to reference the DLL files in the bin folder of the installed SDK.
Then I found that they are native DLL files and I had to P/Invoke them in my project if I need to use any function in the GStreamer library.
Also I had to rewrite all the GStreamer classes I need in C# code because there is no way to export them from those DLL files, which requires me a lot of work.
This makes me wonder that if I'm on the right way.
Is there an easier way to let me use GStreamer in my ASP.NET application?

Deploy a WPF application with .NET 3/3.5 in a single executable

I have developed a WPF application and the customer is planning to deploy the application on DVDs.
My application is really simple and doesn't require any setup process, but I need to assure that if the client doesn't have .NET 3 installed that it will be installed locally (from the DVD) before starting the WPF application.
So, what's the easiest was to add the .NET 3/3.5 package locally on my DVD and assure it'll be installed before running my application? Remeber that my application will be a standalone application.
when you use the publish option...
The Project Properties has a place to specify the dependancies that will need to be downloaded
then you simply check the boxes
there are other more complex ways to go abaout this but for .net 3.5 you don't have to go far
I would suggest using Visual Studio Setup Project for creating a setup package which would check for prerequisites and provide fundamental features like file system, registries, scripting. It is very easy to get started with. Take a look here for a brief walkthrough.

deploy program including external libraries

I have this application that uses external libraries (downloaded them from the Internet and are just situated locally on my machine). But I need to deploy the program and give it to customer whereas these external libraries should also be included in the deployed application, otherwise it won't work...
Should I just copy the library files in the project directory and then publish the project or something else?
p.s. the application is written in C# with .NET 4 on VS2010, and the external libraries are open source, so no worries on the license.
I'll assume you are using some flavour of visual studio.
If so, you need to set library "copy local" property to true.
See this Microsoft article for more information
This way, when you build the project, it will make a copy of all of the required libraries in the bin folder of the project.

Can I create a single EXE in Microsoft Visual # 2010 Express when my applications is depending on Google Data API SDK?

I have an application depending on the Google Data API SDK (which are .dll's).
When I publish the application (Debug > Build Solution), my EXE-file only works on another computer when I copy the references in the same directory which I have included in my Visual Studio project.
The application is querying my Google Calendar for the current event, so I want to be able to run it from a memory stick.
Is there a solution so I can include those DLL's in one single EXE (make it kind of portable?).
Thank you so much!
You could potentially use ilmerge to do this. However, I don't know what the ramifications of this are in terms of licensing, particularly if you're going to distribute the app.
I would personally vote for keeping them separate, and just deploying them next to each other (whether in an installer or on a memory stick).
Most of the libraries Google provides are open-source and hosted on Google Code. This means you can download the source code and include it in the same project as the .exe project. That eliminates the need to have references to other dlls.
Here is the link to the .Net Google Code project. You'll need svn to check out the latest source code. The svn command is here:
svn checkout http://google-gdata.googlecode.com/svn/trunk/ google-gdata-read-only

create microsoft project file using C#

can I develop a c# application which uses Microsoft.Office.Interop.MSProject to create msProject files and then deploy that application on PCs which doesn't have microsoft project installed on them ?
if yes please explain how .
No, you can't automate the application unless it has been installed on the machine.
Edit: However, there is a open source project to manipulate project files and I don't think that needs to have MS Project installed so might be worth looking at that here: MPXJ

Categories