chocolatey / chocolatey-licensed-issues

Issues for Licensed Editions of Chocolatey
19 stars 13 forks source link

Unable to install 0.6.0/0.6.1 database package when IIS is not installed #248

Closed sync-by-unito[bot] closed 3 years ago

sync-by-unito[bot] commented 3 years ago

Description

The chocolatey-management-database package has a dependency on the dotnetcore-windowshosting package, which itself has a dependency to the aspnetcore-runtimepackagestore package.

The Windows hosting package expects to be installed on a machine that has IIS installed, to the extent that there is a package parameter that does the following:

IgnoreMissingIIS - allow package installation even if IIS is not present (probably useless, as the native installer will not install anything)

This was not expected, as there is no guarantee that the database server will also have IIS installed.

Steps To Reproduce

  1. Find a machine that doesn't have IIS installed
  2. Install SQL Server
  3. Install SQL Server Management Studio
  4. Attempt to install the chocolatey-management-database package

Output Log

image

Workarounds

Manually install the dependent package, passing in a package parameter to ignore the fact that IIS is not installed:

  1. Run the following:
choco upgrade dotnetcore-windowshosting -y --package-parameters="'/IgnoreMissingIIS'"   
  1. Install the database package:
choco upgrade chocolatey-management-database -y  [OTHER OPTIONS]   
# see https://docs.chocolatey.org/en-us/central-management/setup/database for OTHER OPTIONS   

Or, alternatively, run the installation of the database package on a remote machine that has IIS installed. This assumes that there is a connection string available for a user that can alter the schemes of the database.

Proposed Solution

Related Issues and Tickets

Zendesk Ticket, Zendesk Ticket

Done Checklist

┆Issue is synchronized with this Gitlab issue by Unito ┆Milestone: 0.6.2