Documente Academic
Documente Profesional
Documente Cultură
Value
/fp /fo /fe /fd /fc /fa /fu /fm /fs /fv package Notes
Description
Reinstalls only if the file is missing. Reinstalls if the file is missing or if an older version is installed. Reinstalls if the file is missing or an equal or older version is installed. Reinstalls if the file is missing or a different version is installed. Reinstalls if the file is missing or the stored checksum does not match the calculated value. Forces all of the files to be reinstalled. Rewrites all of the required user-specific registry entries. Rewrites all of the required computer-specific registry entries. Overwrites all of the existing shortcuts. Runs from source and recaches the local package. Specifies the name of the Windows Installer package file.
ProductCodeSpecifies the globally unique identifier (GUID) of the Windows Installer package. To open a command prompt, click Start, point to All programs, point to Accessories, and then click Command prompt. The default parameter for this command-line option is /fpecms. Windows Installer command-line options are not case-sensitive. For more information about msiexec command-line options, see Related Topics.
Use Windows Installer packages with the Add or Remove Programs utility
Updated: January 21, 2005
Note
To open Add or Remove programs, click Start, click Control Panel, and then double-click Add or Remove programs.
Value
/i package
Description
Installs a product. Specifies the name of the Windows Installer package file. TransformList is a list of paths separated by semicolons.
TRANSFORMS=TransformListSpecifies what transform (.mst) files should be applied to the package. Notes
To open a command prompt, click Start, point to All programs, point to Accessories, and then click Command prompt. Windows Installer command-line options are not case-sensitive. For more information about msiexec command-line options, see Related Topics.
Value
/fp /fo /fe /fd /fc /fa /fu /fm /fs /fv package Notes
Description
Reinstalls only if the file is missing. Reinstalls if the file is missing or if an older version is installed. Reinstalls if the file is missing or an equal or older version is installed. Reinstalls if the file is missing or a different version is installed. Reinstalls if the file is missing or the stored checksum does not match the calculated value. Forces all of the files to be reinstalled. Rewrites all of the required user-specific registry entries. Rewrites all of the required computer-specific registry entries. Overwrites all of the existing shortcuts. Runs from source and recaches the local package. Specifies the name of the Windows Installer package file.
ProductCodeSpecifies the globally unique identifier (GUID) of the Windows Installer package. To open a command prompt, click Start, point to All programs, point to Accessories, and then click Command prompt. The default parameter for this command-line option is /fpecms. Windows Installer command-line options are not case-sensitive. For more information about msiexec command-line options, see Related Topics.
Value Description
/a Notes Applies the administrative installation option. packageSpecifies the name of the Windows Installer package file. To open a command prompt, click Start, point to All programs, point to Accessories, and then click Command prompt. Windows Installer command-line options are not case-sensitive. For more information about msiexec command-line options, see Related Topics.
3.
In the details window, double-click one of the following policy settings: Disable Windows Installer Always install with elevated privileges Prohibit rollback Remove browse dialog box for new source Prohibit patching Disable IE security prompt for Windows Installer scripts Enable user control over installs Enable user to browse for source while elevated Enable user to use media source while elevated Enable user to patch elevated products Allow admin to install from Terminal Services session Cache transforms in secure location on workstation Logging Prohibit User Installs Turn off creation of System Restore Checkpoints Prohibit removal of updates Enforce upgrade components rule Prohibit non-administrators from applying vendor signed updates Baseline file cache maximum size
4.
In the Group Policy Property dialog box, set the options you want to use, and then click OK. To open Group Policy to edit the local Group Policy object, click Start, click Run, type gpedit.msc, and then press ENTER. For more information about Windows Installer Group Policy options, see Related Topics.
Notes
Msiexec
Provides the means to install, modify, and perform operations on Windows Installer from the command line. To install or configure a product To use the administrative installation option To repair a product To uninstall a product To advertise a product To set logging level To apply an update To install a transform using the command line To install and advertise a product using a transform with the command line To set the user interface level To display copyright information for the Windows Installer To call the system API DllRegisterServer to self-register modules passed on the command line To call the system API DllUnRegisterServer to unregister modules passed on the command line
For more information about the Windows Installer command-line options, see Related Topics.
For more information about the Windows Installer command-line options, see Related Topics.
To repair a product
Syntax
msiexec/f [p][o][e][d][c][a][u][m][s][v]{Package | ProductCode} Parameters /f Enables one or more of the command-line options listed in the following table.
CommandDescription
p o e d c a u m s v Package Name of the Windows Installer package file. ProductCode Globally unique identifier (GUID) of the Windows Installer package. Remarks This option ignores any property values that you type at the command line. Reinstalls only if file is missing. Reinstalls if file is missing or if an older version is installed. Reinstalls if file is missing or an equal or older version is installed. Reinstalls if file is missing or a different version is installed. Reinstalls if file is missing or the stored checksum does not match the calculated value. Forces all files to be reinstalled. Rewrite all required user-specific registry entries. Rewrites all required computer-specific registry entries. Overwrites all existing shortcuts. Runs from source and re-caches the local package.
The default parameter for this command-line option is /fpecms. Windows Installer command-line options are not case-sensitive. For more information about the Windows Installer command-line options, see Related Topics.
To uninstall a product
Syntax msiexec/x {Package | ProductCode} Parameters /x uninstalls a product. Package Name of the Windows Installer package file. ProductCode Globally unique identifier (GUID) of the Windows Installer package. Remarks Windows Installer command-line options are not case-sensitive. For more information about the Windows Installer command-line options, see Related Topics.
To advertise a product
Syntax msiexec/j [{u | m}] Package msiexec {u | m} Package /t TransformList
msiexec {u | m} Package /g LanguageID Parameters /j Advertises a product. u Advertises to the current user. m Advertises to all users of the computer. Package Specifies the Windows Installer package file. /g LanguageID Identifies the language. /t TransformList Applies transform to advertised package. Remarks This option ignores any property values that you type at the command line. If you want to install the application with elevated privileges, use /jm. Windows Installer command-line options are not case-sensitive. For more information about the Windows Installer command-line options, see Related Topics.
Examples To advertise a package to all users of this computer, type: msiexec /jm Example.msi
+ Appends to existing file. ! Flushes each line to the log. * Logs all information except for the v option. This is a wildcard. LogFile .txt Name and path of the text log file. Remarks Windows Installer command-line options are not case-sensitive.
To include the v option in a log file using the wildcard flag, type /L*v at the command prompt. The Windows Installer log file options can also be used with the uninstall and repair processes. For more information about the Windows Installer command-line options, see Related Topics.
Examples To install a package and create a log file that contains the information related to the status, out-of-memory, and error messages, type: msiexec /i Example.msi /Lime logfile.txt
To apply an update
Syntax msiexec/pUpdatePackage Parameters /p Applies an update. UpdatePackage Specific update. Remarks To apply an update to an administrative installation package, use the following syntax:
msiexec/pUpdatePackage/aExample.msi Windows Installer command-line options are not case-sensitive. For more information about the Windows Installer command-line options, see Related Topics.
For more information about the Windows Installer command-line options, see Related Topics.
To install and advertise a product using a transform with the command line
Syntax msiexec /iPackage/j[u][m] /tTransformList Parameters /i
Installs or configures a product. Package Name of the Windows Installer package file. /j Advertises a product. This option ignores any property values entered on the command line. u Advertises to the current user. m Advertises to all users of this computer. /t Applies transform to advertised package. TransformList List of paths separated by semicolons. Remarks Windows Installer command-line options are not case-sensitive.
For more information about the Windows Installer command-line options, see Related Topics.
Windows Installer command-line options are not case-sensitive. For more information about the Windows Installer command-line options, see Related Topics.
Examples To display the basic user interface options during the package installation of Example.msi, type: msiexec /qb Example.msi
For more information about the Windows Installer command-line options, see Related Topics.
To call the system API DllRegisterServer to self-register modules passed on the command line
Syntax msiexec/yModule Parameters /y Calls the system API DllRegisterServer to self-register modules passed on the command line. Module Specifies the file name of module. Caution Incorrectly editing the registry may severely damage your system. Before making changes to the registry, you should back up any valued data on the computer.
Remarks This option is used only for registry information that cannot be added using the registry tables of the .msi file. Windows Installer command-line options are not case-sensitive. For more information about the Windows Installer command-line options, see Related Topics.
Examples The following example shows how you can use the msiexec /y command: msiexec /y my_file.dll
To call the system API DllUnRegisterServer to unregister modules passed on the command line
Syntax msiexec/zModule Parameters /z Calls the system API DllUnRegisterServer to unregister modules passed on the command line. Module File name of module. Remarks This option is used only for registry information that cannot be added using the registry tables of the .msi file.
Windows Installer command-line options are not case-sensitive. For more information about the Windows Installer command-line options, see Related Topics.
Examples The following example shows how you can use the msiexec /z command: msiexec /z my_file.dll
Top of page
Formatting legend
Format
Italic Bold Ellipsis (...) Between brackets ([]) Between braces ({}); choices separated by pipe (|). Example: {even|odd} Courier font
Meaning
Information that the user must supply Elements that the user must type exactly as shown Parameter that can be repeated several times in a command line Optional items Set of choices from which the user must choose only one Code or program output