ITjack Posted June 15, 2018 Share Posted June 15, 2018 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. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted June 16, 2018 Moderators Share Posted June 16, 2018 (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 June 16, 2018 by JLogan3o13 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
ITjack Posted June 22, 2018 Author Share Posted June 22, 2018 It is a single .exe Thanks for replying! Link to comment Share on other sites More sharing options...
Dana Posted June 22, 2018 Share Posted June 22, 2018 Sounds like you need to use FileExists() to look for the prerequisite file's .exe before you run the installer. Link to comment Share on other sites More sharing options...
jdelaney Posted June 22, 2018 Share Posted June 22, 2018 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. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted June 22, 2018 Moderators Share Posted June 22, 2018 +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. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now