Skip to content

tinyxml2 fails to install after being uninstalled #5

@calvertdw

Description

@calvertdw

After having timnyxml2 uninstalled (to build an earlier version of Fast-RTPS which would not build if tinyxml2 was installed on the system) it will not reinstall.

C:\WINDOWS\system32>choco install -y -s N:\ChocoDownloads tinyxml2
Chocolatey v0.10.11
Installing the following packages:
tinyxml2
By installing you accept licenses for the packages.

tinyxml2 v6.0.0
tinyxml2 package files install completed. Performing other installation steps.
ERROR: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: A key in this path already exists.
The install of tinyxml2 was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\tinyxml2\tools\chocolateyinstall.ps1'.
 See log for details.

Chocolatey installed 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
 - tinyxml2 (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\tinyxml2\tools\chocolateyinstall.ps1'.
 See log for details.

Running regedit, navigating to Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Kitware\CMake\Packages\TinyXML2 and deleting the TinyXML2 keys fixes the problem.
image

C:\WINDOWS\system32>choco install -y -s N:\ChocoDownloads tinyxml2
Chocolatey v0.10.11
Installing the following packages:
tinyxml2
By installing you accept licenses for the packages.

tinyxml2 v6.0.0
tinyxml2 package files install completed. Performing other installation steps.
HKEY_LOCAL_MACHINE\SOFTWARE\Kitware\CMake\Packages\TinyXML2
@{CMakePackageDir=C:\ProgramData\chocolatey\lib\tinyxml2\share\cmake; PSPath=Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Kitware\CMake\Packages\TinyXML2; PSParentPath=Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Kitware\CMake\Packages; PSChildName=TinyXML2; PSDrive=HKLM; PSProvider=Microsoft.PowerShell.Core\Registry}
PATH environment variable does not have C:\ProgramData\chocolatey\lib\tinyxml2\lib in it. Adding...
Environment Vars (like PATH) have changed. Close/reopen your shell to
 see the changes (or in powershell/cmd.exe just type `refreshenv`).
 The install of tinyxml2 was successful.
  Software install location not explicitly set, could be in package or
  default install location if installer.

Chocolatey installed 1/1 packages.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions