Jump to content
ITjack

How to check for Various programs?

Recommended Posts

ITjack

Good afternoon guys,

I am writing an installer for work. The installer will install CMP (a program that Casinos use) and set our company specific settings. The issue I am running into is that the CMP program has various pre reqs that will need to be installed before CMP will install itself. Now those pre reqs will vary depending on what WS I am running the installer on. Some will have none of the required programs, some will have a few, and others will have them all. I need to make it so that the installer will know what programs are missing based on the pop up window. I have been looking through the help file and I have tried using IF THEN to no success. I was wondering if anyone has had the same issue before and how did they get past it? 

I don't know if this will help but I have attached an image of some of the pre reqs that are required for CMP. What should basically happen is that the installer will go install the programs on that list from top to bottom, I was trying to use IF THEN and WinWait to see which program would pop up first and I was adding the install procedure for that program but that wasn't working.

Thank you.

CMPInstallREQ.PNG

Share this post


Link to post
Share on other sites
JLogan3o13
Posted (edited)

Out of curiosity, is the CMP installer a single file (.exe or .msi) that automatically installs these pre-reqs if they are missing? Or do you have to install them manually/from separate files?

Edit: Moved to correct forum

Edited by JLogan3o13

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
ITjack

It is a single .exe

Thanks for replying!

Share this post


Link to post
Share on other sites
Dana

Sounds like you need to use FileExists() to look for the prerequisite file's .exe before you run the installer.

Share this post


Link to post
Share on other sites
jdelaney

You can over engineer a solution using the _guictrllistview* functions.   easiest solution is to use the installers silent parameters.  you can generally pass parameters in for the customization steps too


IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post


Link to post
Share on other sites
JLogan3o13

+1 @jdelaney's post - that is what I was getting at with my earlier question. Before you reinvent the wheel, make sure you understand everything you can and cannot do straight from the installer.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×