Prohibit rollback
Empêcher l’annulation
Explanation
This policy setting prohibits Windows Installer from generating and saving the files it needs to reverse an interrupted or unsuccessful installation.
If you enable this policy setting, Windows Installer is prevented from recording the original state of the system and sequence of changes it makes during installation. It also prevents Windows Installer from retaining files it intends to delete later. As a result, Windows Installer cannot restore the computer to its original state if the installation does not complete.
This policy setting is designed to reduce the amount of temporary disk space required to install programs. Also, it prevents malicious users from interrupting an installation to gather data about the internal state of the computer or to search secure system files. However, because an incomplete installation can render the system or a program inoperable, do not use this policy setting unless it is essential.
This policy setting appears in the Computer Configuration and User Configuration folders. If the policy setting is enabled in either folder, it is considered be enabled, even if it is explicitly disabled in the other folder.
Ce paramètre de stratégie empêche Windows Installer de générer et d’enregistrer les fichiers nécessaires à l’annulation d’une installation interrompue ou non terminée correctement.
Si vous activez ce paramètre de stratégie, Windows Installer ne peut pas enregistrer l’état initial du système et les différentes modifications effectuées lors de l’installation. Il empêche également Windows Installer de conserver les fichiers à supprimer ultérieurement. Par conséquent, Windows Installer ne peut pas restaurer l’ordinateur à son état initial si l’installation ne s’est pas terminée correctement.
Ce paramètre de stratégie est destiné à réduire la quantité d’espace disque temporaire requise pour installer les applications. Il empêche également les utilisateurs mal intentionnés d’interrompre une installation afin de récupérer des données sur l’état interne de l’ordinateur ou rechercher des fichiers système sécurisés. Cependant, une installation non terminée peut rendre le système ou un programme inutilisable ; il est donc déconseillé d’utiliser ce paramètre de stratégie, à moins qu’il ne soit essentiel.
Ce paramètre de stratégie apparaît dans les dossiers Configuration ordinateur et Configuration utilisateur. S’il est activé dans l’un des deux dossiers, il est considéré comme étant activé, même s’il est explicitement désactivé dans l’autre dossier.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer- Value name
DisableRollback
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: MSI/DisableRollback_2
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Installer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableRollback' -Value 1 -Type DWordDisable
# Disable: MSI/DisableRollback_2
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Installer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableRollback' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": MSI/DisableRollback_2
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Installer'
Remove-ItemProperty -Path $k -Name 'DisableRollback' -ErrorAction SilentlyContinue