Announcement

Collapse
No announcement yet.

Acrobat Version Checking Script

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Acrobat Version Checking Script

    The following is a project settings actions script that I cooked up to handle a more graceful Acrobat check, with user option to install or not install. You will need to have the AcroReader51_ENU_full.exe installer (available from Adobe.com) in order to use this precise script - put that in your Distribution folder for the project. Feel free to modify and share!

    The script will check to see if a default PDF viewer is present on the system, and what version that viewer is. If the version pre-dates 5.0.0.0 (of none exists at all), then it will present the option to install the 5.1 version of the software.

    <IR_ACTIONS_LIST>
    <Action name="Comment">
    <Type>202</Type>
    <Function>2</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Comment>PDF Checker/Installer Script by Eric Darling v. 5.1</Comment>
    </Action>
    <Action name="Comment">
    <Type>202</Type>
    <Function>2</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Comment>Set a default value if nothing returned from PDF viewer search</Comment>
    </Action>
    <Action name="Set Value">
    <Type>6</Type>
    <Function>0</Function>
    <DTIndentLevel>1</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Variable>%pdfviewer%</Variable>
    <Value>NOTFOUND</Value>
    <Evaluate>0</Evaluate>
    </Action>
    <Action name="Comment">
    <Type>202</Type>
    <Function>2</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Comment>Note: On Error user notification set to "none" for the next action</Comment>
    </Action>
    <Action name="Get Default Viewer">
    <Type>13</Type>
    <Function>0</Function>
    <DTIndentLevel>1</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>0</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel>INSTALL ACROBAT</JumpToLabel>
    </ErrorHandling>
    <Variable>%pdfviewer%</Variable>
    <FileExtension>.PDF</FileExtension>
    </Action>
    <Action name="IF">
    <Type>200</Type>
    <Function>1</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Condition>%pdfviewer% = "NOTFOUND"</Condition>
    </Action>
    <Action name="LABEL">
    <Type>208</Type>
    <Function>1</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Label>INSTALL QUESTION</Label>
    </Action>
    <Action name="Comment">
    <Type>202</Type>
    <Function>2</Function>
    <DTIndentLevel>1</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Comment>This will bring up a dialog box to ask if user wants to install Acrobat 5.1</Comment>
    </Action>
    <Action name="Message Box">
    <Type>5</Type>
    <Function>0</Function>
    <DTIndentLevel>2</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <DialogTitle>Install Acrobat</DialogTitle>
    <DialogMessage>Setup detected that this computer has either an outdated version of Adobe Acrobat Reader, or no installation of Acrobat Reader present at all. To install version 5.1 of the Adobe Acrobat Reader software on this computer, please answer OK. To skip this installation, click Cancel (you will not be able to view PDF files on this computer).</DialogMessage>
    <Icon>3</Icon>
    <Variable>%InstallResult%</Variable>
    <DialogType>2</DialogType>
    <DefaultButton>0</DefaultButton>
    </Action>
    <Action name="ELSE">
    <Type>206</Type>
    <Function>1</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    </Action>
    <Action name="GOTO">
    <Type>209</Type>
    <Function>1</Function>
    <DTIndentLevel>1</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Label>VERSION CHECK</Label>
    </Action>
    <Action name="END IF">
    <Type>201</Type>
    <Function>1</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    </Action>
    <Action name="IF">
    <Type>200</Type>
    <Function>1</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Condition>%InstallResult% = OK</Condition>
    </Action>
    <Action name="GOTO">
    <Type>209</Type>
    <Function>1</Function>
    <DTIndentLevel>1</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Label>INSTALL ACROBAT</Label>
    </Action>
    <Action name="ELSE">
    <Type>206</Type>
    <Function>1</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    </Action>
    <Action name="Comment">
    <Type>202</Type>
    <Function>2</Function>
    <DTIndentLevel>1</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Comment>If user clicks cancel, dump out of install</Comment>
    </Action>
    <Action name="GOTO">
    <Type>209</Type>
    <Function>1</Function>
    <DTIndentLevel>2</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Label>END</Label>
    </Action>
    <Action name="END IF">
    <Type>201</Type>
    <Function>1</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    </Action>
    <Action name="LABEL">
    <Type>208</Type>
    <Function>1</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Label>INSTALL ACROBAT</Label>
    </Action>
    <Action name="Comment">
    <Type>202</Type>
    <Function>2</Function>
    <DTIndentLevel>1</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Comment>This will install Acrobat Reader version 5.1_English</Comment>
    </Action>
    <Action name="Busy">
    <Type>135</Type>
    <Function>0</Function>
    <DTIndentLevel>2</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Display>TRUE</Display>
    <Text>Please Wait While Acrobat Reader is Installed...</Text>
    </Action>
    <Action name="Execute">
    <Type>8</Type>
    <Function>0</Function>
    <DTIndentLevel>2</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <FileName>%SrcDir%\AcroReader51_ENU_full.exe</FileName>
    <CommandLine/>
    <WorkingDir/>
    <RunMode>0</RunMode>
    <WaitForReturn>1</WaitForReturn>
    </Action>
    <Action name="GOTO">
    <Type>209</Type>
    <Function>1</Function>
    <DTIndentLevel>2</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Label>FINISH</Label>
    </Action>
    <Action name="LABEL">
    <Type>208</Type>
    <Function>1</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Label>VERSION CHECK</Label>
    </Action>
    <Action name="Comment">
    <Type>202</Type>
    <Function>2</Function>
    <DTIndentLevel>1</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Comment>Check for the version of Acrobat Reader</Comment>
    </Action>
    <Action name="Get Information">
    <Type>14</Type>
    <Function>0</Function>
    <DTIndentLevel>2</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <FileInformationToCollect>0</FileInformationToCollect>
    <Variable>%pdfversion%</Variable>
    <FileName>%pdfviewer%</FileName>
    </Action>
    <Action name="Comment">
    <Type>202</Type>
    <Function>2</Function>
    <DTIndentLevel>1</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Comment>If it is less than 5.0 it will jump to the label INSTALL ACROBAT otherwise dump and continue</Comment>
    </Action>
    <Action name="IF">
    <Type>200</Type>
    <Function>1</Function>
    <DTIndentLevel>2</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Condition>%pdfversion% &amp;lt; 5.0.0.0</Condition>
    </Action>
    <Action name="GOTO">
    <Type>209</Type>
    <Function>1</Function>
    <DTIndentLevel>2</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Label>INSTALL QUESTION</Label>
    </Action>
    <Action name="ELSE">
    <Type>206</Type>
    <Function>1</Function>
    <DTIndentLevel>2</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    </Action>
    <Action name="END IF">
    <Type>201</Type>
    <Function>1</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    </Action>
    <Action name="GOTO">
    <Type>209</Type>
    <Function>1</Function>
    <DTIndentLevel>1</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Label>END</Label>
    </Action>
    <Action name="LABEL">
    <Type>208</Type>
    <Function>1</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Label>FINISH</Label>
    </Action>
    <Action name="Busy">
    <Type>135</Type>
    <Function>0</Function>
    <DTIndentLevel>1</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Display>FALSE</Display>
    <Text>Hide Wait Message</Text>
    </Action>
    <Action name="LABEL">
    <Type>208</Type>
    <Function>1</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Label>END</Label>
    </Action>
    </IR_ACTIONS_LIST>
    Eric Darling
    eThree Media
    http://www.ethreemedia.com

  • #2
    Re: Acrobat Version Checking Script

    This script gives me an endless loop of the original dialog. I included these actions on a text object and when I click on it I just get a dialog that will not disappear (if I click OK or CANCEL). It appears that you have an endless loop

    Here it is with the CANCEL button working

    <IR_ACTIONS_LIST>
    <Action name="Comment">
    <Type>202</Type>
    <Function>2</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Comment>PDF Checker/Installer Script by Eric Darling v. 5.1</Comment>
    </Action>
    <Action name="Comment">
    <Type>202</Type>
    <Function>2</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Comment>Set a default value if nothing returned from PDF viewer search</Comment>
    </Action>
    <Action name="Set Value">
    <Type>6</Type>
    <Function>0</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Variable>%pdfviewer%</Variable>
    <Value>NOTFOUND</Value>
    <Evaluate>0</Evaluate>
    </Action>
    <Action name="Comment">
    <Type>202</Type>
    <Function>2</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Comment>Note: On Error user notification set to "none" for the next action</Comment>
    </Action>
    <Action name="Get Default Viewer">
    <Type>13</Type>
    <Function>0</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>0</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel>INSTALL ACROBAT</JumpToLabel>
    </ErrorHandling>
    <Variable>%pdfviewer%</Variable>
    <FileExtension>.PDF</FileExtension>
    </Action>
    <Action name="IF">
    <Type>200</Type>
    <Function>1</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Condition>%pdfviewer% = "NOTFOUND"</Condition>
    </Action>
    <Action name="LABEL">
    <Type>208</Type>
    <Function>1</Function>
    <DTIndentLevel>1</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Label>INSTALL QUESTION</Label>
    </Action>
    <Action name="Comment">
    <Type>202</Type>
    <Function>2</Function>
    <DTIndentLevel>1</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Comment>This will bring up a dialog box to ask if user wants to install Acrobat 5.1</Comment>
    </Action>
    <Action name="Message Box">
    <Type>5</Type>
    <Function>0</Function>
    <DTIndentLevel>1</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <DialogTitle>Install Acrobat</DialogTitle>
    <DialogMessage>Setup detected that this computer has either an outdated version of Adobe Acrobat Reader, or no installation of Acrobat Reader present at all. To install version 5.1 of the Adobe Acrobat Reader software on this computer, please answer OK. To skip this installation, click Cancel (you will not be able to view PDF files on this computer).</DialogMessage>
    <Icon>3</Icon>
    <Variable>%InstallResult%</Variable>
    <DialogType>2</DialogType>
    <DefaultButton>0</DefaultButton>
    </Action>
    <Action name="IF">
    <Type>200</Type>
    <Function>1</Function>
    <DTIndentLevel>1</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Condition>%InstallResult% = CANCEL</Condition>
    </Action>
    <Action name="GOTO">
    <Type>209</Type>
    <Function>1</Function>
    <DTIndentLevel>1</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Label>END</Label>
    </Action>
    <Action name="END IF">
    <Type>201</Type>
    <Function>1</Function>
    <DTIndentLevel>1</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    </Action>
    <Action name="ELSE">
    <Type>206</Type>
    <Function>1</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    </Action>
    <Action name="GOTO">
    <Type>209</Type>
    <Function>1</Function>
    <DTIndentLevel>1</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Label>VERSION CHECK</Label>
    </Action>
    <Action name="END IF">
    <Type>201</Type>
    <Function>1</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    </Action>
    <Action name="IF">
    <Type>200</Type>
    <Function>1</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Condition>%InstallResult% = OK</Condition>
    </Action>
    <Action name="GOTO">
    <Type>209</Type>
    <Function>1</Function>
    <DTIndentLevel>1</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Label>INSTALL ACROBAT</Label>
    </Action>
    <Action name="ELSE">
    <Type>206</Type>
    <Function>1</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    </Action>
    <Action name="GOTO">
    <Type>209</Type>
    <Function>1</Function>
    <DTIndentLevel>1</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Label>END</Label>
    </Action>
    <Action name="Comment">
    <Type>202</Type>
    <Function>2</Function>
    <DTIndentLevel>1</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Comment>If user clicks cancel, dump out of install</Comment>
    </Action>
    <Action name="END IF">
    <Type>201</Type>
    <Function>1</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    </Action>
    <Action name="LABEL">
    <Type>208</Type>
    <Function>1</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Label>INSTALL ACROBAT</Label>
    </Action>
    <Action name="Comment">
    <Type>202</Type>
    <Function>2</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Comment>This will install Acrobat Reader version 5.1_English</Comment>
    </Action>
    <Action name="Busy">
    <Type>135</Type>
    <Function>0</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Display>TRUE</Display>
    <Text>Please Wait While Acrobat Reader is Installed...</Text>
    </Action>
    <Action name="Execute">
    <Type>8</Type>
    <Function>0</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel>END</JumpToLabel>
    </ErrorHandling>
    <FileName>%SrcDir%\AcroReader51_ENU_full.exe</FileName>
    <CommandLine/>
    <WorkingDir/>
    <RunMode>0</RunMode>
    <WaitForReturn>1</WaitForReturn>
    </Action>
    <Action name="GOTO">
    <Type>209</Type>
    <Function>1</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Label>FINISH</Label>
    </Action>
    <Action name="LABEL">
    <Type>208</Type>
    <Function>1</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Label>VERSION CHECK</Label>
    </Action>
    <Action name="Comment">
    <Type>202</Type>
    <Function>2</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Comment>Check for the version of Acrobat Reader</Comment>
    </Action>
    <Action name="Get Information">
    <Type>14</Type>
    <Function>0</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <FileInformationToCollect>0</FileInformationToCollect>
    <Variable>%pdfversion%</Variable>
    <FileName>%pdfviewer%</FileName>
    </Action>
    <Action name="Comment">
    <Type>202</Type>
    <Function>2</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Comment>If it is less than 5.0 it will jump to the label INSTALL ACROBAT otherwise dump and continue</Comment>
    </Action>
    <Action name="IF">
    <Type>200</Type>
    <Function>1</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Condition>%pdfversion% &amp;lt; 5.0.0.0</Condition>
    </Action>
    <Action name="GOTO">
    <Type>209</Type>
    <Function>1</Function>
    <DTIndentLevel>1</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Label>INSTALL QUESTION</Label>
    </Action>
    <Action name="END IF">
    <Type>201</Type>
    <Function>1</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    </Action>
    <Action name="GOTO">
    <Type>209</Type>
    <Function>1</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Label>END</Label>
    </Action>
    <Action name="LABEL">
    <Type>208</Type>
    <Function>1</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Label>FINISH</Label>
    </Action>
    <Action name="Busy">
    <Type>135</Type>
    <Function>0</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Display>FALSE</Display>
    <Text>Hide Wait Message</Text>
    </Action>
    <Action name="LABEL">
    <Type>208</Type>
    <Function>1</Function>
    <DTIndentLevel>0</DTIndentLevel>
    <Enabled>1</Enabled>
    <ErrorHandling>
    <UserNotificationMode>2</UserNotificationMode>
    <CustomErrorMessage/>
    <OnErrorAction>0</OnErrorAction>
    <JumpToLabel/>
    </ErrorHandling>
    <Label>END</Label>
    </Action>
    </IR_ACTIONS_LIST>

    Comment


    • #3
      Re: Acrobat Version Checking Script *DELETED*

      Post deleted by eric_darling
      Eric Darling
      eThree Media
      http://www.ethreemedia.com

      Comment


      • #4
        Re: Acrobat Version Checking Script

        Eric,

        I still get stuck in an endless loop as I have an older version of Acrobat installed (4.0....). In this case the cancel button does not let me out.

        Comment


        • #5
          Re: Acrobat Version Checking Script

          Thanks to Adam, the bug is squished. This script should be the version you use.

          <IR_ACTIONS_LIST>
          <Action name="Comment">
          <Type>202</Type>
          <Function>2</Function>
          <DTIndentLevel>0</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          <Comment>PDF Checker/Installer Script by Eric Darling v. 5.1</Comment>
          </Action>
          <Action name="Comment">
          <Type>202</Type>
          <Function>2</Function>
          <DTIndentLevel>0</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          <Comment>Set a default value if nothing returned from PDF viewer
          search</Comment>
          </Action>
          <Action name="Set Value">
          <Type>6</Type>
          <Function>0</Function>
          <DTIndentLevel>0</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          <Variable>%pdfviewer%</Variable>
          <Value>NOTFOUND</Value>
          <Evaluate>0</Evaluate>
          </Action>
          <Action name="Comment">
          <Type>202</Type>
          <Function>2</Function>
          <DTIndentLevel>0</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          <Comment>Note: On Error user notification set to "none" for the next
          action</Comment>
          </Action>
          <Action name="Get Default Viewer">
          <Type>13</Type>
          <Function>0</Function>
          <DTIndentLevel>1</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>0</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel>INSTALL ACROBAT</JumpToLabel>
          </ErrorHandling>
          <Variable>%pdfviewer%</Variable>
          <FileExtension>.PDF</FileExtension>
          </Action>
          <Action name="IF">
          <Type>200</Type>
          <Function>1</Function>
          <DTIndentLevel>0</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          <Condition>%pdfviewer% = "NOTFOUND"</Condition>
          </Action>
          <Action name="LABEL">
          <Type>208</Type>
          <Function>1</Function>
          <DTIndentLevel>1</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          <Label>INSTALL QUESTION</Label>
          </Action>
          <Action name="Comment">
          <Type>202</Type>
          <Function>2</Function>
          <DTIndentLevel>1</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          <Comment>This will bring up a dialog box to ask if user wants to install
          Acrobat 5.1</Comment>
          </Action>
          <Action name="Message Box">
          <Type>5</Type>
          <Function>0</Function>
          <DTIndentLevel>1</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          <DialogTitle>Install Acrobat</DialogTitle>
          <DialogMessage>Setup detected that this computer has either an outdated
          version of Adobe Acrobat Reader, or no installation of Acrobat Reader
          present at all. To install version 5.1 of the Adobe Acrobat Reader software
          on this computer, please answer OK. To skip this installation, click Cancel
          (you will not be able to view PDF files on this computer).</DialogMessage>
          <Icon>3</Icon>
          <Variable>%InstallResult%</Variable>
          <DialogType>2</DialogType>
          <DefaultButton>0</DefaultButton>
          </Action>
          <Action name="Blank Line">
          <Type>203</Type>
          <Function>2</Function>
          <DTIndentLevel>1</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          </Action>
          <Action name="Comment">
          <Type>202</Type>
          <Function>2</Function>
          <DTIndentLevel>1</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          <Comment>You need this. Because if the user has an older version of acrobat then you get an endless loop here</Comment>
          </Action>
          <Action name="GOTO">
          <Type>209</Type>
          <Function>1</Function>
          <DTIndentLevel>1</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          <Label>RESULT</Label>
          </Action>
          <Action name="ELSE">
          <Type>206</Type>
          <Function>1</Function>
          <DTIndentLevel>0</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          </Action>
          <Action name="GOTO">
          <Type>209</Type>
          <Function>1</Function>
          <DTIndentLevel>1</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          <Label>VERSION CHECK</Label>
          </Action>
          <Action name="END IF">
          <Type>201</Type>
          <Function>1</Function>
          <DTIndentLevel>0</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          </Action>
          <Action name="Comment">
          <Type>202</Type>
          <Function>2</Function>
          <DTIndentLevel>0</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          <Comment>Without this label the else gets executed when you jump to INSTALL QUESTION and you get an endless loop</Comment>
          </Action>
          <Action name="LABEL">
          <Type>208</Type>
          <Function>1</Function>
          <DTIndentLevel>0</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          <Label>RESULT</Label>
          </Action>
          <Action name="IF">
          <Type>200</Type>
          <Function>1</Function>
          <DTIndentLevel>0</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          <Condition>%InstallResult% = OK</Condition>
          </Action>
          <Action name="GOTO">
          <Type>209</Type>
          <Function>1</Function>
          <DTIndentLevel>1</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          <Label>INSTALL ACROBAT</Label>
          </Action>
          <Action name="ELSE">
          <Type>206</Type>
          <Function>1</Function>
          <DTIndentLevel>0</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          </Action>
          <Action name="Comment">
          <Type>202</Type>
          <Function>2</Function>
          <DTIndentLevel>1</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          <Comment>If user clicks cancel, dump out of install</Comment>
          </Action>
          <Action name="GOTO">
          <Type>209</Type>
          <Function>1</Function>
          <DTIndentLevel>1</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          <Label>FINISH</Label>
          </Action>
          <Action name="END IF">
          <Type>201</Type>
          <Function>1</Function>
          <DTIndentLevel>0</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          </Action>
          <Action name="LABEL">
          <Type>208</Type>
          <Function>1</Function>
          <DTIndentLevel>0</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          <Label>INSTALL ACROBAT</Label>
          </Action>
          <Action name="Comment">
          <Type>202</Type>
          <Function>2</Function>
          <DTIndentLevel>0</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          <Comment>This will install Acrobat Reader version 5.1_English</Comment>
          </Action>
          <Action name="Busy">
          <Type>135</Type>
          <Function>0</Function>
          <DTIndentLevel>1</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          <Display>TRUE</Display>
          <Text>Please Wait While Acrobat Reader is Installed...</Text>
          </Action>
          <Action name="Execute">
          <Type>8</Type>
          <Function>0</Function>
          <DTIndentLevel>1</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          <FileName>%SrcDir%\AcroReader51_ENU_full.exe</FileName>
          <CommandLine/>
          <WorkingDir/>
          <RunMode>0</RunMode>
          <WaitForReturn>1</WaitForReturn>
          </Action>
          <Action name="GOTO">
          <Type>209</Type>
          <Function>1</Function>
          <DTIndentLevel>0</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          <Label>FINISH</Label>
          </Action>
          <Action name="LABEL">
          <Type>208</Type>
          <Function>1</Function>
          <DTIndentLevel>0</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          <Label>VERSION CHECK</Label>
          </Action>
          <Action name="Comment">
          <Type>202</Type>
          <Function>2</Function>
          <DTIndentLevel>0</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          <Comment>Check for the version of Acrobat Reader</Comment>
          </Action>
          <Action name="Get Information">
          <Type>14</Type>
          <Function>0</Function>
          <DTIndentLevel>1</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          <FileInformationToCollect>0</FileInformationToCollect>
          <Variable>%pdfversion%</Variable>
          <FileName>%pdfviewer%</FileName>
          </Action>
          <Action name="Comment">
          <Type>202</Type>
          <Function>2</Function>
          <DTIndentLevel>0</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          <Comment>If it is less than 5.0 it will jump to the label INSTALL ACROBAT
          otherwise dump and continue</Comment>
          </Action>
          <Action name="IF">
          <Type>200</Type>
          <Function>1</Function>
          <DTIndentLevel>0</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          <Condition>%pdfversion% &amp;lt; 5.0.0.0</Condition>
          </Action>
          <Action name="GOTO">
          <Type>209</Type>
          <Function>1</Function>
          <DTIndentLevel>1</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          <Label>INSTALL QUESTION</Label>
          </Action>
          <Action name="ELSE">
          <Type>206</Type>
          <Function>1</Function>
          <DTIndentLevel>0</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          </Action>
          <Action name="END IF">
          <Type>201</Type>
          <Function>1</Function>
          <DTIndentLevel>0</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          </Action>
          <Action name="GOTO">
          <Type>209</Type>
          <Function>1</Function>
          <DTIndentLevel>1</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          <Label>END</Label>
          </Action>
          <Action name="LABEL">
          <Type>208</Type>
          <Function>1</Function>
          <DTIndentLevel>0</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          <Label>FINISH</Label>
          </Action>
          <Action name="Busy">
          <Type>135</Type>
          <Function>0</Function>
          <DTIndentLevel>1</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          <Display>FALSE</Display>
          <Text>Hide Wait Message</Text>
          </Action>
          <Action name="LABEL">
          <Type>208</Type>
          <Function>1</Function>
          <DTIndentLevel>0</DTIndentLevel>
          <Enabled>1</Enabled>
          <ErrorHandling>
          <UserNotificationMode>2</UserNotificationMode>
          <CustomErrorMessage/>
          <OnErrorAction>0</OnErrorAction>
          <JumpToLabel/>
          </ErrorHandling>
          <Label>END</Label>
          </Action>
          </IR_ACTIONS_LIST>
          Eric Darling
          eThree Media
          http://www.ethreemedia.com

          Comment


          • #6
            Re: Acrobat Version Checking Script

            Looks good to me. This one is worth keeping around thanks to Eric

            Comment


            • #7
              Re: Acrobat Version Checking Script

              Eric,

              Where and how do you use this Script file

              Comment


              • #8
                Re: Acrobat Version Checking Script

                Cut'n'Paste it into your action editor in AutoPlay Media Studio.

                Corey Milner
                Creative Director, Indigo Rose Software

                Comment


                • #9
                  Re: Acrobat Version Checking Script

                  Yup. Make sure you use the latest version - the first one had a bug. I recommend you paste it into Project Settings -> Actions. Put it in the On Initialize event handler.
                  Eric Darling
                  eThree Media
                  http://www.ethreemedia.com

                  Comment


                  • #10
                    Re: Acrobat Version Checking Script

                    This is my version of the script. This script can be used on page initilaization or on a button that is used to open a PDF. If used on a button, there are lines that are disabled that will need to be reenabled as the Opening function. If used on a initialization of a page, I have a variable %PDFCheck% that will be set to failed. You could use this on other buttons so that if %PDFCheck% = "FAILED" you can print an error to the persons screen, and offer to do the install again, or choose to open the file from source on the CD-ROM.

                    There is one more disabled line that can be enabled if you are using this to open a file from a button. If the user elects not to install acrobat reader, you can enable this line to have the file opened using files from the CD-ROM.

                    One of the differences between this and Eric's script is that mine uses less go to statements, and more nested IF statements, but the effect is virtually the same.

                    <IR_ACTIONS_LIST>
                    <Action name="Comment">
                    <Type>202</Type>
                    <Function>2</Function>
                    <DTIndentLevel>0</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Comment>Set a default value for our test</Comment>
                    </Action>
                    <Action name="Set Value">
                    <Type>6</Type>
                    <Function>0</Function>
                    <DTIndentLevel>0</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Variable>%pdfviewer%</Variable>
                    <Value>NOTFOUND</Value>
                    <Evaluate>0</Evaluate>
                    </Action>
                    <Action name="Blank Line">
                    <Type>203</Type>
                    <Function>2</Function>
                    <DTIndentLevel>0</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    </Action>
                    <Action name="Comment">
                    <Type>202</Type>
                    <Function>2</Function>
                    <DTIndentLevel>0</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Comment>Note: I've set the On Error user notification to "none" for the next action</Comment>
                    </Action>
                    <Action name="Get Default Viewer">
                    <Type>13</Type>
                    <Function>0</Function>
                    <DTIndentLevel>0</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>0</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Variable>%pdfviewer%</Variable>
                    <FileExtension>.PDF</FileExtension>
                    </Action>
                    <Action name="Blank Line">
                    <Type>203</Type>
                    <Function>2</Function>
                    <DTIndentLevel>0</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    </Action>
                    <Action name="Comment">
                    <Type>202</Type>
                    <Function>2</Function>
                    <DTIndentLevel>0</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Comment>Test to see if there is a default viewer for pdf files. if not, we will offer to install one.</Comment>
                    </Action>
                    <Action name="Comment">
                    <Type>202</Type>
                    <Function>2</Function>
                    <DTIndentLevel>0</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Comment>If the user declines to install acrobat they will be given an error and another chance to install acrobat.</Comment>
                    </Action>
                    <Action name="IF">
                    <Type>200</Type>
                    <Function>1</Function>
                    <DTIndentLevel>0</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Condition>%pdfviewer% = "NOTFOUND"</Condition>
                    </Action>
                    <Action name="Message Box">
                    <Type>5</Type>
                    <Function>0</Function>
                    <DTIndentLevel>1</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <DialogTitle>Acrobat Reader Not Found</DialogTitle>
                    <DialogMessage>Acrobat Reader doesn't appear to be installed on your PC. To read this file, Acrobat Reader will need to be installed. Do you want to install?</DialogMessage>
                    <Icon>3</Icon>
                    <Variable>%acroResult%</Variable>
                    <DialogType>1</DialogType>
                    <DefaultButton>0</DefaultButton>
                    </Action>
                    <Action name="IF">
                    <Type>200</Type>
                    <Function>1</Function>
                    <DTIndentLevel>1</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Condition>%acroResult% = "YES"</Condition>
                    </Action>
                    <Action name="LABEL">
                    <Type>208</Type>
                    <Function>1</Function>
                    <DTIndentLevel>2</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Label>Install</Label>
                    </Action>
                    <Action name="Busy">
                    <Type>135</Type>
                    <Function>0</Function>
                    <DTIndentLevel>2</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Display>TRUE</Display>
                    <Text>Please Wait While Adobe Acrobat Reader Is Installed . . .</Text>
                    </Action>
                    <Action name="Execute">
                    <Type>8</Type>
                    <Function>0</Function>
                    <DTIndentLevel>2</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <FileName>%SrcDir%\AcrobatReader\AcroReader51_ENU_ full.exe</FileName>
                    <CommandLine/>
                    <WorkingDir/>
                    <RunMode>0</RunMode>
                    <WaitForReturn>1</WaitForReturn>
                    </Action>
                    <Action name="Busy">
                    <Type>135</Type>
                    <Function>0</Function>
                    <DTIndentLevel>2</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Display>FALSE</Display>
                    <Text>Please Wait While Adobe Acrobat Reader Is Installed . . .</Text>
                    </Action>
                    <Action name="GOTO">
                    <Type>209</Type>
                    <Function>1</Function>
                    <DTIndentLevel>2</DTIndentLevel>
                    <Enabled>0</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Label>Open</Label>
                    </Action>
                    <Action name="ELSE">
                    <Type>206</Type>
                    <Function>1</Function>
                    <DTIndentLevel>1</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    </Action>
                    <Action name="Comment">
                    <Type>202</Type>
                    <Function>2</Function>
                    <DTIndentLevel>2</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Comment>If the user elects not to install Acrobat and you are using this script to open a file from a button,</Comment>
                    </Action>
                    <Action name="Comment">
                    <Type>202</Type>
                    <Function>2</Function>
                    <DTIndentLevel>2</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Comment>you can choose to either return an error to the user asking them if they want to install Acrobat </Comment>
                    </Action>
                    <Action name="Comment">
                    <Type>202</Type>
                    <Function>2</Function>
                    <DTIndentLevel>2</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Comment>Reader again, or just to open the file from the CD using Acrobat Reader on the CD.</Comment>
                    </Action>
                    <Action name="Execute">
                    <Type>8</Type>
                    <Function>0</Function>
                    <DTIndentLevel>2</DTIndentLevel>
                    <Enabled>0</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <FileName>%SrcDir%\AcrobatReader\Reader\AcroRd32.e xe</FileName>
                    <CommandLine>%SrcDir%\pdf\main.pdf</CommandLine>
                    <WorkingDir/>
                    <RunMode>0</RunMode>
                    <WaitForReturn>0</WaitForReturn>
                    </Action>
                    <Action name="Comment">
                    <Type>202</Type>
                    <Function>2</Function>
                    <DTIndentLevel>2</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Comment>If you enable the line above this comment, you will need to disable the next seven lines below this comment .</Comment>
                    </Action>
                    <Action name="Message Box">
                    <Type>5</Type>
                    <Function>0</Function>
                    <DTIndentLevel>2</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <DialogTitle>Error!</DialogTitle>
                    <DialogMessage>Acrobat Reader is required to read certain files on this CD-ROM. If you do not install Acrobat Reader or do not have Acrobat Reader installed you may not be able to open these files. Would you like to install Acrobat Reader?</DialogMessage>
                    <Icon>1</Icon>
                    <Variable>%Result%</Variable>
                    <DialogType>1</DialogType>
                    <DefaultButton>0</DefaultButton>
                    </Action>
                    <Action name="IF">
                    <Type>200</Type>
                    <Function>1</Function>
                    <DTIndentLevel>2</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Condition>%Result% = "YES"</Condition>
                    </Action>
                    <Action name="GOTO">
                    <Type>209</Type>
                    <Function>1</Function>
                    <DTIndentLevel>3</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Label>Install</Label>
                    </Action>
                    <Action name="ELSE">
                    <Type>206</Type>
                    <Function>1</Function>
                    <DTIndentLevel>2</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    </Action>
                    <Action name="Set Value">
                    <Type>6</Type>
                    <Function>0</Function>
                    <DTIndentLevel>3</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Variable>%PDFCheck%</Variable>
                    <Value>"FAILED"</Value>
                    <Evaluate>0</Evaluate>
                    </Action>
                    <Action name="RETURN">
                    <Type>207</Type>
                    <Function>1</Function>
                    <DTIndentLevel>3</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    </Action>
                    <Action name="END IF">
                    <Type>201</Type>
                    <Function>1</Function>
                    <DTIndentLevel>2</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    </Action>
                    <Action name="END IF">
                    <Type>201</Type>
                    <Function>1</Function>
                    <DTIndentLevel>1</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    </Action>
                    <Action name="ELSE">
                    <Type>206</Type>
                    <Function>1</Function>
                    <DTIndentLevel>0</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    </Action>
                    <Action name="Comment">
                    <Type>202</Type>
                    <Function>2</Function>
                    <DTIndentLevel>1</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Comment>This next set will now go through a version check of acrobat to see if we should offer an upgrade.</Comment>
                    </Action>
                    <Action name="Comment">
                    <Type>202</Type>
                    <Function>2</Function>
                    <DTIndentLevel>1</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Comment>If the version is less than 5.0.0.0 we will offer to install version 5.1. If they say no, we </Comment>
                    </Action>
                    <Action name="Comment">
                    <Type>202</Type>
                    <Function>2</Function>
                    <DTIndentLevel>1</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Comment>will set a variable so that this check will not be performed again during this run of the application.</Comment>
                    </Action>
                    <Action name="IF">
                    <Type>200</Type>
                    <Function>1</Function>
                    <DTIndentLevel>1</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Condition> ! %VersionCheck%</Condition>
                    </Action>
                    <Action name="Get Information">
                    <Type>14</Type>
                    <Function>0</Function>
                    <DTIndentLevel>2</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <FileInformationToCollect>0</FileInformationToCollect>
                    <Variable>%pdfversion%</Variable>
                    <FileName>%pdfviewer%</FileName>
                    </Action>
                    <Action name="IF">
                    <Type>200</Type>
                    <Function>1</Function>
                    <DTIndentLevel>2</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Condition>%pdfversion% &amp;lt; 5.0.0.0</Condition>
                    </Action>
                    <Action name="Message Box">
                    <Type>5</Type>
                    <Function>0</Function>
                    <DTIndentLevel>3</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <DialogTitle>Update Acrobat Reader</DialogTitle>
                    <DialogMessage>A newer version of Acrobat Reader is available would you like to install a newer version?</DialogMessage>
                    <Icon>3</Icon>
                    <Variable>%acroversion%</Variable>
                    <DialogType>1</DialogType>
                    <DefaultButton>1</DefaultButton>
                    </Action>
                    <Action name="IF">
                    <Type>200</Type>
                    <Function>1</Function>
                    <DTIndentLevel>3</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Condition>%acroversion% = "YES"</Condition>
                    </Action>
                    <Action name="GOTO">
                    <Type>209</Type>
                    <Function>1</Function>
                    <DTIndentLevel>4</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Label>Install</Label>
                    </Action>
                    <Action name="ELSE">
                    <Type>206</Type>
                    <Function>1</Function>
                    <DTIndentLevel>3</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    </Action>
                    <Action name="Set Value">
                    <Type>6</Type>
                    <Function>0</Function>
                    <DTIndentLevel>4</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Variable>%VersionCheck%</Variable>
                    <Value>TRUE</Value>
                    <Evaluate>1</Evaluate>
                    </Action>
                    <Action name="GOTO">
                    <Type>209</Type>
                    <Function>1</Function>
                    <DTIndentLevel>4</DTIndentLevel>
                    <Enabled>0</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Label>Open</Label>
                    </Action>
                    <Action name="END IF">
                    <Type>201</Type>
                    <Function>1</Function>
                    <DTIndentLevel>3</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    </Action>
                    <Action name="ELSE">
                    <Type>206</Type>
                    <Function>1</Function>
                    <DTIndentLevel>2</DTIndentLevel>
                    <Enabled>0</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    </Action>
                    <Action name="GOTO">
                    <Type>209</Type>
                    <Function>1</Function>
                    <DTIndentLevel>3</DTIndentLevel>
                    <Enabled>0</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Label>Open</Label>
                    </Action>
                    <Action name="END IF">
                    <Type>201</Type>
                    <Function>1</Function>
                    <DTIndentLevel>2</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    </Action>
                    <Action name="ELSE">
                    <Type>206</Type>
                    <Function>1</Function>
                    <DTIndentLevel>1</DTIndentLevel>
                    <Enabled>0</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    </Action>
                    <Action name="GOTO">
                    <Type>209</Type>
                    <Function>1</Function>
                    <DTIndentLevel>2</DTIndentLevel>
                    <Enabled>0</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Label>Open</Label>
                    </Action>
                    <Action name="END IF">
                    <Type>201</Type>
                    <Function>1</Function>
                    <DTIndentLevel>1</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    </Action>
                    <Action name="LABEL">
                    <Type>208</Type>
                    <Function>1</Function>
                    <DTIndentLevel>1</DTIndentLevel>
                    <Enabled>0</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <Label>Open</Label>
                    </Action>
                    <Action name="Open">
                    <Type>7</Type>
                    <Function>0</Function>
                    <DTIndentLevel>1</DTIndentLevel>
                    <Enabled>0</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    <FileName>%SrcDir%\pdf\main.pdf</FileName>
                    <Verb>open</Verb>
                    <WorkingDir/>
                    <RunMode>0</RunMode>
                    </Action>
                    <Action name="END IF">
                    <Type>201</Type>
                    <Function>1</Function>
                    <DTIndentLevel>0</DTIndentLevel>
                    <Enabled>1</Enabled>
                    <ErrorHandling>
                    <UserNotificationMode>2</UserNotificationMode>
                    <CustomErrorMessage/>
                    <OnErrorAction>0</OnErrorAction>
                    <JumpToLabel/>
                    </ErrorHandling>
                    </Action>
                    </IR_ACTIONS_LIST>
                    TJ-Tigger
                    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
                    "Draco dormiens nunquam titillandus."
                    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

                    Comment


                    • #11
                      Re: Acrobat Version Checking Script

                      [me being silly...]

                      This is my shorter version:

                      <font color=green>%Result% = Dialog.MessageBox ("Acrobat Reader?", "Do you have Adobe Acrobat Reader installed?", Yes|No, Question)</font color=green>

                      Of course, when the end-uder clicks the YES or NO button ... we'll know!! [img]/ubbthreads/images/icons/wink.gif[/img]
                      -
                      = Derek
                      ["All glory comes from daring to begin" - fortune cookie]

                      Comment


                      • #12
                        Re: Acrobat Version Checking Script

                        I like that Derek. Can we make it a little longer, where the answer to the dialog box is sent to a php script on a website so we can keep track of who has it and who does not? ;-)
                        TJ-Tigger
                        "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
                        "Draco dormiens nunquam titillandus."
                        Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

                        Comment


                        • #13
                          Re: Acrobat Version Checking Script

                          LOL ... sure! [img]/ubbthreads/images/icons/smile.gif[/img]
                          -
                          = Derek
                          ["All glory comes from daring to begin" - fortune cookie]

                          Comment


                          • #14
                            Re: Acrobat Version Checking Script

                            Er, Derek, you forgot the rest...

                            IF (%Result%="No")
                            GOTO ("BOP DEREK ON THE HEAD")
                            ELSE GOTO ("EXIT")
                            END IF

                            <font color=blue>BOP DEREK ON THE HEAD</font color=blue>


                            <font color=blue>EXIT</font color=blue>
                            Eric Darling
                            eThree Media
                            http://www.ethreemedia.com

                            Comment


                            • #15
                              Re: Acrobat Version Checking Script

                              Eric...

                              Sorry to be such a doo-doo head....but, let's say I have a .pdf catalogue on my CD-ROM....would this script be one action and then the next action would be to EXECUTE FILE?

                              Comment

                              Working...
                              X