Turn off Windows Installer
Désactiver Windows Installer
Explanation
This policy setting restricts the use of Windows Installer.
If you enable this policy setting, you can prevent users from installing software on their systems or permit users to install only those programs offered by a system administrator. You can use the options in the Disable Windows Installer box to establish an installation setting.
-- The "Never" option indicates Windows Installer is fully enabled. Users can install and upgrade software. This is the default behavior for Windows Installer on Windows 2000 Professional, Windows XP Professional and Windows Vista when the policy is not configured.
-- The "For non-managed applications only" option permits users to install only those programs that a system administrator assigns (offers on the desktop) or publishes (adds them to Add or Remove Programs). This is the default behavior of Windows Installer on Windows Server 2003 family when the policy is not configured.
-- The "Always" option indicates that Windows Installer is disabled.
This policy setting affects Windows Installer only. It does not prevent users from using other methods to install and upgrade programs.
Ce paramètre de stratégie restreint l’utilisation de Windows Installer.
Si vous activez ce paramètre de stratégie, vous pouvez empêcher les utilisateurs d’installer des logiciels sur leur système ou les autoriser à installer uniquement les programmes publiés par un administrateur. Vous pouvez utiliser les options de la boîte de dialogue Désactiver Windows Installer pour établir un paramètre d’installation.
-- L’option « Jamais » indique que Windows Installer est complètement activé. Les utilisateurs peuvent installer et mettre à niveau les logiciels. Ceci est le comportement par défaut de Windows Installer pour Windows 2000 Professionnel, Windows XP Professionnel et Windows Vista lorsque la stratégie n’est pas configurée.
-- L’option « Uniquement pour les applications non gérées » permet aux utilisateurs d’installer uniquement les programmes assignés (disponibles sur le Bureau) ou publiés (ajoutés à l’application Ajout/Suppression de programmes) par un administrateur système. Ceci est le comportement par défaut de Windows Installer pour la famille Windows Server 2003 lorsque la stratégie n’est pas configurée.
-- L’option « Toujours » indique que Windows Installer est désactivé.
Ce paramètre de stratégie affecte uniquement Windows Installer. Il n’empêche pas les utilisateurs d’utiliser d’autres méthodes pour installer et mettre à niveau des programmes.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
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/DisableMSI
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Installer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Disable Windows Installer
# Possible options:
# Always = 2
# For non-managed applications only = 1
# Never = 0
Set-ItemProperty -Path $k -Name 'DisableMSI' -Value 1 -Type DWordDisable
# Disable: MSI/DisableMSI
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": MSI/DisableMSI
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Installer'
Remove-ItemProperty -Path $k -Name 'DisableMSI' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Disable Windows InstallerDésactiver Windows InstallerDisableMSI | Drop-down listenum | DisableMSI | REG_DWORD | Required · Default choice (UI): #1
|