3 minute read

Tools used for application packaging

Next Article
Logs

Logs

• The Self-healing option (or self-repair) for corrupted or erased files (when certain files are corrupted or erased, the user can trigger the Repair option, which fixes those files) • Installation on request (packages can be installed in one simple click whenever the user wants) • Packages can use Transform type files (which allows a package to be customized) • Packages can use patches (great for fixing bugs in the applications) • Managing the state of an application (Windows Installer offers developers an API for monitoring the state of a package - whether it is or it isn’t installed on the machine) • Administrator’s rights are no longer necessary for installing applications (this depends on whether the application is user-targeted or not) • Scriptable API (for manipulating MSI type files)

• Packages can be managed via the MSIEXEC.exe command line.

Advertisement

What applications should not be repackaged?

In certain circumstances, we can deal with applications that shouldn’t be repackaged, here are some of them:

• Vendor MSI files. Instead, you can customize them using Transform files.

• Patches, updates, and hotfixes for the operating system, Windows Installer Service,

MDAC. Those applications shouldn’t be repackaged because they influence Windows security rules.

• Windows Media Player, Microsoft Internet Explorer, antiv irus software, and device

drivers. These types of applications generate changes in the operating system which includes the protection of Windows files. When it is still necessary to install a driver, an antivirus, or a hotfix - these are the options: • The original setup was to be rolled using MSI as a “hiding place” (from now on, we will be referring to this as a “wrapper” or the “wrapping method”). • Silently install drivers using the tools provided by Microsoft (dpinst.exe, DIFxAPI, etc).

Tools used for application packaging

• Advanced Installer • Wise Package Studio

• Orca • WiX Toolset

Advanced Installer is one of the most popular tools for repackaging applications. Advanced Installer’s GUI creates the MSI with the primary goal of delivering quality applications to the end-user. It achieves that by scanning the operating system, installing the application that has to be repackaged, then scanning the system one more time which results in an MSI from the difference between those two scans.

Orca is a tool used for editing MSIs, which offers access to all the MSI tables, but it is not meant to be a “full-featured” tool for creating MSIs. It has the advantage of being easier to use than full-featured installers, but it doesn’t work as a replacement for them. If you’re handling big packages, Orca saves the MSI and loads the tables a lot faster than other package manipulating software would. Wise Package Studio was discontinued, but it is still very popular and used at the time this article was written (end of 2020). WiX Toolset was released by Microsoft back in 2004, and it was their first-ever open source license project. Some of the most popular packages from Microsoft were built using WiX - including Office 2007, Visual Studio 2005/2008, and SQL Server 2005.

WiX stands for Windows Installer XML, and instead of having a graphical interface as we’re used to with other software packaging tools, WiX uses a different approach. You can look at WiX more like a programming tool because it uses XMLs to declare and define what elements are inside a package and what exactly happens during an installation. WiX is designed for highly skilled software packagers and not for beginners, which is why it will not be reviewed in this book.

We will have a look further at both Advanced Installer and Wise Packaging Studio to see how they behave in different scenarios.

You can try Advanced Installer by downloading it from here

This article is from: