MSI tools

The wrapper, tools, and info you need to get games working

MSI tools

PostPosted by justjohnny » Wed Nov 17, 2010 2:54 am

I just installed "Windows SDK for Windows Server 2008 and .NET Framework 3.5" onto a WinXP machine to check to see if there was an updated Orca tool when I noticed other MSI tools in the Bin dir.

Directory: C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin

Filenames:
  • msi.adm
  • MsiCert.exe
  • MsiDb.Exe
  • MsiFiler.Exe
  • MsiInfo.Exe
  • MsiMerg.Exe
  • MsiMsp.Exe
  • MsiStuff.Exe
  • MsiTool.Mak
  • MsiTran.Exe
  • MsiVal2.Msi
  • MsiZap.Exe
  • Orca.Msi
Last edited by justjohnny on Wed Nov 17, 2010 8:20 pm, edited 1 time in total.
justjohnny
 
Posts: 217
Joined: Mon Apr 12, 2010 7:25 am

Re: MSI tools

PostPosted by justjohnny » Wed Nov 17, 2010 2:54 am

MsiCert.exe
C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin>MsiCert.exe
MsiCert V 4.0
Copyright (c) Microsoft Corporation. All Rights Reserved

MsiCert will populate the MsiDigitalSignature and MsiDigitalCertificate tables
for a given Media entry and cabinet


Syntax: msicert -d {database} -m {media entry} -c {cabinet} [-h]
-d: the database to update
-m: the media entry in the Media table representing the cabinet
-c: the digitally signed cabinet
-h: (optional) include the hash of the digital signature
-?: display this help message
-nologo: do not display the logo message

The default behavior is to populate the MsiDigitalSignature
and MsiDigitalCertificate tables with the signer certificate
information from the digitally signed cabinet. The MsiDigitalSignature
and MsiDigitalCertificate tables will be created if necessary.

C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin>
justjohnny
 
Posts: 217
Joined: Mon Apr 12, 2010 7:25 am

Re: MSI tools

PostPosted by justjohnny » Wed Nov 17, 2010 2:55 am

MsiDb.Exe
Image
Image
justjohnny
 
Posts: 217
Joined: Mon Apr 12, 2010 7:25 am

Re: MSI tools

PostPosted by justjohnny » Wed Nov 17, 2010 2:56 am

MsiFiler.Exe
C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin>MsiFiler.Exe
MsiFiler V 4.0
Copyright (c) Microsoft Corporation. All Rights Reserved

