Click here to Skip to main content
15,884,472 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to write a function two selection services .for example we have two services, i will select only one service its showing only,but its selecting two.
i have to new pascal ,please help me in this

What I have tried:

<pre>; Script generated by the Inno Setup Script Wizard.

[Setup] 
AppName=MATRIX 
AppVersion=1.0 
WizardStyle=modern 
DefaultDirName={autopf}\Datastudio 
DefaultGroupName=Datastudio 
UninstallDisplayIcon={app}\ArangoDB3-3.7.15_win64.exe 
Compression=lzma
DisableWelcomePage=no
SolidCompression=yes 
OutputDir=C:\Users\Administrator\Desktop\New folder (2) 
UserInfoPage=no 
PrivilegesRequired=lowest 
DisableDirPage=yes 
DisableProgramGroupPage=yes

[Files] 
Source: "C:\Users\Administrator\Desktop\New folder\Install.bat"; DestDir: "{app}" ;  
Source: "C:\Users\Administrator\Desktop\New folder\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs 

[Run]
Filename: "{app}\Install.bat"; Description: "{cm:LaunchProgram,{#StringChange('MATRIX', '&', '&&')}}";Parameters:{code:DisServices}  }}]


[Code]
var

  InputOptionPage: TInputOptionWizardPage;
 


//function MIMServices(Value: Boolean): string;
//begin
 // Result := InputOptionPage.Values[0]; 
//end;




procedure InitializeWizard();
begin
 

  //MIM-SERVICE SELECTION

  AfterID := wpSelectTasks;
  InputOptionPage := CreateInputOptionPage(wpWelcome, 'DIS_SERVICE SELECTION', '', 'Please select the service', False, False);
  InputOptionPage.Add('&GALAXY');
  InputOptionPage.Add('&MATRIX');
 InputOptionPage.Values[0] := ExpandConstant('');
END;
Posted
Updated 8-Nov-22 21:47pm

1 solution

Use True for the Exclusive parameter:
InputOptionPage := CreateInputOptionPage(wpWelcome, 'DIS_SERVICE SELECTION', '', 'Please select the service', True, False);

See: Inno Setup Help[^]
Quote:
Open the "CodeDlg.iss" script in the "Examples" subdirectory of your Inno Setup directory for an example of how to use pre-built custom wizard pages and event functions. Open the "CodeClasses.iss" script for an example of how to use completely custom wizard pages and controls.
Inno Setup Help[^]
 
Share this answer
 
v3
Comments
vijay2022 9-Nov-22 4:30am    
thank you so much,but how to write a function to call the parameters
AfterID := wpSelectTasks;
InputOptionPage := CreateInputOptionPage(wpWelcome, 'DIS_SERVICE SELECTION', '', 'Please select the service', True, False);
InputOptionPage.Add('&Generic');
InputOptionPage.Add('&exam-overview');


function

function Disselection(Value: string): boolean;
begin
IsRegisteredUser := Page.Values[0];
end; its correct

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900