Hi, i have setup for multiple instances, similar to MSSQL server in example.
I dynamically change AppId according to passed parameter /instance=TEST.
Is there way to let user to choose installed instances?
I created CreateInputQueryPage with combobox filled from uninstall registry.
I dont know how to change AppId after Welcome setup page, because AppId is at this time already set.
paramsInstance := CreateInputQueryPage(wpWelcome, '', '', '');
ComboInstances := TNewComboBox.Create(paramsInstance);
function NextButtonClick(CurPageID: Integer): Boolean;
...
begin
...
if (CurPageID = paramsInstance.ID) and not WizardSilent then
begin
for i := 1 to paramcount do
params := params + paramstr(i);
params := ' /instance='+Uppercase(trim(ComboInstances.Text));
if pos('/lang=',lowercase(params))=0 then
params := params + ' /lang=' + ActiveLanguage;
b := Exec(ExpandConstant('{srcexe}'), params, '', SW_SHOW, ewNoWait, ResultCode);
//it doesnt exec and ends with resultcode=5
result := false;
Abort; //it doesnt abort too
end;
...
end;
Any ideas ?
Thanks for help.