How to add checkbox in task page in inno setup and make it work as checked or unchecked:
- Install Visual C++
I have Tried-
[Tasks]
Name: desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}
Name: vcredist_x64; Description: Install Visual C++; Flags: unchecked
[Code]
procedure CurStepChanged(CurStep: TSetupStep);
begin
if CurStep = ssPostInstall then
begin
var
ResultCode: Integer;
begin
if IsTaskSelected('vcredist_x64') then
begin
Status.Caption:='Installing Visual C++...';
Exec(ExpandConstant('{src}\Redist\vcredist_x64.exe'),'/q',false)
But it showing some error Identifier expected
I am very new to inno-setup and here (stackoverflow.com). Can anybody help me. Thanks in advance.
THIS IS THE ANSWER FOR MY QUESTION
Credit Goes To TLama