How can I check a developed applications software requirements ?

  • Thread starter Thread starter Alan_Barclay_Uk
  • Start date Start date
A

Alan_Barclay_Uk

Guest
Hi Guys

I've run into a small issue with a Windows Forms application I have developed in that it works 100% on my development machine but when I try to run it on other machines either some functionality is missing or doesn't work or the application just wont run at all?

As a solution I was wondering if it would be possible for the application to list all the external requirements it needs and what versions along with what versions are installed on the host machine.

i.e.

For a start, when the application starts it detects that it was developed for .Net v3.5 and references Excel v10.0 and the host machine has .Net v4.5 and Excel v14.0 installed. as the installed versions are greater than the developed versions the application will run, if a requirement wasn't meant then it would display a message detailing the issue.

I then have a further problem, where this application lists a collection of files that I'd like to open in their default application. Achieving this isn't a problem however this won't happen unless the default application is installed, say a PDF is selected then the application should open this in Acrobat or similar application. So I'd also like to detect whether one of these external applications are installed. My application will be focusing on Microsoft Access, Excel,Word, PDF's, Cad Files and a collection Custom data files.

I'm thinking of sticking a function in the Form_Load that'll return Success or Failed if the application requirements are met by the host machine. I've looked into reading the Registry but I'd need to know where every external reference stores it's information and that wouldn't by possible dynamically (I'd like this function to be portable to other applications!)

I'd also appreciate it any replies or samples be kept a short and simple as possible, as I seem to be getting responses to my questions that are in excess of 1000's of lines of code? I'm not looking for a definitive solution, Just a rough guide.

Thanks in advance

Continue reading...
 
Back
Top