How do I direct the installer to perform actions before showing a page?

asked 13 Sep '11, 03:59

Jake's gravatar image

Jake ♦♦
826222226235
accept rate: 98%


You can direct the installer to perform actions before a page is shown by using a <preShowPageActionList> section. The following example presents the user with information that stored in a registry key under Windows and in an environment variable under Linux.

<infoParameter>
  <preShowPageActionList>
    <registryGet>
   <variable>some_info</variable>
       <key>HKEY_LOCAL_MACHINE\SOFTWARE</key>
      <name>MYAPP</name>
      <ruleList>
        <compareText>
         <text>${platform_name}</text>
         <logic>equals</logic>
         <value>windows</value>
        </compareText>
      </ruleList>
   </registryGet>
   <setInstallerVariable>
     <name>some_info</name>
     <value>${env(SOMEINFO)}</value>
     <ruleList>
        <compareText>
         <text>${platform_name}</text>
         <logic>equals</logic>
         <value>linux</value>
        </compareText>
     </ruleList>
    </setInstallerVariable>
  </preShowPageActionList>
  <name>display_info</name>
  <title>License File Information</title>
  <explanation>This screen shows important information about licensing issues</explanation>
  <value>Important Information! Setup has detected the following : ${some_info}.
In the following screen you will be asked to confirm the information or enter a new (...)</value>
</infoParameter>

link

answered 13 Sep '11, 04:02

Jake's gravatar image

Jake ♦♦
826222226235
accept rate: 98%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×25
×14
×2

Asked: 13 Sep '11, 03:59

Seen: 3,085 times

Last updated: 15 Sep '11, 10:22