How To Install Multiple Acrobat Updates Using IF, THEN, ELSE

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
crestructor_274
Posts: 1
Joined: 24 Aug 2012 02:32

How To Install Multiple Acrobat Updates Using IF, THEN, ELSE

#1 Post by crestructor_274 » 24 Aug 2012 02:50

Hi,

I just registered to this forum, and I already need help.

I want to update adobe flash using a batch file because you have to install it in succession (i.e. each update one at a time). So, I think that a batch file would automate the process. How do you make an IF, THEN, ELSE statement that does the following:

Install "ACROBATFILE.MSP"
IF "ACROBATFILE.MSP" EXISTS
THEN Install "ACROBATFILE1.MSP"
..."ACROBATFILE2.MSP"
..."ACROBATFILE3.MSP"
...

Until it installs to the latests update

I hope this makes sense.

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: How To Install Multiple Acrobat Updates Using IF, THEN,

#2 Post by foxidrive » 24 Aug 2012 03:38

Adobe flash only requires the latest release.

Are you sure you have the right files?

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: How To Install Multiple Acrobat Updates Using IF, THEN,

#3 Post by foxidrive » 24 Aug 2012 03:41

I see you mean Adobe Acrobat.

Try this. I suspect your information is wrong though. :)

Code: Select all

if exist "ACROBATFILE.MSP" start /w "" "ACROBATFILE.MSP"
for /L %%a in (1,1,200) do if exist "ACROBATFILE%%a.MSP" start /w "" "ACROBATFILE%%a.MSP"

Post Reply