Snapshot Capture with Wise

1. Pre-requisites

Creating a MSI file using the Snapshot Capture feature of Wise Package Studio requires a clean machine to ensure all the components are captured (a component will not be captured if already present on the machine).

To avoid pollution as much as possible, deactivate all components running in background (Defender, Windows Updates, SCCM Agent…).

Some application need pre-required component to be installed first (C++ libraries, .Net Framework…)

Install all the pre-required components (to capture the application only).

Install Wise Package Studio.

If the packaging machine is a VM, shutdown the machine and create a snapshot.

.

.

2. Snapshot Capture

Launch Wise Package Studio.

Select the tool SetupCapture

 

snapshotcapture01
.

snapshotcapture02
Next

.

snapshotcapture03

Target Installation: Browse the location of the future project file (.wsi) and name it

Select “Copy Source Files During Installation Save

Destination Directory: Browse the location of the project

Select “Store Source File Pathnames as Relative Pathnames

Next

.

snapshotcapture04

Next

.

snapshotcapture05

Next

.

snapshotcapture06

Click Next to launch the first capture

.

snapshotcapture07

1st capture in progress…

.

snapshotcapture08

Once the 1st capture completed:

Browse the setup file of the software to package and click Execute

Install the software…

Once the software installed and configured, click Next to launch the 2nd capture

.

snapshotcapture09

Once the 2nd capture completed, click Next

Wise compare the 2 snapshots and displays the result

.

snapshotcapture10

Check the files displayed and exclude unwanted ones.

To the same for registry, ini and shortcuts

Then click Next

.

snapshotcapture11

The excluded files are now displayed.

Check them and include some of them if necessary.

Do the same for registry, ini and shortcuts

Then click Next

.

snapshotcapture12

Type the name (will set the ProductName MSI property)

Type the version and the Manufacturer

Click Finish

.

.

3. Personalization

Now launch the tool Windows Installer Editor

.

snapshotcapture13
Windows Installer Editor allows to modifiy the package.

 

3 tools can be used:

  • Installation Expert: Allows to manage files, registry, ini, environment variables with a GUI
  • MSI Script: Allows to manage Custom Actions
  • Setup Editor: Allows to manage features, properties, tables (like Orca would do)

snapshotcapture17
.

By default, packages is configured “Per-User Installation”.

Most of time, a package must be configured “Per-Machine Installation

In Installation Expert, select “Administrator Options

.

snapshotcapture14
snapshotcapture15.
snapshotcapture16

Install for Profile: Per-machine installation

.

4. Compilation

Once ready, the package can be compiled into a MSI file.

Click the “Compile” button to generate the MSI file.

.

snapshotcapture18

The MSI file is created in the project folder and is ready to be deployed.

.

snapshotcapture19