Specify the order in which Windows Installer searches for installation files
Spécifier l’ordre dans lequel Windows Installer recherche les fichiers d’installation
Explanation
This policy setting specifies the order in which Windows Installer searches for installation files.
If you disable or do not configure this policy setting, by default, the Windows Installer searches the network first, then removable media (floppy drive, CD-ROM, or DVD), and finally, the Internet (URL).
If you enable this policy setting, you can change the search order by specifying the letters representing each file source in the order that you want Windows Installer to search:
-- "n" represents the network;
-- "m" represents media;
-- "u" represents URL, or the Internet.
To exclude a file source, omit or delete the letter representing that source type.
Ce paramètre de stratégie spécifie l’ordre dans lequel Windows Installer recherche les fichiers d’installation.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, par défaut, Windows Installer effectue d’abord des recherches sur le réseau, ensuite sur les médias amovibles (disquettes, CD-ROM ou DVD) et enfin sur Internet (URL).
Si vous activez ce paramètre de stratégie, vous pouvez modifier l’ordre de recherche en spécifiant les lettres représentant chaque source de fichiers dans l’ordre dans lequel vous voulez que Windows Installer effectue la recherche :
-- « n » représente le réseau ;
-- « m » représente les médias ;
-- « u » représente une URL ou Internet.
Pour exclure une source de fichiers, omettez la lettre qui représente ce type de source ou supprimez-la.
Registry
HKEY_CURRENT_USER\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/SearchOrder
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Installer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Search order
Set-ItemProperty -Path $k -Name 'SearchOrder' -Value '<value>' -Type StringDisable
# Disable: MSI/SearchOrder
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": MSI/SearchOrder
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Installer'
Remove-ItemProperty -Path $k -Name 'SearchOrder' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Search orderOrdre de rechercheSearchOrder | Text boxtext | SearchOrder | REG_SZ | Default (UI): nmu |