Set program install location

davidthegnome20032 used Ask the Experts™
I am writing a program that has some buttons to install other programs, such as flash.

I have the code to start the install, but it calls up the installer from a location on my hard drive that won't be the same on the computers I use my program on.

How do i tell my program to run the Flash installer from the same location my program is being ran from, such as off a flash drive?  And is there a way to package all the installers with my program?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
If the name of the flash setup program is FlashSetup.exe then the following will start the application that resides in your application's folder:
Process.Start(Path.Combine(My.Application.Info.DirectoryPath.ToString, "FlashSetup.exe"))

Open in new window

Mike McCrackenSenior Consultant
Most Valuable Expert 2011
Top Expert 2013

This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial