Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
None
-
None
-
Night's Watch
-
5
-
NW - 2020-08-18
-
Needs Assessment
-
Bug Fix
-
-
Needs Assessment
Description
When a package is installed on Windows that uses windows installer, the following registry key is created: HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components'
In 6.17.0 we've attempted to fix the network restarts on Puppet Agent upgrades by tricking the Windows installer that nssm.exe provisioned by an earlier installation was not part of the package: https://github.com/puppetlabs/puppet-agent/blob/master/resources/windows/wix/customactions.wxs.erb#L231
However, if no other package was installed that uses Windows Installer then the registry key
HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components' does not exist, and the Puppet Agent installation fails with the following error:
Action start 13:19:46: RemoveLegacyNssmRegistryKey. |
WixQuietExec64: Get-ChildItem : Cannot find path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\' |
WixQuietExec64: because it does not exist.
|
WixQuietExec64: At line:1 char:1 |
WixQuietExec64: + Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Instal ...
|
WixQuietExec64: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
WixQuietExec64: + CategoryInfo : ObjectNotFound: (HKLM:\SOFTWARE\...rData\S-1-5-18\:String) , ItemNotFound |
WixQuietExec64: Exception
|
WixQuietExec64: + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
|
WixQuietExec64:
|
WixQuietExec64: Get-ChildItem : Cannot find path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\' |
WixQuietExec64: because it does not exist.
|
WixQuietExec64: At line:1 char:265 |
WixQuietExec64: + ... prop } } }; Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVe ...
|
WixQuietExec64: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
WixQuietExec64: + CategoryInfo : ObjectNotFound: (HKLM:\SOFTWARE\...rData\S-1-5-18\:String) , ItemNotFound |
WixQuietExec64: Exception
|
WixQuietExec64: + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
|
WixQuietExec64:
|
WixQuietExec64: Error 0x80070001: Command line returned an error. |
WixQuietExec64: Error 0x80070001: QuietExec64 Failed |
WixQuietExec64: Error 0x80070001: Failed in ExecCommon method |
CustomAction RemoveLegacyNssmRegistryKey returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox) |