Syntax: msifiler.exe -d database.msi [-v] [-h] [-s SOURCEDIR]
-d: the database to update.
-v: verbose mode.
-h: populate MsiFileHash table (and create table if it doesn't exist).
[-s SOURCEDIR]: specifies an alternative directory to find files.
-nologo: do not dispay the logo message.
-?: dispay this help message.


C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin>
justjohnny
 
Posts: 217
Joined: Mon Apr 12, 2010 7:25 am

Re: MSI tools

PostPosted by justjohnny » Wed Nov 17, 2010 2:56 am

MsiInfo.Exe
C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin>MsiInfo.Exe
MsiInfo V 4.0
Copyright (c) Microsoft Corporation. All Rights Reserved

Error 1. ++MsiInfo.exe Command Line Syntax++
MsiInfo.exe {database} --> To Display Summary Info Properties
MsiInfo.exe {database} Options.... --> To Set Summary Info Properties
++MsiInfo.exe Options++
PID_DICTIONARY - /I {value}
PID_CODEPAGE - /C {value}
PID_TITLE - /T {value}
PID_SUBJECT - /J {value}
PID_AUTHOR - /A {value}
PID_KEYWORDS - /K {value}
PID_COMMENTS - /O {value}
PID_TEMPLATE - /P {value}
PID_LASTAUTHOR - /L {value}
PID_REVNUMBER - /V {value}
PID_EDITTIME - /E {value}
PID_LASTPRINTED - /S {value}
PID_CREATE_DTM - /R {value}
PID_LASTSAVE_DTM - /Q {value}
PID_PAGECOUNT - /G {value}
PID_WORDCOUNT - /W {value}
PID_CHARCOUNT - /H {value}
PID_THUMBNAIL - NOT SUPPORTED
PID_APPNAME - /N {value}
PID_SECURITY - /U {value}
Validate String Pool - [/B] /D (use /B to display the string pool)
/? - Displays this help message
/nologo - Do not display the logo message


C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin>
justjohnny
 
Posts: 217
Joined: Mon Apr 12, 2010 7:25 am

Re: MSI tools

PostPosted by justjohnny » Wed Nov 17, 2010 2:57 am

MsiMerg.Exe
C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin>MsiMerg.Exe
MsiInfo V 4.0
Copyright (c) Microsoft Corporation. All Rights Reserved

Error 1.
Msi Merge Tool --- Merge Two Databases

MsiMerg(d).exe {base db} {ref db}
/? Displays this help message
/nologo Do not display the logo message. This should be the last option
.


C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin>
justjohnny
 
Posts: 217
Joined: Mon Apr 12, 2010 7:25 am

Re: MSI tools

PostPosted by justjohnny » Wed Nov 17, 2010 3:00 am

MsiMsp.Exe
C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin>MsiMsp.Exe

MsiMsp V 4.0
Copyright (c) Microsoft Corporation. All Rights Reserved

MsiMsp: Windows Installer patch creation tool.

See msi.chm for help on setting up the Patch Creation Properties (pcp) file.

Options:

-s {pcp} Path to Patch Creation Properties file.
-p {msp} Path to patch package to create.
[-l[p] {log}] Optional. Path to log file.
[-f {temp folder}] Optional. Path to temp folder.
[-k] Optional. Fail if temp folder already exists.
[-d] Optional. Display dialog when patch created successfully.
[-?] Optional. Display this help message.

C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin>
justjohnny
 
Posts: 217
Joined: Mon Apr 12, 2010 7:25 am

Re: MSI tools

PostPosted by justjohnny » Wed Nov 17, 2010 3:01 am

MsiStuff.Exe
C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin>MsiStuff.Exe
Copyright (c) Microsoft Corporation. All rights reserved.

MsiStuff will display or update the resources
in the setup.exe boot strap executable

[MsiStuff Command Line Syntax]
Display Properties->> msistuff setup.exe
Set Properties ->> msistuff setup.exe option {data} ...

[MsiStuff Options -- Multiple specifications are allowed]
BaseURL - /u {value}
Msi - /d {value}
Product Name - /n {value}
Minimum Msi Version - /v {value}
Update URL Location - /i {value}
Windows Installer Update - /w {value}
Patch - /m {value}
Operation - /o {value}
Properties (PROPERTY=VALUE strings) - /p {value}

If an option is specified multiple times, the last one wins

/p must be last on the command line. The remainder of
the command line is considered a part of the {value}
This also means that /p cannot be specified multiple times

C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin>
justjohnny
 
Posts: 217
Joined: Mon Apr 12, 2010 7:25 am

Re: MSI tools

PostPosted by justjohnny » Wed Nov 17, 2010 3:02 am

MsiTran.Exe
C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin>MsiTran.Exe
MsiTran V 4.0
Copyright (c) Microsoft Corporation. All Rights Reserved

Error 1. Msi Transform Tool --- Generate and Apply Transform Files

Options for MsiTran.exe:
-g {base db} {new db} {transform} [{error/validation conditions}] -->Generate
-a {transform} {database} [{error conditions}] -->Apply

Error Conditions:
The following errors may be suppressed when applying a transform.
To suppress an error, include the appropriate character in
{error conditions}. Conditions specified with -g are placed in
the summary information of the transform, but are not used when
applying a transform with -a.

'a': Add existing row.
'b': Delete non-existing row.
'c': Add existing table.
'd': Delete non-existing table.
'e': Modify existing row.
'f': Change codepage.

Validation Conditions:
The following validation conditions may be used to indicate when a
transform may be applied to a package. These conditions may be
specified with -g but not -a.

'g': Check upgrade code.
'l': Check language.
'p': Check platform.
'r': Check product.
's': Check major version only.
't': Check major and minor versions only.
'u': Check major, minor, and update versions.
'v': Applied database version < base database version.
'w': Applied database version <= base database version.
'x': Applied database version = base database version.
'y': Applied database version >= base database version.
'z': Applied database version > base database version.

Generate transform without summary info stream (conditions ignored):
'@': Suppress summary information stream generation.
-? Displays this help message.
-nologo Do not display the logo message.

C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin>
justjohnny
 
Posts: 217
Joined: Mon Apr 12, 2010 7:25 am

Re: MSI tools

PostPosted by justjohnny » Wed Nov 17, 2010 3:20 am

MsiVal2.Msi
Image
Image
Image

C:\Program Files\MsiVal2
msival2.exe
C:\Program Files\MsiVal2>msival2.exe
>> Error: MSI Database not specified.
>> Error: Did not specify evaluation file.
>>> Fatal Error: Cannot recover from previous errors.

Use -? for more information.

C:\Program Files\MsiVal2>msival2.exe -?
Copyright (C) Microsoft Corporation. All rights reserved.
msival2.exe database.msi EvaluationURL/Filename
[-i ICE01:ICE02:ICE03:...] [-l LogFile] [-?] [-f]
i - [optional] specifies exact Internal Consistency Evaluators to run.
Each ICE must be separated by a colon.
l - [optional] specifies log file
? - [optional] displays this help
f - [optional] suppress info messages

WARNING: Be careful not to reverse the order of your database file and your v
alidation file as no direct error message will be given if you do.

C:\Program Files\MsiVal2>
justjohnny
 
Posts: 217
Joined: Mon Apr 12, 2010 7:25 am

Re: MSI tools

PostPosted by justjohnny » Wed Nov 17, 2010 3:21 am

MsiZap.Exe
C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin>MsiZap.Exe
MsiZap V 4.0
Copyright (c) Microsoft Corporation. All Rights Reserved

MSIZAP - Zaps (almost) all traces of Windows Installer data from your machine.

Usage: msizap T[WA!] {product code}
msizap T[WA!] {msi package}
msizap *[WA!] ALLPRODUCTS
msizap PWSA?!

* = remove all Windows Installer folders and regkeys;
adjust shared DLL counts; stop Windows Installer service
T = remove all info for given product code
P = remove In-Progress key
S = remove Rollback Information
A = for any specified removal, just change ACLs to Admin Full Control
W = for all users (by default, only for the current user)
M = remove a managed patch registration info
G = remove orphaned cached Windows Installer data files (for all users)
L = remove corrupted source list information
? = verbose help
! = force 'yes' response to any prompt
/nologo = Do not display the logo message. This should be the last option

CAUTION: Products installed by the Windows Installer may fail to
function after using msizap

NOTE: MsiZap requires admin privileges to run correctly. The W option requires t
hat the profiles for all of the users be loaded.

C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin>
justjohnny
 
Posts: 217
Joined: Mon Apr 12, 2010 7:25 am

Re: MSI tools

PostPosted by justjohnny » Wed Nov 17, 2010 8:33 pm

Orca.Msi
Image
Image
Image
Image
justjohnny
 
Posts: 217
Joined: Mon Apr 12, 2010 7:25 am

Re: MSI tools

PostPosted by justjohnny » Wed Nov 17, 2010 8:45 pm

These are the different versions of Orca and from which SDK(32-bit x86) they were sourced from:
  • Orca Version 3.1.4000.1830 - Windows Server 2003 SP1 Platform SDK
  • Orca Version 3.1.4000.2049 - Windows Server 2003 R2 Platform SDK
  • Orca Version 4.0.5299.0 - Windows Software Development Kit Update for Windows Vista
  • Orca Version 4.0.6001.0 - Windows SDK for Windows Server 2008 and .NET Framework 3.5
  • Orca Version 5.0.7069.0 - Windows SDK for Windows 7 and .NET Framework 3.5 SP1
  • Orca Version 5.0.7693.0 - Windows SDK for Windows 7 and .NET Framework 4

Orca needs to be profiled using Dependency Walker on Win2K to see if anything is missing.

Older SDKs need to be ordered from this website:
http://mssdk.orderport.net/
justjohnny
 
Posts: 217
Joined: Mon Apr 12, 2010 7:25 am


Return to Tools & Info

Who is online

Users browsing this forum: No registered users and 0 guests

cron