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

asked 13 Sep '11, 03:50

Jake's gravatar image

Jake ♦♦
826222226235
accept rate: 98%


You can direct the installer to perform actions after a page is shown by using a <postShowPageActionList> section. The following example sets the value of a registry key with the value specified by the user if the installer is running on Windows, and keeps the same information in an environment variable if the installer is running on Linux.

<fileParameter>
    <name>confirmation</name>
    <value>${mypath}</value>
    <title>Server File Confirmation</title>
    <description>Server file</description>
    <explanation>Please confirm the information showed below  or introduce
a new value</explanation>
    <default></default>
    <ask>yes</ask>
    <mustBeWritable>yes</mustBeWritable>
    <postShowPageActionList>
      <registrySet>
     <value>${mypath}</value>
         <key>HKEY_LOCAL_MACHINE\SOFTWARE</key>
         <name>MYAPP</name>
        <ruleList>
          <compareText>
           <text>${platform_name}</text>
           <logic>equals</logic>
           <value>windows</value>
          </compareText>
        </ruleList>
     </registrySet>
     <setInstallerVariable>
       <name>mypath</name>
       <value>${mypath}</value>
        <ruleList>
          <compareText>
           <text>${platform_name}</text>
           <logic>equals</logic>
           <value>linux</value>
          </compareText>
        </ruleList>
      </setInstallerVariable>
    </postShowPageActionList>
 </fileParameter>

link

answered 13 Sep '11, 03:56

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
×5

Asked: 13 Sep '11, 03:50

Seen: 1,333 times

Last updated: 15 Sep '11, 10:26