【发布时间】:2018-02-26 15:33:27
【问题描述】:
我想做一个巫师。当用户选择是时,页面 x 应该跟随。当用户选择否时,页面 y 应该跟随。目前它只适用于我的静态页面,所以没关系,用户选择的总是相同的页面......我该如何改变这个?请有人出主意?
这是摘录:
ExistPage := CreateInputOptionPage(OldPage.ID,
'', '', 'If you choose "Yes" then the package will be installed automatically with this setup',True, False);
// Add items
ExistPage.Add('Yes');
ExistPage.Add('No');
// Set initial values (optional)
ExistPage.SelectedValueIndex := 0;
TexPage := CreateInputDirPage(ExistPage.ID,
'Root installation directory', 'Please select installation directory',
'',
True, 'New Folder');
TexPage.Add('');
// Set initial value (optional)
TexPage.Values[0] := ExpandConstant('C:\');
【问题讨论】:
-
我猜你必须使用
CurPageChanged并检查CurPageID以查看你所在的页面。然后您可以测试用户所做的值并继续。或者您可能需要使用CurStepChanged并查找CurStep。我知道其他人对此会有更多的了解。
标签: inno-setup wizard