Logo

EMCO MSI Package Builder - Getting Started

This tutorial is written for everyone, who wants to evaluate EMCO MSI Package Builder, see how it works and what it can do. By reading this tutorial you can better understand approach used for MSI creation and familiarize with application interface to be prepared for building your own installations.

Table of Contents

Introduction

The main feature of MSI Package Builder is producing MSI packages ready for silent and unattended installation. What does the silent installation mean? Such kind of installation can be deployed without any interaction with user, because it already has all options and settings preconfigured. So it is ready for simultaneous mass deployment on remote PCs through Group Policy (GPO) or EMCO Remote Installer.

MSI Package Builder doesn't resemble to other installation tools. It's easy - you don't find here complex scripting or UI wizard programming that can scare even experienced people. Instead, it was specially designed to provide effortless automatic services for creating new or converting various existing installations to MSI packages ready for remote deployment.

In scope of this tutorial Enterprise Edition will be used. If you would like to follow step-by-step instructions provided here, please make sure that you downloaded and installed right edition. Otherwise you can notice some missed features and different interface options.

How to Create Installation?

As you know, application installation is process that usually involves copying files, changing registry entries, etc. Thus, in order to create installation, first of all, you need to decide what exactly your installation should do on computers where it will be installed. The new installation creation starts with defining a set of resources which should be changed in scope of installation and particular action for each resource. MSI Package Builder allows you to create, modify or delete the following resources set:

  • Files and folders
  • Registry keys and values
  • Environment variables (Enterprise Edition Only)
  • Services (Enterprise Edition Only)

A set of modified resources called installation model and is a basis for installation creation. With the MSI Package Builder you can build a model using three approaches:

  • Manual creation. In this case you need to create installation model manually from scratch using visual editor and define what files, registry keys and other resources will be changed by the installation.
  • Automatic creation using monitoring technology (Professional and Enterprise Editions only). In this case MSI Package Builder will detect changes performed on the file system and registry by other applications and use monitoring results to build installation model. This approach can be used for repackaging and modifying of existing installations.
  • Automatic creation using MSI decompilation (Professional and Enterprise Editions only). In this case MSI Package Builder will decompile MSI file and build installation model from the decompilation results. This approach can be used when you need to modify existing MSI installation.

When installation model is ready you can execute MSI creation. This is an automatic process, performed by MSI Package Builder. As the result you will get MSI package, which is ready for silent remote installation through GPO or EMCO Remote Installer.

As you can see, installation model building is the most strenuous task when you create MSI package. But MSI Package Builder can significantly eliminate your efforts by providing monitoring technology for automatic model creation. This unique technology is the main application's advantage that allows making effortless repackaging and modification of existing installation. Using monitoring technology is the main way for building installation model that is explained and demonstrated on following chapters.

Application Interface Overview

Before we will start the practical part of this tutorial and create the first MSI package, let's familiarize with the application's interface. The main application screen is divided on two parts - left represents installation projects, right displays installation data. Take a closer look on these two areas.

 
Pic 1. Main application screen
 

Main application actions, such as Project Wizard, Start and Stop Monitoring and Create MSI are grouped on the toolbar above the Projects Tree. Same actions can be executed also from the main and context menus. Under the toolbar you can find the Projects Tree with projects and installations. MSI Package Builder is a project-based application, so all installation data is associated with particular project stored on the file system. Project contains one or many installations and you can see all of them under project's node in the tree.

An installation model, described in the previous chapter, is represented by installation in the Projects Tree. If you select particular installation in the tree, you can see its model at the right side of the application screen by switching resource tabs. A managed resources structure and detailed information is displayed below. In particular, for the File System resources you can see folders structure and information for selected folder.

Creating Your First MSI Package

Now you know MSI Package Builder good enough to create your first MSI package. To see all features on practice, let's create installation that will create shortcut for some file on the desktop. This example seems to be a trivial, but you need to remember that MSI Package Builder produces MSI files ready for remote deployment. Therefore even first trivial MSI can help you to update desktops on thousands PCs if you will deploy it through GPO or EMCO Remote Installer.

Are you ready to begin? Then download, install and execute the application. At the first launch you will see the Trial dialog that asks you start the trial period or enter the license. Click on the Evaluate button in order to start 30-runs evaluation. You will pass to the wizard that asks you to enter the path to the projects root directory. Accept default path by clicking on the Next > button and close the wizard.

Monitoring technology will be extremely helpful even for producing of very simple installations, so instead of configuring installation manually to create shortcut we can use monitoring to make it automatically.

In order to begin monitoring, click on the Start Monitoring button on the toolbar. You will see the first page of the wizard, that explains how monitoring works. Press Next button to pass to the next page. On this page you need to enter the name of the new project to store monitoring results. Enter the name and press Finish button. From now on until stop monitoring, all changes happened on the computer will be registered by MSI Package Builder. If so, we can create shortcut manually on the desktop and rely on monitoring. As soon as you have finished shortcut creation you can return back to the MSI Package Builder and press Stop Monitoring button. After monitoring stop the Projects Tree will be refreshed to display monitoring results.

 
Pic 2. Start Monitoring button and New Project Wizard
 
Pic 3. Stop Monitoring button and monitoring results
 

Let's review monitoring results. As you can see, project contains few installations, which names are identical to the system process names. If you select the installation, you can see a list of changes, which correspondent system process performed on the file system and registry during monitoring. This is a good input to split wanted changes from unwanted and is the unique feature of the monitoring technology. Other repackaging technologies, based on snapshots, are unable to provide this information.

As you know, Windows runs a lot of processes in parallel, including system processes, and all these processes make changes on file system and registry. If all changes are represented as one bunch, it's hard to find what changes related to the installation and what to other processes. So, there is a risk to include unwanted or even secure information to the installation. But monitoring helps you to resolve this issue.

Now you need to select what installation should be used to produce MSI. To decide you need to sequentially select each of them in the Projects Tree and review File System changes. In particular, we are looking for *.lnk file, that was added during shortcut's creation. For Windows Vista this file has been created by explorer.exe, for Windows XP - by rundll32.exe. Anyway, you can easily detect required installation.

 
Pic 4. Create MSI package action
 
Pic 5. Create MSI Wizard
 
 
Pic 6. MSI Preparation options
 
Pic 7. Generated MSI package
 

As soon as you detected installation to be used for MSI creation, you can select it in the Projects Tree and select Create MSI Package... from the popup menu. You will pass to the wizard where you need to enter File Name to the output MSI package and Manufacturer info. Press Next button to go to the next page where you can configure various project preparation options if required. Leave all options turned on and press Finish button to start MSI file creation. When MSI generation will be finished you see produced MSI file at the path you have specified during its creation. The generated MSI package is ready for deployment, so you can execute it on various PCs or deploy through GPO or EMCO Remote Installer to ensure that it works like expected.

Real-Life Example: Adobe Reader 9.0 Repackaging

In the previous example we took a closer look at simple MSI creation process. What about the real example? Let us suppose that you need to install Adobe Reader 9.0 on hundreds remote PCs. It's naturally to use GPO or Remote Installer for this task. But as far as Adobe Reader installation comes as EXE file, you can't directly install it through these tools, because they don't accept EXE installations. So we need to convert EXE installation to MSI file, which can be deployed remotely. Let's see simple steps to do it using MSI Package Builder.

To convert EXE installation to MSI package we will make monitoring of original installation and use monitoring results to create MSI. Click on the Project Wizard button on the toolbar in order to start. The Project Wizard will appear on the screen. Read information and press Next button to go to the next page. On this page you need to choose what you plan to do. Select Create MSI option and press Next button. On the next page you are proposed to choose the MSI creation mode. Select Monitor Project and press Next button. The next page shows you information on how monitoring works and what should be done for the monitoring process to succeed. Press Next button to pass to the next page. This page requires you to enter the path to executable file that should be monitored and a new project name. Press Next button to pass to the next page.

 
Pic 8. The Project Wizard
 
Pic 9. Available program capabilities
 
 
Pic 10. Choosing MSI creation mode
 
Pic 11. Monitoring options
 

Finally, you have to configure MSI package options and specify path to package that will be produces, manufacturer name and package icon. When options will be defined you can press Finish button to start monitoring of installation. Adobe Reader installation will be launched automatically and you need to follow installation process. When installation will be successfully finished you need to return back to the MSI Package Builder and press Continue button to stop monitoring and proceed to MSI generation.

 
Pic 12. MSI generation options
 
Pic 13. Monitoring of Adobe Reader Installation
 

Once when MSI will be generated, you can launch it to verify that it works correctly. Produced MSI file doesn't require any user interaction and can be installed silently. After installation you can see correspondent entries in the Add/Remove Programs list and ensure that Adobe Reader was correctly installed.

 
Pic 14. Silent MSI installation
 
Pic 15. Installed Adobe Reader
 

We have finished silent MSI creation and verified installation. Now you can deploy it to remote PCs using GPO or EMCO Remote Installer. The same approach can be successfully used for other installations repackaging.

Product Facts

Did you know that MSI Package Builder uses innovation technology that allows capturing installation data on the fly?

Did you know that 'Live Monitoring' technology has an extremely capture performance because based on Kernel Mode Drivers instead of comparing huge volumes of data?

Awards and Recognition
EMCO RSS EMCO on Facebook EMCO on Twitter EMCO on YouTube