Microsoft LAPS

A silent installer for Microsoft Local Administrator Password Solution (LAPS), which can be used to manage local administrator passwords in a domain.

<?xml version="1.0" encoding="UTF-8"?>

<packages>

	<package 
		id="microsoft-laps"
		name="Microsoft LAPS"
		revision="%PKG_VERSION%"
        reboot="postponed"
		priority="90">
		
		<variable name="PKG_VERSION" value="6.2.0.0" />
		
		<variable name="MSI_INSTALLER" value="LAPS.x86.msi" architecture="x86" />
		<variable name="MSI_PRODUCTCODE" value="{937A3762-F1D5-45F3-AA20-F7C5CBA7FBAC}" architecture="x86" />
		
		<variable name="MSI_INSTALLER" value="LAPS.x64.msi" architecture="x64" />
		<variable name="MSI_PRODUCTCODE" value="{EA8CB806-C109-4700-96B4-F1F268E5036C}" architecture="x64" />
		
		<check type="file" condition="versionequalto" path="%PROGRAMFILES%\LAPS\CSE\AdmPwd.dll" value="%PKG_VERSION%" />

		<install cmd="msiexec.exe /i &quot;%SOFTWARE%\Microsoft\LAPS\%MSI_INSTALLER%&quot; /norestart /qn" />
		
		<upgrade include="install" />
		
		<downgrade include="remove" />
		<downgrade include="install" />
		
		<remove cmd="msiexec.exe /x%MSI_PRODUCTCODE% /norestart /qn" />
		
	</package>

</packages>