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

Ability to hide a component if it's already installed #96

Closed
icnocop opened this issue Nov 4, 2015 · 0 comments
Closed

Ability to hide a component if it's already installed #96

icnocop opened this issue Nov 4, 2015 · 0 comments
Assignees

Comments

@icnocop
Copy link
Collaborator

icnocop commented Nov 4, 2015

The boostrapper should allow hiding a component if it's already installed.

This allows for the situation where the main application can run on either the Microsoft .NET Framework 3.5 or the Microsoft .NET Framework 4.0 for example.
Only one of the Microsoft .NET Frameworks is required.

The bootstrapper is configured with two required components:

  1. Microsoft .NET Framework 3.5
  2. Microsoft .NET Framework 4.0

Both components have the same installed checks:
.NET Framework 3.5 is installed or .NET Framework 4.0 is installed

The Microsoft .NET Framework 3.5 component has an operating system filter so that it is displayed/installed only on Windows XP, since the Microsoft .NET Framework 4.0 doesn't support all editions of Windows XP.
The Microsoft .NET Framework 4.0 component has an operating system filter so that it is displayed/installed on operating systems higher than Windows XP.

The bootstrapper is also configured to not allow running on operating systems less than Windows XP.

The issue with this configuration is that if the machine is running on Windows XP and only has the Microsoft .NET Framework 4.0 installed for example, the bootstrapper would indicate that the Microsoft .NET Framework 3.5 component is installed when it actually isn't.
I thought about changing the component to display just Microsoft .NET Framework, but then if the machine has the Microsoft .NET Framework 2.0 installed, the bootstrapper will indicate that the Microsoft .NET Framework is not installed and required and this may cause some confusion for end-users.

So the simplest solution I could come up with is to just hide the component if it's already installed (as determined by the installed checks).

I will be adding a new optional attribute called hide_component_if_installed on component elements which will have a default value of False.

@icnocop icnocop self-assigned this Nov 4, 2015
icnocop added a commit to icnocop/dotnetinstaller that referenced this issue Nov 4, 2015
…ready installed

added missing SetupConfiguration and WebConfiguration topics to the help documentation
icnocop added a commit that referenced this issue Nov 5, 2015
#96 - Added the ability to hide a component if it's already installed
@icnocop icnocop closed this as completed Nov 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant