Set Variable TITLE to Attractive Dialogs Sampler
Set Variable COMPANY to InstallAware
 
Comment: gets the result from the wizard dialog to know whether the "setup" should be cancelled
Set Variable result to 
 
Comment: stores the selection from the list of dialogs
Set Variable selection to 
 
Define Component: Main Component
Define Component: Main Component\Sub Component
Define Component: Another Main Component
Define Component: Another Main Component\Another Sub Component
 
label: Select Dialog
Display Dialog: wizard, wait for dialog to return (modal)
 
if Variable result Equals CANCEL
  Terminate Installation
end
 
Comment: FYI, it was discovered that the list items contain $NEWLINE$ at the end
Comment: Rather than "fixing" the code to "work" that way, [contains] was used in place of [equals]
Comment: if Variable selection Equals Component Selection (List View)$NEWLINE$
Comment: MessageBox: woop, woop
Comment: end
 
if Variable selection Contains (Ignore Case) Component Selection (List View)
  Display Dialog: componentslist, wait for dialog to return (modal)
end
if Variable selection Contains Component Selection (Tree View)
  Display Dialog: componentstree, wait for dialog to return (modal)
end
if Variable selection Contains (Ignore Case) Destination Directory
  Display Dialog: destination, wait for dialog to return (modal)
end
if Variable selection Contains (Ignore Case) Finish
  Display Dialog: finish, wait for dialog to return (modal)
end
if Variable selection Contains (Ignore Case) License Agreement (Check Box)
  Display Dialog: licensecheck, wait for dialog to return (modal)
end
if Variable selection Contains (Ignore Case) License Agreement (Radio Buttons)
  Display Dialog: licenseradio, wait for dialog to return (modal)
end
if Variable selection Contains (Ignore Case) License Agreement (Text Edit)
  Display Dialog: licensetext, wait for dialog to return (modal)
end
if Variable selection Contains (Ignore Case) Maintenance
  Display Dialog: maintenance, wait for dialog to return (modal)
end
if Variable selection Contains (Ignore Case) Pre Requisities
  Display Dialog: prereq, wait for dialog to return (modal)
end
if Variable selection Contains (Ignore Case) Progress
  Display Dialog: progress, wait for dialog to return (modal)
end
if Variable selection Contains (Ignore Case) ReadMe
  Display Dialog: readme, wait for dialog to return (modal)
end
 
if Variable selection Contains (Ignore Case) Registration with Serial
  Display Dialog: registrationwithserial, wait for dialog to return (modal)
else
  if Variable selection Contains (Ignore Case) Registration
    Display Dialog: registration, wait for dialog to return (modal)
  end
end
 
if Variable selection Contains (Ignore Case) Setup Type
  Display Dialog: setuptype, wait for dialog to return (modal)
end
if Variable selection Contains (Ignore Case) Start Install
  Display Dialog: startinstallation, wait for dialog to return (modal)
end
if Variable selection Contains (Ignore Case) Start Menu Shortcuts
  Display Dialog: startmenu, wait for dialog to return (modal)
end
if Variable selection Contains (Ignore Case) Welcome
  Display Dialog: welcome, wait for dialog to return (modal)
end
 
GoTo Label: Select Dialog
 
 
