Note that there are some explanatory texts on larger screens.

plurals
  1. POControlling Custom Page To Show After Specific Tasks
    text
    copied!<p>After couple of hours googling and struggling, and got no where, I decide to ask for help here.</p> <p>What I am trying to accomplish, I am trying to get the IP from the user and use it as a command line parameter in my [Run] Section.</p> <p>So I have this:</p> <pre><code>[Task] Name: "License"; Description: "Usb Key License Driver"; GroupDescription: "UsbLicense"; Flags: checkedonce Name: "License/Desktop"; Description: "Desktop License"; GroupDescription: "UsbLicense"; Flags: exclusive Name: "License/NetworkClient"; Description: "Network Client License Key"; GroupDescription: "UsbLicense"; Flags: exclusive unchecked </code></pre> <p>Now if the user chooses Network client, I want to be able to show a custom page, and get the IP and use it like this:</p> <pre><code>[Run] Filename: "{app}\Drivers\Program.exe"; Parameters: "/ip:{code:GetIPhere}"; StatusMsg: "Installing drivers..."; Tasks: License/NetworkClient </code></pre> <p>I managed to create my own page and ran this:</p> <pre><code>[Code] procedure InitializeWizard(); begin CustomForm_CreatePage(wpSelectDir); end; </code></pre> <p>Now for my main question:</p> <p>1) How do i control WHEN the custom form shows, it shows up before it activates before my Task page.</p> <p>2) If i can get it to show AFTER task page? How do I write code to make it show under the "Client Network" condition only from task. (If i do this in NextButtonClick method, how do i know what is the page id of my custom page?)</p> <p>Thanks for all you help, i am just geting so close to finishing my installer, but this is driving me nuts.</p> <p><strong>----EDITED----</strong></p> <p>I sovled my problem 1, there is a pageAfter parameter when creating the custom page, and we can use the selectedTask constant to determine it to appear AFTER the Task page:</p> <pre><code>procedure InitializeWizard(); begin Form_CreatePage(wpSelectTasks); end; </code></pre> <p>Thanks and Regards, Kev84</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload