Contents
Overview 1
Introduction to Creating a Windows
Installer Package 2
Repackaging an Application by Using
WinINSTALL LE 4
Modifying a Repackaged Windows
Installer Package 10
Troubleshooting 16
Best Practices 18
Lab A: Creating a Windows Installer
Package by Using WinINSTALL LE 19
Review 27
Module 3: Creating a
Windows Installer
Package Information in this document is subject to change without notice. The names of companies,
products, people, characters, and/or data mentioned herein are fictitious and are in no way intended
to represent any real individual, company, product, or event, unless otherwise noted. Complying
with all applicable copyright laws is the responsibility of the user. No part of this document may
be reproduced or transmitted in any form or by any means, electronic or mechanical, for any
purpose, without the express written permission of Microsoft Corporation. If, however, your only
means of access is electronic, permission to print one copy is hereby granted.
Testing Developer: Greg Stemp (S&T OnSite)
Courseware Testing: Data Dimensions, Inc.
Production Support: Carolyn Emory (S&T Consulting)
Manufacturing Manager: Rick Terek (S&T OnSite)
Manufacturing Support: Laura King (S&T OnSite)
Lead Product Manager, Development Services: Bo Galford
Lead Product Manager: Gerry Lang
Group Product Manager: Robert Stewart
Module 3: Creating a Windows Installer Package iii
Instructor Notes
This module provides students with the knowledge and skills to create
Windows Installer Packages for deploying Microsoft
®
Windows
®
2000
Professional and applications by using WinINSTALL LE.
In the lab, students will have the opportunity to repackage an application for
Windows Installer by using WinINSTALL LE.
At the end of this module, students will be able to:
Describe the difference between a native Microsoft Windows Installer
package and a repackaged Windows Installer package.
Repackage an application as a Windows Installer package by using the
WinINSTALL LE third-party repackaging application.
• Automated Deployment Options
• Microsoft Internet Explorer 5 Corporate Deployment Guide
Presentation:
30 Minutes
Lab:
30 Minutes
iv Module 3: Creating a Windows Installer Package
Module Strategy
Use the following strategy to present this module:
Introduction to Creating a Windows Installer Package
Describe how Windows Installer packages use Windows 2000 Professional
to install applications.
Introduce the concept of repackaging an application.
Describe how Windows Installer packages are distributed.
Repackaging an Application by Using WinINSTALL LE
Explain how WinINSTALL LE can be used to repackage an application in a
three-step process. Explain the importance of using a clean computer when
taking the Before snapshot.
Explain how to install and configure an application in advance of taking the
After snapshot.
Discuss the importance of taking the After snapshot immediately after
students have installed and configured their applications.
Describe how the Discover wizard creates the Windows Installer package.
Lab Setup
There are no lab setup requirements that affect replication or customization.
Lab Results
The lab in this module requires that students work on two computers (Computer
A and Computer B).
Performing the lab in this module introduces the following configuration
changes on Computer A:
Installation of WinINSTALL LE.
Creation of a share to the folder containing the WinINSTALL LE files.
Installation of the Hypertext Markup Language (HTML) Help Workshop
application.
Addition of a desktop shortcut to the HTML Help Workshop folder.
Performing the lab in this module introduces the following configuration
changes on Computer B:
Creation of the C:\Storage folder.
Creation of the Hhelp.msi file in the C:\Storage folder.
Module 3: Creating a Windows Installer Package 1
of the module topics
and objectives.
Lead-in
In this module, you will learn
how to create a Windows
Installer package by
repackaging an application.
2 Module 3: Creating a Windows Installer Package Introduction to Creating a Windows Installer Package
Package
Software
Distribution
Point
Repackaging
Application
A Repackaged Application Contains
Preconfigured Software
Use a Third-Party Repackaging
Application to Repackage an
Application
Install the Package from Removable
Media or a Network Share
A Repackaged Application Contains
of the reference computer is to provide a computer on which to configure and
repackage an application.
Slide Objective
To introduce how a
Windows Installer package
is created.
Lead-in
Windows Installer packages
use Windows 2000
Professional to preinstall
and deploy applications.
Use the illustration on the
slide to introduce the
process of creating a
Windows Installer package.
Refer to the student notes
for supporting details.
Module 3: Creating a Windows Installer Package 3 You create a repackaged application by using a third-party repackaging tool.
The package contains the preconfigured application folders, files, shortcuts, .ini
files, and registry keys. It also contains the instructions for how to install or
remove the application.
After repackaging an application, you can install the application automatically
on a client computer. Use the runonce command to install the application from
a software distribution point.
Windows 2000 includes the WinINSTALL LE repackaging application,
Take an After Snapshot
Take an After Snapshot
The Configuration Changes
Are Recorded
The Configuration Changes
The Configuration Changes
Are Recorded
Are Recorded
\
If your application does not have a native package, you need to create a
Windows Installer package by repackaging the application. Before you
repackage the application, the repackaging tool must determine which files
Windows Installer needs to copy and which registry settings it must change to
install the application.
Repackaging an application by using WinINSTALL LE is a three-step process:
1. Take a Before snapshot.
The Before snapshot is a record of the hard disk configuration on the
reference computer, including folders, files, icons and shortcuts, .ini files,
and registry entries. The Discover wizard needs this information to
determine what to include in the Windows Installer package.
2. Install and configure the application.
After creating a record of the original hard disk configuration, you install
the application on the reference computer by using the Setup program of the
application. After installing the application, you configure the application
the way that you want it deployed to users.
3. Take an After snapshot.
After installing the application, you take an After snapshot to create a
second record of the hard disk configuration on the reference computer.
When the After snapshot is complete, the Discover wizard finishes creating
Install WinINSTALL LE on a Second Computer
Quit All Applications and Utilities
Quit All Applications and Utilities
Run the Discover Wizard over the Network
Run the Discover Wizard over the Network
Follow the On-Screen Instructions
Follow the On-Screen InstructionsYou use a third-party repackaging application to take a Before snapshot of the
hard disk on the reference computer. The Before snapshot captures:
Folder and file names, sizes, and creation dates.
Copies of all .ini files.
Copies of all registry entries.
A record of all system icons and shortcuts.
To take a Before snapshot, perform the following steps:
1. If you have not installed WinINSTALL LE, using a second, networked
computer, open the Valueadd\3rdpartyMgmt\Winstle folder located on the
Windows 2000 Professional compact disc. Double-click the Swiadmle.msi
file.
For OEM system builders, see the Microsoft OEM System Builder
Program Web site at for current
information about preinstallation instructions and tools.
portant
6 Module 3: Creating a Windows Installer Package 2. On the reference computer, quit all applications, including screen savers and
antivirus utilities.
3. On the reference computer, open a command prompt, type the network
location of the Discover wizard, and then press ENTER. For example, type
\\computer_name\winstall\discoz.exe
The Discover wizard starts.
4. On the reference computer, follow the on-screen instructions to take a
Before snapshot of the hard disk on the reference computer. Run the Discover wizard on the reference computer, which is
running only Windows 2000 Professional, and has no applications installed
on it.
Important
Module 3: Creating a Windows Installer Package 7 Installing and Configuring an Application
Install the Application
Install the Application
Run the Setup Program
Run the Setup Program
Run the Setup Program
Start the Application
Start the Application
successfully, and that the application is ready for users. (For example, some
applications do not ask for the product identification number until they are
first run.) Configure the application options that you want available to users.
3. Shut down and then restart the computer.
This ensures that all changes are recorded to the registry, and that all files
required by the application are closed. Be sure that you restart the computer
before taking the After snapshot.
Any configuration changes that you make after restarting the
computer will be included in the Windows Installer package. Slide Objective
To explain how to install and
configure an application
before repackaging it.
Lead-in
After taking the Before
snapshot, the next step is to
install and configure the
application that you
intend to repackage.
Describe the steps involved
in installing and configuring
an application.
Key Point
Take the After snapshot
immediately after installing
and configuring the