PDA

View Full Version : How to control installation of [sub]compoponents?



NewsArchive
12-19-2001, 01:00 AM
Hi,

I'm totally newbie to InstallShield, so my question may be trivial for
you. Our product has two setup types: Typical and Custom. When user
selects Custom install, then I show SdComponentTree() dialog. My
question is: how I know which components were selected? And what
should I do after that? How to install the components?

And another question. If user selects Typical installation, then I
want to show list of top-level components via SdAskOptionsList()
function. However, I want that <Next> button will be disabled until no
components are selected to install. How can I achieve this?

Thanks beforehand
Alex

NewsArchive
12-19-2001, 01:00 AM
Alex,
You will need to use the function ComponentIsItemSelected
(szComponentSource, szComponent); Look the help file for the info.
Please note that InstallShield does not recommend to use this and similar
functions in the newest versions of InstallShield that support event-driven
model of setup. In other words, most of the things are taken care by this
event-driven model.
These kind of functions are provided just to support backward compatibility
with older versions of InstallShield.

To take control of the "Next" button depending whether the components are
selected or not you will probably need to write additional script to process
the messages from the dialog's controls.

Victor Sevastyanov
jaalaM Technologies Inc.
Vancouver Canada

"Alex Blekhman" <tkfx.NOSPAM@yahoo.com> wrote in message
news:3c20d543@news.installshield.com...
> Hi,
>
> I'm totally newbie to InstallShield, so my question may be trivial for
> you. Our product has two setup types: Typical and Custom. When user
> selects Custom install, then I show SdComponentTree() dialog. My
> question is: how I know which components were selected? And what
> should I do after that? How to install the components?
>
> And another question. If user selects Typical installation, then I
> want to show list of top-level components via SdAskOptionsList()
> function. However, I want that <Next> button will be disabled until no
> components are selected to install. How can I achieve this?
>
> Thanks beforehand
> Alex
>
>