Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support optional installation based on selected components #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sippeangelo
Copy link

These are the changes we made to support optional installation based on component selection. We don't expect this to be merged as is, but maybe it's useful to someone or good as a starting point.

This is a bit of a breaking change, since Inno's "Pascal Script" doesn't support default arguments or overloads. Maybe someone has a better suggestion on how to accomplish this.

This change only really useful for custom dependencies at the moment, as all the default Dependency_Add... functions would have to be updated to accept optional component arguments too.

By providing a component name or a component boolean expression, only those components that have been selected by the user will be downloaded and installed.

By calling the Dependency_DeselectComponent function instead of Dependency_Add in the else case of your "already installed" check, your component will automatically be deselected in the component selection page (follow the argument format of WizardSelectComponents).

By providing a component name or a component boolean expression, only those components that have been selected by the user will be downloaded and installed.

By calling the Dependency_DeselectComponent function instead of Dependency_Add in the else case of your "already installed" check, your component will automatically be deselected in the component selection page (follow the argument format of WizardSelectComponents).
Repository owner deleted a comment from mushramb0 Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant