I have designed my installer using Inno Setup to display 2 components for the user to select. According to his/her selection, the Finish page at the end will show Launch program checkbox(es). The default value for the checkbox is false if both components have been selected.
So far, so good.
Now, I want that if only one of the components is selected for installation by the user, the default value of the checkbox should be true.
Following are the Component and Run sections of the installer,
[Components]
Name: "Component1"; Description: "Component1"; Types: full;
Name: "Component2"; Description: "Component2"; Types: full custom;
[Run]
Filename: "{localappdata}\MyInstaller\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent unchecked; Components:Component1;
Filename: "{localappdata}\MyInstaller\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(TestAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent unchecked; Components:Component2
I understand that what I want, requires some scripting to be done. I am at a loss at what to do.
Please guide.