Having Dependency on a thirdparty application in a Windows Application - c#

I have a windows application which lets say Depends on X third-party application which i have its installer file.
i wanna do this:
Deploy my application in a way that it would check if the application is installed other wise use the included installation file to install it,
How can i gain this using Visual Studio Installer Project?

You can select prerequisites for the default installer, too:
http://msdn.microsoft.com/en-us/library/ms165429(v=vs.80).aspx
That should do the trick.

Related

How to update WPF application that was deployed using Windows installer technology

I have followed this blog for deploying my WPF application. I used windows installer technology classic setup project template in Visual Studio 2015.
I am using windows installer instead of ClickOnce deployment because I need to choose my own installation path and custom wizard UI.
But there is not information regarding how to update my application when I use windows installer to deploy my application. How can I update my app after once it was installed in clients machine? Are there different possible ways to achieve this?
It would be helpful if anyone can provide the resources or suggest any practical approaches that I can use to update my WPF app.
In Visual Studio setups you use the RemovePreviousVersions project property. This should help:
https://www.simple-talk.com/dotnet/visual-studio/updates-to-setup-projects/
Basically just increment the setup project version, accept the changes, keep UpgradeCode the same, set RemovePreviousVersions to true.
The project's properties window is shown when you select the setup project in Solution Explorer and use F4, or View=>Properties Window, NOT property pages.
You'll also need to increment the file versions of files you wish to be updated.
If you want to do it silently, use the msiexec command line options that include /q, such as msiexec /I [path to your new msi] /q
However if your install requires elevation it will fail because silent really means silent, so the usual request for elevation will not be shown.

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.

create MSI for windows service in visual studio 2012

I have created a windows service in visual studio 2012. I can install the service using installutil, but I need to distribute the service to a client.
How can I build a MSI? There are wwalk throughs in vs2008, but they don't seem to apply to 2012, as 2012 has install shield limited edition and I cannot find Custom Actions anywhere..
Do you have to distribute an MSI?
If all you want is to install the service then the application itself should do it. Use a ServiceInstaller. Add a main argumnet so when you run app.exe /install it isntalls the service (and perhaps /uninstall removes it).
The following topic explains the details: How to: Add Installers to Your Service Application. The ServiceInstaller has code example.
You should use an MSI if you have more complex requirements, if you want your app to appear in the Control Panel/Add-Remove programs, if you want to add 'Repair' installs, if your installation needs to provide options (CLI or UX).

Deploying a C#/.NET application without an installer nor ClickOnce

I am looking for a solution to:
I don't have authorisation for installing an application on a client computer. That's why I need to deploy the application without an installer. Just like a portable application or a standalone application - something like that.
The client computer also has a limitation in its Internet connection, so ClickOnce will not work either.
I'm using Visual Studio Express 2010. I saw WiX could solve my limitation in setting-up my application. But still, I can't install the application.
In your solution, set CopyLocal to true for all projects. This will ensure that the ..\Bin folder contains all the necessary assemblies for your program. Then just zip up the ..\Bin folder, get it onto the client machine, and then unzip it.

Running Visual c# windows application over LAN

This is my first windows application. I have published my project and here are few questions.
Now I have two files - a Setup.exe file and a ClickOnce Application Deployment Manifest file. However both install my application in the machine. What is the right file I should be relying on while installing at the client's place? What is the difference between these two?
Should my application be installed at each client machine? Or would it work if I install my application in the server and try to access the shortcut from a client machine (through LAN)? Would it work? If it is running over LAN, should the client machine have .NET framework installed?
Any input is highly appreciated.
See your question contains some answers.
Ans 1. Setup.exe and ClickOnce Application Deployment Manifest file both will install your application but when u run setup.exe it will install all requirements that your app require.
Lets say your app uses .Net Framework 4.0 and Crystal Reports. Then in the setup project(i hope u r using Setup and deployment project of Visual Studio) rightclick on project and click on properties
Then click on prerequisites... It will show u list of prerequisites available. Check on .Net Framework 4.0 and Crystal Reports and compile your project.
Now when u run setup.exe it will first search for .Net 4.0 Framework and crystal report. If not found it will install them and then proceed for your software installation
OR
if already installed then will directly jump for your software installation.
This will not happen if you directly install your software from ClickOnce Application Deployment Manifest file.
Ans 2. U have to install your software on each client for if there is not framework. it will not run your app.
If you are deploying using ClickOnce you will be installing it on each client machine (this is fine) and the relevant .NET framework(s) installed on each client - these can be installed as a pre-requisite of the application install by configuring the ClickOnce settings.
For ClickOnce the main setup file is setup.exe but it relies on the other files in the deploy package, so asking which specific file is most important isn't really relevant.
If there is a reason you don't want to install the application on each client then you may want to look into developing an IIS (web) application or using a product like Citrix to enable access to the application from the server.
i have a same type of windows application.
currently this application is in use.
if you don't want to install with client PC now you do not have to create the windows application you have to create web application because in windows application you have to install your setup.exe in each client PC.You can not access windows application without install in client PC.

Categories