DESKTOP

Windows 8 : Managing traditional desktop applications (part 1) - Using Windows Installer in Windows 8, Running Windows Installer packages and MSIExec

6/3/2014 3:05:08 AM

Using Windows Installer in Windows 8

Windows 8 includes version 5.0 of Windows Installer, the installation and configuration utility that enables corporate IT administrators to control how software is installed, uninstalled, and managed within a Windows environment. In addition to ensuring uniform installation of applications on computers, Windows Installer can ensure that applications are installed in a specific manner.

Windows Installer is used in many environments that run Active Directory directory service with Group Policy, which enables administrators to position user and computer objects within Active Directory to apply certain settings at computer startup or when a user signs in. Among these settings, application management is included through Windows Installer.

Windows Installer 5 brings a few enhancements to previous versions of the product, including:

  • The ability to configure services on a computer.

  • The MSIFastInstall property, which you can use to modify the options available during installation to reduce the amount of time needed to complete the process. The available options are listed in Table 1.

  • The MSIInstallPerUser property, which you can use to install applications for the current user or for all users on a computer during installation, either within the graphical user interface or with the command line.

Table 1. MSIFastInstall options

Value

Definition

0

Default value

1

No restore point saved for the installation

2

Perform File Costing only, skip checking other costs of installation

4

Reduce progress message frequency during installation

Running Windows Installer packages and MSIExec

Many software vendors today include a Windows Installer package for their applications to make installation easier or at least more manageable for Windows administrators. There are multiple ways to install applications by using Windows Installer, including:

  • Running an application’s Setup.exe file many times. The Setup.exe file is a wrapper for a Windows Installer package that is extracted and run when the file is executed.

  • Creating batch files to run Windows Installer packages. By running Msiexec.exe from a batch script, you can make the execution silent or scheduled.

  • Double-tapping or double-clicking the Windows Installer package file. When an MSI package is double-clicked, it executes and behaves much like any other executable setup file.

  • Using Group Policy to execute a published Windows Installer package. Use this method to publish or assign applications to user accounts at sign-in or to machines at startup. The installation process is generally visible to the individual signing in, but it is not interactive.

Often, Windows administrators want applications to run silently or be minimally visible while the installation completes. Using MSIExec at the command line can help accomplish these tasks. The options available for MSIExec include:

  • Installation Options

    • /package | /I <path to MSI package.msi> Specifies the install option and the path to the package to be configured

    • /a <path to MSI package.msi> Specifies an administrative installation, creating a product installation on a network share

    • /j (u|m)<path to MSI Package.msi> Advertises the package for installation to m: All users or u: current user

    • /t <path to transform file > Applies preconfigured settings to the MSI package at installation

    • ;g <language ID> Allows a specific language to be installed

    • /uninstall | /x <path to MSI Package.msi | Product Code> Uninstalls the application

  • Display Options

    • /quiet Silent installation, no user interaction

    • /passive Unattended mode, displays only a progress bar

    • /q n|b|f Sets the user interface level; n: no user interface | b: basic user interface | f: full user interface

    • /help Displays help information for Windows Installer

  • Restart Options

    • /norestart Specifies that Windows should not restart when installation completes

    • /promprestart Displays a message following installation, prompting whomever is signed in to restart the computer

    • /forcerestart Restarts the computer when the installation completes

  • Logging Options Allows specification of the logging level that should be used with the install

  • Update Options

    • /update <update package.msp> Applies the specified updates to applications

    • /Uninstall <Patch code GUID>:<update package.msp> /package <path to MSI Package.msi | Product Code> Uninstalls the specified update from the specified product

  • Repair Options Specifies options to use in repairing Windows Installer installations

Note

MORE INFO MSIEXEC

Further information about Msiexec.exe can be found by executing MSIExec with no options specified from the Start screen or at a command line.

Quick check

  • Which Windows Installer option prevents the user from seeing an application installation taking place?

Quick check answer

  • /quiet

Other  
  •  Windows Server 2008 R2 : Active Directory certificate services (part 2) - Deploying Active Directory Certificate Services
  •  Windows Server 2008 R2 : Active Directory certificate services (part 1) - Planning for Active Directory Certificate Services
  •  Windows Server 2008 R2 : Administering group policy (part 2) - Creating and managing Group Policy Objects, Troubleshooting Group Policy
  •  Windows Server 2008 R2 : Administering group policy (part 1) - Overview of Group Policy
  •  Windows Server 2008 R2 : Administering groups and organizational units
  •  Windows 8 : Troubleshooting Startup Problems - Computer Takes Too Long to Start (part 2) - Start in Safe Mode
  •  Windows 8 : Troubleshooting Startup Problems - Computer Takes Too Long to Start (part 1) - Advanced startup
  •  Microsoft Windows Server 2008 R2 : Administering user and computers
  •  Microsoft Windows Server 2008 R2 : Active directory administration basics
  •  Microsoft Windows Server 2008 R2 : Installing and configuring Active Directory domain services
  •  
    Top 10
    Extending LINQ to Objects : Writing a Single Element Operator (part 2) - Building the RandomElement Operator
    Extending LINQ to Objects : Writing a Single Element Operator (part 1) - Building Our Own Last Operator
    3 Tips for Maintaining Your Cell Phone Battery (part 2) - Discharge Smart, Use Smart
    3 Tips for Maintaining Your Cell Phone Battery (part 1) - Charge Smart
    OPEL MERIVA : Making a grand entrance
    FORD MONDEO 2.0 ECOBOOST : Modern Mondeo
    BMW 650i COUPE : Sexy retooling of BMW's 6-series
    BMW 120d; M135i - Finely tuned
    PHP Tutorials : Storing Images in MySQL with PHP (part 2) - Creating the HTML, Inserting the Image into MySQL
    PHP Tutorials : Storing Images in MySQL with PHP (part 1) - Why store binary files in MySQL using PHP?
    REVIEW
    - First look: Apple Watch

    - 3 Tips for Maintaining Your Cell Phone Battery (part 1)

    - 3 Tips for Maintaining Your Cell Phone Battery (part 2)
    VIDEO TUTORIAL
    - How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 1)

    - How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 2)

    - How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 3)
    Popular Tags
    Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 Adobe Indesign Adobe Flash Professional Dreamweaver Adobe Illustrator Adobe After Effects Adobe Photoshop Adobe Fireworks Adobe Flash Catalyst Corel Painter X CorelDRAW X5 CorelDraw 10 QuarkXPress 8 windows Phone 7 windows Phone 8 BlackBerry Android Ipad Iphone iOS