I have an Inno setup installer where I am setting the setup type via the command line like so, /TYPE=full
. When I do this the correct type is selected. What I would like to do is take it one step further and disable option to change the type. Is this possible to do?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Use the ShouldSkipPage
event function to skip the "Select Components" page when the /TYPE
command-line parameter is specified:
[Code]
function ShouldSkipPage(PageID: Integer): Boolean;
begin
Result := (PageID = wpSelectComponents) and (ExpandConstant('{param:TYPE}') <> '');
end;
标签:
inno-setup