1 This Installation Cannot Be Run By Directly Launching The Msi Package Rating: 5,6/10 9852 reviews

My Installshield based vendor MSI will not install unless I run setup.exe. I want to install the MSI directly. How can I do this? 1: this installation cannot be run by directly launching the MSI package. You must run setup.exe Showing 1-1 of 1 messages.

  1. 1 This Installation Cannot Be Run By Directly Launching The Msi Package
There are a number of things you can do to fix this problem. Don't rush to reinstall just yet
Have you checked to see if the Windows Installer service has been disabled? You can check in one of two ways, depending on your preference.
1. Start > Search Box > Services.msc . Look for the service titled Windows Installer and make sure that it has not been disabled. You might also want to check and see the security context that it is running under. you would do this by clicking on the LogOn tab and making sure that Local System radio button is checked.
2. The other way is to open a command line window and type: SC Query MSIServer . If you get any kind of error back, then there might be a problem with the service.
3. You can also unregister and re-register the windows installer service:
Open a CMD Prompt/ Or the start Box, and type msiexec /unreg. Wait about ten seconds and then type msiexec /regserver. Now trying installing or uninstalling your application again.
Make sure to empty all your temp files (system and IE) as well.
and you can also try running SFC/ScanNow
Translate this page
Powered by Microsoft® Translator
InstallShield 2018
Neue Version mit Verbesserungen für IIS, XML, MSBuild, PowerShell, Suite Projekte, Prerequisites u.a.
Details hier

See also:Windows Installer Technical Articles

Laurie Rhodes' MSI Utilities

Laurie posted a number of script and tools for Windows Installer and deployment tasks, including:

  • MSI Check, a VBScript based system for producing Infopath reports into the quality of MSI Packaging
  • MSI Edit, a VBScript based, modular system for editing and correcting windows installer packages.
  • Application Launcher, an XML interpretive based installer that acts as a standardised wrapper for installing and removing software.

and more.

Common Windows Installer Conditions

Flexera Software published a very useful 'cheat sheet' with conditions that are commonly used in MSI setups. The PDF is available for download from their InstallTalk blog:

Blog post with download

MSI Logfile Analyzer

This is a commercial tool. Note: While the web site is in German, the tool itself is in English

This is a graphical tool to analyze and display the contents of a verbose Windows Installer log file. The user interface looks a bit like InstEd or similar MSI editors. But instead of the contents of the MSI database, it displays a structured view of feature states, properties and the like.

Web site with trial download

MSI Live Logging and File Extraction Utility

This tool is effectively a front-end for launching an .msi or .exe package with a real-time logfile viewer and ability to easily set some command line options. It is also however a tool for extracting some or all of the files embedded within the msi's CAB files and has a nice tree view layout showing the files according to their folder layouts. It also attempts to highlight msi table entries or files that appear to be in error or unreferenced.

When you first run the program you'll need to type in the name of an MSI or drag one to the edit box. When you quit, various choices and preferences are remembered in an INI file in your My Documents folder. Other than that the program is passive in that it doesn't write to the MSI or to the Registry. Of course if you extracted any files they'll remain in your folder of choice!

MsiTools.zip Written by Andy Guest
Originally posted: 2009-11-17 File size: 157.741 bytes

Robert Dickau's Windows Installer Tips

Robert Dickau is known as the principal technical training writer for Flexera Software (and its predecessors). He has created many training courses, has written countless newsletter articles, etc. and even co-authored abook about Windows Installer. On his personal web site he has posted a collection of Windows Installer tips and notes that's worth reading. (And if you enjoy his sense of humor you should follow him on twitter: @robertdickau)

Msiexec Command Line Builders

MSI Helper

This utility allows you to build command line parameters for Windows Installer (.MSI) packages without having to learn the complicated syntax for the parameters.

This tool is a replacement for the 'Msiexec Command Line Builder' from Wise/Altiris/Symantec which is no longer available.

1 This Installation Cannot Be Run By Directly Launching The Msi Package

MSIExecCmdLineEdit

Programm zum Erstellen der Kommandozeilen für den Aufruf von MSI-Dateien. Alle Einstellungen können einfach zusammen-geklickt und sogar gespeichert und geladen werden. Direkter Aufruf des MSIs aus dem Programm heraus, Aufruf einer Administrator-Konsole, etc.

Also available in English:
Change Language=1031 to Language=1033 in the [Main] section of the included INI file.
This program creates command lines to launch MSI files. All settings can be configured by point-and-click and can be saved. MSIs can be launched directly from the program, and you can also launch an administrator console.

DownloadScreenshot

Authoring an ICE using C# / DTF

Christopher Painter has published an article that shows how to use the Deployment Tools Foundation (DTF) to write a custom Internal Consistency Evaluator (ICE) to validate your MSI file using C#. Below you can download the sample code and read Christopher's article.

MSI Tip: Authoring an ICE using C# / DTF in Christopher Painter's blog

DTF_ICE.zipWritten by Christopher Painter
File size: 13.341 bytes Last update: 2009-02-16 (second release: 13:30 GMT)

Installing Services with Visual Studio

This article describes how to install Services when you use a Visual Studio Setup & Deployment project and a tool that you can use to modify Windows Installer setup files, MSI files, to install Services using the built-in features of Windows Installer.

SvcInstall.zipWritten by Phil Wilson
File size: 367.281 bytes Last update: 2007-02-28

1 This Installation Cannot Be Run By Directly Launching The Msi Package

Setup Squeezer

Setup Squeezer is a commercial tool from InstallAware Software Corporation

Description from the company:
Setup Squeezer is an application to recompress Windows Installer (MSI) and InstallShield (EXE) setups. With LZMA compression technology, and BCJ2 compression pre-processing, Setup Squeezer is able to make already-compressed setups smaller by an additional 15% to 50%. Setup Squeezer improves on existing setup-compression tools by offering a very simple wizard interface that helps you intelligently unpack and repackage existing setups, with runtime support for all versions of Windows from Windows 95 to Windows Vista, using an extraction process that the user can abort, while running with as little as 32MB of physical memory. Previously compressed packages and nested setups are recursively scanned, opened, and automatically recompressed. Setup Squeezer is available in two versions: Setup Squeezer for Windows Installer and Setup Squeezer for InstallShield.

Website: www.installaware.com

Skinning Dialogs in MSI Files

SkinCrafter Installer is a free tool that can put a skin on the dialogs in your Windows Installer setup. Simply feed it any .msi file and it will create a skinned version fo it that is packaged as a single exe file. For this screenshot I created a default Basic MSI setup using InstallShield 11 and applied the Christmas skin. As you can see non-rectangular shapes are also supported. Several skins are available for download, or you can create your own. However I found that some dialogs don't look perfectly good when skinned, I had problems with the SetupType dialog.

Dissecting a Windows Installer Setup

This article in Aaron Stebner's WebBlog describes step by step how to unpack, monitor and analyze the installer for the .NET Framework 1.1 runtime which is internally based on MSI.

Programming Billboards and Progress Bars

This techincal paper written by Alamgir Farouk explains how billboards (on the progress dialog, see screenshot) work in Windows Installer. It also describes how a custom action can display text and drive the progress bar. A sample setup and source code (C++ for the custom action, InstallShield Developer 7 project for the setup) is included.

This sample is now part of the 'msiprogramming' project on SourceForge.net

Case Studies and Sample Installations

See also: Deployable Packages (wrappers and repackaged legacy applications)

Deploying Microsoft Visual Studio .NET 2003 by Using Active Directory

This white paper describes the procedures for using the Group Policy feature of Active Directory to deploy the Visual Studio .NET 2003 setup package across a network.

Create Folders Upon User Selection

This IPWI project is a sample install that will create three empty folders on the localsystem based on the selection by the end user through the UI. The project file was createdwith InstallShield Professional - Windows Installer Edition 2.03.

EmptyFolder.zipWritten by Thane Gebbie
File size: 118.792 bytes Last update: 2001-06-29

C# Wrappers for the Windows Installer API

These are C# files that wrap the Windows Installer APIs exported by MSI.DLL. Different solutions are available. For download and documentation please visit the web sites.

MSI.Interop by Rich Thomson

Rich Thomson, a Microsoft MVP for Windows Installer, wrote a C# wrapper for the entire MSI API that organizes things in terms of IDisposable and classes similar to the automation interface objects for scripting. The assembly is LGPL source and can be downloaded from SourceForge.

What makes this wrapper different from the other wrappers:

  • its more .NET in flavor that the other wrappers which just expose functions.
  • the use of IDisposable means you can release the unmanaged MSIHANDLEs with the 'using' statement in C# (or the methods on IDisposable) which is more natural to .NET programmers
  • the introduction of classes organizes the API into more meaningful units than just a large collection of global functions

Setting the UI handler from C# is not working right in version 1.1, but Rich is working to add this functionality in the near term.

Ian Mariano at The Code Project

Joe Mele at Youseful Software

Windows Installer Search Engine

Joe Mele of Youseful Software has created a Google search form that only lists Windows Installer related results.

Application Support for Install On Demand

This file contains Visual Basic source code to support on-demand install in anapplication. The InstallFeature subroutine checks to see whether a specified feature isinstalled, and installs it if necessary. You can also supply it with a list of components,and then it will check to see whether each component is installed.

InstallFeature.zipWrittenby Bob Snyder
File size: 3.935 bytes Last update: 2000-03-27

Capture Self-Registration Information

RegSpy

This program (formerly known as RegIt) captures COM registration entries for DLLs, OCXsand EXE COM servers. In general, it works by using the RegOverridePredefKey on Windows2000 to redirect registry entries to another registry area.

  1. It takes the path to the Dll as a command line argument.
  2. Loads the Dll and looks for DllRegisterServer to call.
  3. Redirects HKEY_CLASSES_ROOT and HKEY_LOCAL_MACHINE registry entries to
    HKEY_CURRENT_USERSoftwareUnisysRegistry<dllname>HKCR and
    HKEY_CURRENT_USERSoftwareUnisysRegistry<dllname>HKLM.

In contrast to other registry monitor solutions it doesn't need any drivers. Sourcecode is included in the package.
RegSpy can output a .reg file for import in MSI authoring tools. Source code requires Visual Studio .NET 2003.

RegSpy2.zipWritten by Phil Wilson and Justin Buist
File size: 75.964 bytes Last update: 2003-10-28

Original version (source code works with Visual Studio 6.0):
RegSpy.zipWritten by Phil Wilson
File size: 19.488 bytes Last update: 2001-10-26

Self-Registration Monitor

This a command line tool that allows monitoring of self-registration activity; itsoutput is a .REG file of the activity that took place. There is a switch (/i) that you canuse to ignore any HKEY_CLASSES_ROOT activity, which is useful if your COM server registersother settings besides the COM information. The program works for both for inproc servers(.dll, .ocx) and for local servers (.exe).

The program only runs on NT/2000. It needs the Regsys.sys driver that you can downloadfrom the SysInternalsweb site. (The authors of the driver do not allow to include it in the package.) It supports version 4.32 of RegMon. Package includes sourcecode.

srm13.zipWritten by Friedrich Brunzema
File size: 44.349 bytes Last update: 2001-02-28

Installing the .NET Compact Framework Using MSI

Microsoft has published a sample called '.NET Compact Framework Sample: MSI that Detects Framework Version'. This sample describes how one might create an MSI package which can detect the presence of the Microsoft .NET Compact Framework on a device, determine if the device needs to be upgraded with a newer version, and install or upgrade the Framework along with an application.
There are some mechanisms available now which can reduce the work involved. For instance, developers may include the .NET Compact Framework web redistributable inside their own MSI and simply invoke it. Since this may not be sufficient for many, then a larger effort may be required.

Download the Sample from Microsoft

Using the LockPermissions Table on Localized Windows Versions

Setting user rights on files, folders and registry keys using the LockPermissions tablerequires the localized name of a user. Starting with MSI 2.0 you can use'Everyone' and 'Administrator' without localization, but other useraccounts like 'Power User' or 'Authenticated User' still need to belocalized. Here is a merge module with a custom action that retrieves a multitude of'well-known SIDs' and stores their localized user names in properties (e.g.SID_BUILTIN_POWER_USERS) for use in the LockPermissins table.

SIDLookup.zipWritten by Andreas Magnusson
File size: 72.052 bytes Last update: 2003-09-07

Handling MSI Source Pointers

Windows Installer's 'resilience' features and 'run from source'require pointers to the location of the original MSI installation file. These pointers arein the local MSI database which is actually part of the registry. Sometimes you want tomodify these pointers or add alternate source locations. This article and it's accompaniedscripts show how to list the source pointers of all registered packages, and how to modifythem.

msisources.exeWritten by Darwin Sanoy of Desktop Engineer's JunkDrawer
File size: 58.409 bytes Last update: 2001-02-12

List Contents of InstallShield Project

Output as Excel Sheet

This VBScript is similar to Robert Dickau's HTML tool (below), but was rewritten it so it adds the component list in an Excel sheet instead of an HTML file or a delimited text file. Microsoft Excel must be installed on the system for the script to work.

The code can be incorporated in an automatic build process and hence allow a 'component history' to be saved for your setup.

ManifestExcel.zipWritten by Stein Åsmul
File size: 569.659 bytes Last update: 2003-11-18

Output as HTML Page

This HTML page and its embedded VB script code creates a manifest of all features andfiles that are in the specified project, with the source and destination of the files.Before you use it, open the HTML in a text editor and change the g_Project constant to thepath of your .ism file.

This script uses the automation interface in IPWI. In your Internet Explorer securitysettings, 'unsafe ActiveX controls' must be enabled.

The file is optimized for IPWI 2.0 or above. Code sectionsfor ISWI 1.5x are included in comments.

Manifest.zipWritten by RobertM. Dickau
File size: 1.215 bytes Last update: 2000-11-15

Output as Delimited Text File

This VB program is an adaptation of Robert Dickau's manifest creation utility. Itwrites out the information to a semicolon delimited text file, with source path enclosedin quotes. It also includes the listing of which sub-feature a specific component isincluded in. The listings are grouped by top-level feature. The output file which resultsis the project file's name with _manifest.txt appended to the end. Includes a basic UI forbrowsing to the ism file. The tool was created with VB 6.0.

ManifestApp.zipWritten by Brian Fealy
File size: 8.215 bytes Last update: 2002-07-31

MSI Database Viewers, Editors, Validators, Extractor

See also: Windows Installer Authoring Tools

7-Zip

7-Zip is an open source compression tool. In addition to IP and other compression formats, it can also extract embedded files from an .msi. So if you have a single-MSI-package you can sue 7-Zip to extract the application files from the embedded CAB. Note however that 7-Zip cannot insert files in such a package, it can only extract.
Thanks to Denis St-Pierre for this tip

'Less MSIérables' MSI File Extraction & Viewer Utility

Scott Willeke's 'Less MSIérables' utility (aka 'Lessmsi') lists the files that are included in an .msi package and can extract them maintaining their target directory structure just as if they were installed from the msi setup.

Scott Willeke's Blog (posts tagged with ' lessmsi')

MSIDIFF

MSIDIFF can dump complete or compare two Windows Installer databases as well as patches and transforms, it installs shell extensions (right click on file) to simplify this but it can also be used from the command line.
The output can also be fed back into the MAKEMSI tool which was also written by Dennis Bareis, allowing you to automate and changes you may have made using a table editing tool such as Orca.

Generate Report from Administrative Install

This script was made for people who test the installs and want to know what was exactly in the install without having to install the setup.exe and then trace through the folders and find the files of interest and document the version of the file and mod date. So, this script will do a prompt to ask where the install is, do an administrative install, gather all the information off all the files in that directory where you did the admin install and put it into a nice xls worksheet for you.

InstallFileVersion.zipWritten by Chris Cannata
File size: 1.844 bytes Last update: 2009-05-14

Generate Report from MSI File

This VBscript file allows a user to type in an MSI path, a report directory, and a report name. The VBscript file then generates a tab-delimited BAK file which exports summary data and a list of files, with their related component GUIDs, version and conditions) from the MSI. This list can, for instance, be imported into Excel.

MsiReportGenerator.zipWritten by David.Ashelman
File size: 1.948 bytes Last update: 2003-10-20

MSI Package Cleaner

This is a commercial tool

PackageCleaner provides a solution to determine which elements belong in your package and which do not, what may cause problems and what may safely be left in. Including files in your package that do not belong, results in a 'dirty package' which may become the source for a number of deployment and operational problems. In addition, PackageCleaner also scans for hundreds of known Spyware files.

Rate Compexity of MSI Packages

This tool analyzes a MSI file, counting and weighting table entries. The result is anumerical value that you can use to compare the complexity of msi packages. For instance,the complexity value for Orca.msi is 256, the value for the InstallShield Developer setupis 17596, and the value for Office 2000 Professional is 32062.

PkgRatio.zipWritten by Stefan Hotan
File size: 1.828.642 bytes Last update: 2004-09-13

Remove Dialog Branding

This VB Script can be used to post process a MSI file to delete the word InstallShieldfrom the lower left area of the built in dialogs in InstallShield Windows InstallerEdition, InstallShield Express 3 and InstallShield Developer 7 (Basic MSI projects only).It was tested with IPWI 2.03, ISX 3.03 and ISD 7.00. For Standard projects ISD7 stores thedialogs in a DLL, so this tool doesn't work for that type of project.
To remove the branding run the VB script and pass the full path to the MSI file on thecommand line, or simply drag the MSI file and drop it on the VBS file. It will delete theembossed word InstallShield and extend the line above the buttons to the left edge. Youhave to re-run this tool after you rebuilt the MSI file.

Note: InstallShield recommends that you do not remove the branding, asdocumented in knowledge base article Q105444.

RemoveBranding.zipWrittenby Pascal Bourque, modified by Stefan Krueger
File size: 616 bytes Last update: 2001-09-26

MSI to XML and XML to MSI Converters

The MSI to XML converter reads the contents of a .msi file and generates a XML basedtext document from it. This comes in handy for documentation, to compare several versionsof a setup package, for version control systems etc. Binary streams are either embedded anMIME coded text, or linked as external files. The tool also includes a style sheet todisplay the XML file as web page in Internet Explorer 5.

The XML to MSI convert does the opposite and generates an MSI file from a XML document.

The converters are available free of charge, including the source code (GNU GeneralPublic License).

msi2xml home pageCheck theweb site frequently, not all updates will be announced on InstallSite

Orca

Orca comes with the Platform SDK, but must be installed separately. After you installedthe SDK, you'll find a file Orca.msi in directory <ProgramFilesFolder>MicrosoftPlatform SDKBin.

Patch Viewer

This executable lists the contents of a patch (.msp) file that's dropped on it. Itneeds a copy of Schema.msi (from the Platform SDK) in its directory. Note that this toolcan't display any transform information that's not in Schema.msi (e.g. custom tables).

MspView.zipWritten by RobertM. Dickau
File size: 8.959 bytes Last update: 2020-04-14

Transform Viewer

This executable lists the contents of a transform that's dropped on it. It needs a copyof Schema.msi (from the Platform SDK) in its directory. Note that this tool can't displayany transform information that's not in Schema.msi (e.g. custom tables).

MstView.zipWritten by RobertM. Dickau
File size: 4.965 bytes Last update: 2002-04-14

MSI Helper Tools Collection

This package includes the following tools:

  • AaBuildPackageReport - build HTML report for MSI package
  • QueryBuilder - type qour query and view result of it execute
  • StreamExtractor - extract binary resoursec from package
  • DialogManager - copy selected dialog from selected package to another

The tools require require VB runtime files and VC + MFC runtime files.

SomeMsiHelperTools.zipWritten by Evgeny Ushkalov
File size: 39.716 bytes Last update: 2004-06-09

Debugging Custom Actions

There are several methods you can use to debug a DLL or EXE custom action in WindowsInstaller.

Using the MsiBreak Environment Variable

1 This Installation Cannot Be Run By Directly Launching The Msi Package

This is the 'official' method suggested by Microsoft: To enable the debuggingof a custom action, set the environment variable MsiBreak to the name of the designatedaction, which is case-sensitive, the same as it appears in the CustomAction and sequencetables. Debugging custom actions that are executing in the service requires the debuggerto be attached to the service process (MsiExec.exe) ahead of time. For more details seetopic 'Debugging Custom Actions' in the Windows Installer SDK Help (msi.chm). be sure to register the MsiBreak environment-variable as a SYSTEM-environment-variable. On pre-2.0 Windows Installer it doesn't work when it is defined as a USER-variable. A reboot may be necessary to make sure all programs use the changed system environment.

Calling DebugBreak in the Custom Action Code

You can insert a DebugBreak() call at the beginning of your custom action code toinvoke the debugger. For detailed instructions see InstallShield's knowledge base article Q103721.

Unforturnately, this doesn't work for custom actions called in the execute sequence onWinNT/2000 since a different process will be launched and the operating system thinks itis an unhandled exception.

Display Message Box and attach Debugger

Windows Installer expert Stein Aasmul's recommendation to debug DLL custom actions:

I find that the simplest approach is to show a message box from within the function you want to debug, and then just attach the debugger to the message box that pops up. Essentially just attaching to msiexec.exe - either the user context one or the system context one depending on how your custom action is sequenced.

To further speed things up I usually define a dialog show macro that is only enabled in debug builds and also sometimes set a debug level in the registry to determine how many dialogs to show. I.e DebugLevel = 4 shows all debug dialogs, DebugLevel = 1 shows only one dialog upon entry into the function etc...

Custom Action Debugging Support in IPWI 2.x

This article describes an undocumented and unsupported feature of InstallShieldProfessional - Windows Installer Edition 2.x

By setting a special registry key, you can instruct IPWI to invoke the Visual Studiodebugger (or whatever development tool you use to create the DLL or EXE). This method hasseveral advantages over the above mentioned ways:

  • You can debug multiple custom actions in one session. MsiBreak can only be set for one CA - if you want to debug another, you have to reset the environment variable.
  • With MsiBreak you have to launch Visual Studio manually and then attach to the msiexec process. IPWI automatically takes care of this.
  • In contrast to DebugBreak this method works for custom actions in both UI and Execute sequences.

Please read the following document for details about using the IPWI method. Note thatthis method is not available in ISWI version 1.x.

CADebuggingIPWI.htmPleasesend your feedback to mingbiaof@installshield.com
Last update: 2000-10-31

Developing Multilingual Installation Programs Using ISWI

This presentation from the 16thInternational Unicode conference (held March 27-30, 2000) explains how to create andmanage setups for applications that are available in several languages, or supportmultiple langanguages. It explains how to use the localization and language filteringfeatures in InstallShield for Windows Installer.

The Powerpoint slides contain detailed speaker notes, which may not be visible if youview the presentation via your browser. Therefore you should download the .ppt file andprint it, choosing 'Notes pages' as what to print, and checking 'Pure blackand white' as a print option.

multilingual.zipWrittenby David L. Cole
File size: 387.476 bytes Last update: 2000-06-08

Fix Square Brackets in WfWI

This utility (written in VB Script) analyses Wise for Windows Installer packages,checks for Registry keys which contain square brackets ([]) which are to be ignored in bythe installer and converts them to [[] and []]. This is done by checking against theProperty table. This script fails if the registry table already contains lines like [[]or []]

WfWIFixRegistryKeys.zipWritten by John Ridge
File size: 2.398 bytes Last update: 2000-11-27

Hide 'Advertise' Option on UnsupportedPlatforms

Only Windows 2000, Windows 98 and systems running Internet Explorer 4.01 with desktopupdate support advertised shortcuts. To suppress the advertise option in the featureselection tree dialog on systems that don't support advertising, the 'no unsupportedadvertise' attribute has to be set for each feature. In IPWI 2.0 you can set thisoption in the Features view. However ISWI 1.x doesn't expose this attribute, so if you areusing this version here is a tool that will set it on all features in a .msi file.

MsiNoUnsupportedAdvertise.zipWritten by Robert M. Dickau
File size: 9.708 bytes Last update: 2000-06-06

Launchers and Runtime Installers

dotNetInstaller: setup bootstrapper for Windows

dotNetInstaller is a general-purpose setup bootstrapper for Microsoft Windows. dotNetInstaller enables the developer to define the application prerequisites and install the correct version(s) of these components in a predictable order based on the processor architecture, user operating system type and language, allow the user to download these components from the web, install these components directly from a single packaged setup, local media or both. dotNetInstaller is very feature rich and runs on all known Windows operating systems with a very tiny footprint.

Microsoft Component Installer Software Development Kit

Microsoft Component Installer Software Development Kit helps you deliver the needed Windows component to your customer in order to run your application. The SDK provides support for installing MDAC, DirectX, .NET Framework, Windows Installer Runtime, in various versions and service packs. The resulting user experience is a small application they can download and run (or run from a CD). It provides the user with a simple wizard user interface that has details on the components that are needed and on the progress of the installation. The customer experience is already localized for over 20 Windows languages and will auto-detect the system locale at launch and will adjust its language as appropriate. After all prerequisites have been successfully installed the tool can execute a custom command (via ShellExecute), e.g. to launch your main setup or to navigate to a wen site. The tool handles reboots and also has a silent mode.

Bootstrapper for MSI/.NET/Internet Explorer/MDAC

This is an enhanced version of the bootstrapper that's included in Visual Studio 2003. It can install MSI 2.0, .NET Framework 1.0 or 1.1, Internet Explorer 6.01, and MSDC 2.7. Finally it will launch your .msi setup. Source code is included in case you need to make adjustments.

Install MSI 2.0 Runtime with IPWI

The setup.exe bootstrapper originally included in InstallShield Professional - WindowsInstaller Edition 2 cannot install version 2.0 of the Windows Installer runtime files onWindows 2000. Here is a setup.exe that can be used as a replacement. It supports all therelevant functionality of InstallShield's setup.exe, including multi language setups,fixes a bug, can suppress the reboot while installing MSI 2.0, and works directly with thesetup.ini created by IPWI. The readme file in the package includes detailed instructions. It upports downloading any version of MSI from the web (via HTTP, with proxy support), so you need not include the MSI redistributables with your package.
This tool has not yet been tested in all possible configurations and environments, so useat your own risk and please report any issues.

IPWI_MSI20.zipWritten by Steve Moss
File size: 253.466 bytes Last update: 2001-11-27

InstallShield has also published a replacement for the setup.exe in IPWI 2.03 toinstall MSI 2.0. It is available from knowledge base article Q105501.

VSSetup Launcher for Windows Installer

VSSetup is a powerful program to launch installations made with Windows Installer. Itinstalls Windows Installer if it is not installed, and can connect to a download URL ordisplay a customizable message if the runtime installer is not included. It also checks ifa previous version of the product is already installed and then makes an upgrade instead.VSSetup can install the MSI 2.0 runtime.

Download VSSetup from the VingaSystem AB web site

Autorun Program for MSI Packages

This is another launcher program for MSI setups. It uses autorun.inf to store the nameof the msi file to launch. In contrast to other similar programs that run msiexec thislauncher uses MSI API calls to execute the installation. It will not bootstrapthe Windows Installer runtime files.

Source code and usage instructions are included in the package.

msiarun.zipWritten by Heath Stewart
File size: 28.594 bytes Last update: 2002-01-11

Setup Launcher from Windows Installer SDK

The Windows Installer SDK 2.0 comes with a web-enabled Setup.exe bootstrapper forinternet downloading. This bootstrapper can also be used for non web install packages aswell. To do this, you just need to omit the ISETUPPROPNAME_BASEURL property when settingthe properties through the msistuff.exe tool. If no value is present for this property,the location of Setup.exe defaults to removable media. This will allow the bootstrapper tobe used on floppy, CD, network location, or whatever else you wish.
The following is an example of a command line that will configure the bootstrapper forremovable media:
MsiStuff setup.exe /d MySetup.msi /n MySetup /v 200 /a Ansi/Instmsi.exe /wUnicode/Instmsi.exe

Written by Tim Byng
Last update: 2001-09-19

Silent Install of Windows Installer Runtime Engine

To install the Windows Installer runtime silently, use the following command line:

(instmsiw.exe is the file name of the self extracting engine installer - you may haveto replace it with the actual file name depending on target platform)

Installing MDAC and DCOM

Micosoft has not yet published merge modules that install MDAC and DCOM. They areworking on a merge module for MDAC 2.7 which is currently in beta test. It is a wrapperfor mdac_typ.exe and is expected to be available shortly after Windows XP has beenreleased to manufacturing. For the time being you have several options to install MDAC andDCOM with your setup:

Wrapper Exe

Microsoft has created a wrapper exe that will first install MDAC and DCOM, and thenlaunch your msi setup. This is documented in Microsoft Knowledge Base article Q257604.Here is an improved version of this wrapper: it supports multiple languages of MDAC (toinstall the appropriate language for your operating system) and also checks the installedMDAC version and will install MDAC if the included version is newer.

rdbwrap.zipWritten by Roel de Bruyn
File size: 84.856 bytes Last update: 2001-04-03

Launch the MDAC and DCOM Installers from your Setup

If you prefer to integrate the MDAC and DCOM installation to your msi setup, thisdocument describes the required steps. It article was written with InstallShield forWindows Installer in mind but also works for InstallShield Developer 7. The concepts described apply to other authoring tools as well,however the steps will be different.

mdac_dcom.htmWrittenby Pieter van Kampen, updated by Astrid Broeckerand Stefan Krueger
Last update: 2002-01-07

Use Merge Modules from Tool Vendors

Wise and InstallShield have created merge modules that install MDAC and DCOM. They areshipped with their respective authoring tools.

Customizing MSDE 2000 Installation

1 This Installation Cannot Be Run By Directly Launching The Msi Package

Setting the Instance Name and Other Parameters with MSDE Merge Modules

If you want to install two applications that both use the MSDE 2000 merge modules, i.e.you want to have two instances of MSDE, you must set the InstanceName to a unique number.When installing MSDE with Microsoft's setup.exe this can be specified in the setup.inifile. However if you are using the merge modules, you have to set the propertySqlInstanceName, which can be done in a type 51 custom action. Add this custom action atthe very beginning of the InstallExecute sequence. You can set other properties as well tocustomize the MSDE installation. It is important to place the type 51 custom action at thebeginning of the execute sequence. Placing it in the user interface sequence, or in theexecute sequence after CostInitialize, will often fail. The following table shows whichproperties relate to the settings documented for setup.ini:

Setup.ini parameterProperty name
TARGETDIRSqlProgramDir
DATADIRSqlDataDir
INSTANCENAMESqlInstanceName
COLLATIONSqlCollation
CALLBACKSqlCallback
SECURITYMODESqlSecurityMode
UPGRADESqlUpgrade
UPGRADEUSERSqlUpgradeUser

Note that the parameters SAPASSWORD and USEDEFAULTSAPWD that are mentioned in thedocumentation are actually ignored (they have been removed because of security issues).Instead you can set SECURITYMODE=SQL to have the installed instance configured to use SQLServer Authentication with a null sa password. This is documented in the readme.txt file.

Sample for setting the security mode: Create a custom action with the followingsettings

Name: SetSecurityMode
Type: 51
Source: SqlSecurityMode
Target: SQL

Note that this is only necessary on Windows NT/2000. On Windows 9x this security modewill always be used.

For additional information see Microsoft Knowledge Base article Q281983.

Written by Stefan Krueger based oninformation from James Hancock and Paul Vink
Last update: 2001-08-24

Changing the Default Login Authentication Mode

While installing SQL Server 2000 Desktop Engine using the Windows Installer MergeModules you can change the default login authentication mode from Windows NT to SQL. Thereis an undocumented property SECURITYMODE that you can set to 'SQL'.

Another way to change the security mode after installation is to stop SQL Server andset the following registry key
HKLMSoftwareMicrosoftMSSqlserverMSSqlServerLoginMode
to 0 for Mixed Mode or 1 for integrated. (Integrated is the default setup for the SQLServer 2000 Data Engine.)

For additional information see Microsoft Knowledge Base article Q285097.

Written by Stefan Krueger
Last update: 2001-08-24

Integrate InstallSite in the InstallShield IDE

The InstallShield development environment uses a lot of HTML. That brought up the idea to directly access the web from the InstallShield IDE. This package will add a 'InstallSite Today' item to the IDE that includes latest news and links to the most important places on the web. Thus you can check the InstallSite bugs lists, participate in the discussion forum, access InstallShield's knowledge base or query Microsoft's DLL Database from within the IDE (see screenshots).
This extension was developed for the English editions of InstallShield Developer 7.03 and 7.04, InstallShield Windows Installer 2.03 and InstallShield AdminStudio 3.01. It will not work with InstallShield X.
Use this tool on your own risk, and be sure to send any bug reports or suggestions to the author.

InstallSiteToday.zipWritten by Stefan Krueger
File size: 16.235 bytes Last update: 2002-07-11

Deutsche Ausgabe

Für die German Edition von InstallShield Developer 7.03 verwenden Sie bitte diese Version:

InstallSiteHeute.zipWritten by Stefan Krueger
File size: 5.115 bytes Last update: 2002-07-07

Updates and Patches

This paragraph can now be found on a separate page.

Windows Installer Terminology for InstallShield ProfessionalUsers

ISWI uses several terms that you may know from InstallShield Professional 5/6, but witha different meaning. The following table cross-references and explains such words to avoidconfusion for users migrating from IS Pro to ISWI. It is not intended as a completeglossary for Windows Installer.

Windows InstallerInstallShield ProfessionalExplanation of Windows Installer Term
FeatureComponentUser selectable item in the setup structure. Can have sub-features.
ComponentFile GroupContains the application files, shortcuts and registry entries. Cannot have sub-components. All files in a component are copied to the same destination directory.
INSTALLDIRTARGETDIRDestination directory for the application files, typically user selectable. Some components may have other destination settings, e.g. the common files folder.
TARGETDIRIn administrative install: the network location where the setup disk images are copied to.
In InstallScript custom actions: identical to INSTALLDIR (i.e. TARGETDIR is initialized to the value of INSTALLDIR, and changes to TARGETDIR are reflected in INSTALLDIR.

Obsolete tools that have been removed from InstallSite

  • Windows Installer Directory Cleaner is no longer available. Please use MsiZap with the G switch instead.
  • MSI Package Validator is no longer available. Please use MSIVAL2 from the MSI SDK instead.
  • C# Wrapper for the MSI API from Youseful Software is no longer available. Please use one of the other wrappers instead.
  • MSI Patch Builder is no longer available.
  • Neat Install is no longer available.
  • Windows Installer Search Engine by Youseful Software is no longer available.
  • SuperOrca is no longer available. You can use InstEd instead.
  • MSM to MSI Converter is no longer available.
NewsDiscussionsWindows InstallerRelated ToolsMore HelpInstallScriptAbout InstallSiteShopSite Search
NeuigkeitenDiskussionsgruppenWindows InstallerMSI FAQArtikelShopSuche

Copyright © by InstallSite Stefan Krueger. All rights reserved. Legal information.
Impressum/ImprintDatenschutzerklärung/Privacy Policy
By using this site you agree to the license agreement. Webmaster contact