Select components from a text file

53 views
Skip to first unread message

Bhavbhuti Nathwani

unread,
Nov 9, 2024, 8:03:40 AMNov 9
to innosetup
Hi all

I have created a script where all the components for the users are listed and the user installing can select the ones they are interested in.  This is all well.

Now I wanted to change my set up such that the components page does not show at all (or comes up with components already selected) based on a text file containing the applicable components in the installation folder.

The need comes up because not all the installing user are aware of the need of specific components selection.  To elevate their anxiety, the custom text file always does the job for them.

Please advise and thanks

Kind regards
Bhavbhuti


Eivind Bakkestuen

unread,
Nov 9, 2024, 8:36:25 PMNov 9
to inno...@googlegroups.com
where does the text file come from?

if you want your installer to remember what choices the user made previously, you can use using Get/SetPreviousData() functions

--
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 visit https://groups.google.com/d/msgid/innosetup/0da1da6d-26da-4136-a77a-c40ae4de982dn%40googlegroups.com.

Gavin Lambert

unread,
Nov 10, 2024, 9:41:15 PMNov 10
to innosetup
On Sunday, November 10, 2024 at 2:03:40 AM UTC+13 Bhavbhuti Nathwani wrote:
Now I wanted to change my set up such that the components page does not show at all (or comes up with components already selected) based on a text file containing the applicable components in the installation folder.

Have you looked at the /SAVEINF and /LOADINF command line options? 

Bhavbhuti eBooks

unread,
Nov 11, 2024, 9:01:13 AMNov 11
to inno...@googlegroups.com

Thanks Gavin.  I tried your suggestion and have created a inf file and used it for the next install while testing.

The help page also showed me another command line parameter /COMPONENTS, I am exploring this too via a batch file, where the batch file can list all the required components (that becomes the text file I was thinking about)

Kind regards

Bhavbhuti

--
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.

Bhavbhuti eBooks

unread,
Nov 11, 2024, 9:04:59 AMNov 11
to inno...@googlegroups.com

Thanks Elvind.  Yes I am saving to the registry, and the option do come back the next time around correctly selected, but it is the un-selecting that becomes the problem, because now next time such option also comes up un-selected and the second person installing the same will never select it back again, thus the component will remain un-updated. I hope I was able to explain my present issue, but do see my response to Gavin in this thread

Kind regards

Bhavbhuti

Reply all
Reply to author
Forward
0 new messages