Solved

Include Adobe Acrobat with C# .NET WinForms 2.0 installer

Posted on 2008-06-16
5
847 Views
Last Modified: 2013-12-17
Hello,

I have a requirement to include Adobe Acrobat in the installer for my C# Windows Forms app, which as part of its function manages pdf files.

What is the best way to do this? It should be as seamless as possible.

Many thanks,

Adam.
0
Comment
Question by:adam_be
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 20

Assisted Solution

by:REA_ANDREW
REA_ANDREW earned 25 total points
ID: 21791939
Do you want to actually install Adobe Acrobat during the installtion of your app, OR, have Adobe Acrobat the exe distribute with your application?

Andrew
0
 

Author Comment

by:adam_be
ID: 21791947
I want to install Adobe Acrobat during the installation of my App. I doesn't have to hide the fact that it's being installed just stop the user from having to run two installers, one for the app and one for adobe acrobat.
0
 

Author Comment

by:adam_be
ID: 21791968
Actually it's Adobe Reader I got that wrong. The free one, anyway.
0
 

Accepted Solution

by:
adam_be earned 0 total points
ID: 21792987
Ok I managed to get something along the lines of what I wanted by gleening information from http://weblogs.asp.net/scottgu/archive/2007/06/15/tip-trick-creating-packaged-asp-net-setup-programs-with-vs-2005.aspx but obviously for a windows forms app.

Basically I added a dialog with a checkbox referenced to parameter INSTALL_ADOBE_READER and added a custom action as following:
[RunInstaller(true)]
	public class AdobeReaderAction : System.Configuration.Install.Installer
	{
		public override void Install(System.Collections.IDictionary stateSaver)
		{
			base.Install(stateSaver);
			string targetdir = Context.Parameters["targetdir"];
			if (Context.Parameters["install_adobe_reader"] == "1")
			{
				ProcessStartInfo psi = new ProcessStartInfo(targetdir + "AdbeRdr812_en_US.EXE");
				Process proc = Process.Start(psi);
			}
		}
	}

Open in new window

0
 
LVL 20

Expert Comment

by:REA_ANDREW
ID: 21792997
Good Work! :-)
0

Featured Post

AWS Certified Solutions Architect - Associate

This course has been developed to provide you with the requisite knowledge to not only pass the AWS CSA certification exam but also gain the hands-on experience required to become a qualified AWS Solutions architect working in a real-world environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question