Hiding components and tasks depending on setup type

167 views
Skip to first unread message

Ethin Probst

unread,
Sep 5, 2024, 6:12:10 AM9/5/24
to inno...@googlegroups.com
Hi all,

I'm re-learning InnoSetup and would like to do some rather unusual things, but I'm not very skilled with pascal and InnoSetup's classes so am struggling to figure out how to (1) hide the components list if a certain setup type is selected and (2) hide the tasks page if that setup type is selected. I've seen some other installers do this so I wanted to see if I could emulate it. What is the typical way of doing this? I tried searching around but it doesn't look like anyone else has wanted to do this (which is odd to me but eh).


Signed,
Ethin D. Probst

Sent with Proton Mail secure email.
publickey - ethindp@pm.me - 0x846BFA7B.asc
signature.asc

Bill Stewart

unread,
Sep 5, 2024, 9:44:52 AM9/5/24
to innosetup
On Thursday, September 5, 2024 at 4:12:10 AM UTC-6 Ethin Probst wrote:
Hi all,

I'm re-learning InnoSetup and would like to do some rather unusual things, but I'm not very skilled with pascal and InnoSetup's classes so am struggling to figure out how to (1) hide the components list if a certain setup type is selected and (2) hide the tasks page if that setup type is selected. I've seen some other installers do this so I wanted to see if I could emulate it. What is the typical way of doing this? I tried searching around but it doesn't look like anyone else has wanted to do this (which is odd to me but eh).

You can do this by using the ShouldSkipPage event function. See the Event Functions[1] help topic.

Ethin Probst

unread,
Sep 5, 2024, 9:48:33 AM9/5/24
to innosetup
Does this work for hiding parts of a page depending on another selection in that page? My idea for that is to hide the components list if the "full" setup type is selected, but I'm uncertain what the best way to go about that is.

Bill Stewart

unread,
Sep 5, 2024, 10:24:53 AM9/5/24
to innosetup
On Thursday, September 5, 2024 at 7:48:33 AM UTC-6 Ethin Probst wrote:

Does this work for hiding parts of a page depending on another selection in that page? My idea for that is to hide the components list if the "full" setup type is selected, but I'm uncertain what the best way to go about that is.

 My recommendation is to read through the documentation and look at the example .iss scripts provided in the installation.

Gavin Lambert

unread,
Sep 10, 2024, 8:09:03 PM9/10/24
to innosetup
On Friday, September 6, 2024 at 1:48:33 AM UTC+12 Ethin Probst wrote:
Does this work for hiding parts of a page depending on another selection in that page? My idea for that is to hide the components list if the "full" setup type is selected, but I'm uncertain what the best way to go about that is.

Ethin Probst

unread,
Sep 10, 2024, 9:14:41 PM9/10/24
to inno...@googlegroups.com
I missed this, my bad. Thanks for pointing me to it.

Signed,
Ethin D. Probst

Sent with Proton Mail secure email.

--
You received this message because you are subscribed to the Google Groups "innosetup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to innosetup+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/innosetup/773fdd21-a0d9-4745-b68d-42a2b812ae6cn%40googlegroups.com.

publickey - ethindp@pm.me - 0x846BFA7B.asc
signature.asc
Reply all
Reply to author
Forward
0 new messages