Installer

  • Thread starter Thread starter RedLars
  • Start date Start date
R

RedLars

How can I log all actions that a setup.exe performs during
installation? I would like to know which registry settings and files
that are added\modifued\deleted.
 
How can I log all actions that a setup.exe performs during
installation? I would like to know which registry settings and files
that are added\modifued\deleted.

Quick update.

Tried running setup.exe /? but that did not give me any options, just
ran the installer as usual. Was hoping for a /Log option.
 
RedLars said:
How can I log all actions that a setup.exe performs during
installation? I would like to know which registry settings and files
that are added\modifued\deleted.

If an application is installed from an MSI file, using the Windows
Installer, then you can specify logging on the command line; eg:

C:\Foo>msiexec /i Myapp.msi /lvx!* mysetup.log

.... will install "MyApp" and create a detailed log file "mtsetup.log" with
all file and registry operations.

Unfortunately, many applications - including many from Microsoft itself -
are distributed in some form *other* than an MSI file; often a SETUP.EXE
program plus a collection of CAB files. There are several different forms of
SETUP.EXE programs and no real consistency in how they work internally. Some
provide logging facilities, and some don't. When a software vendor creates a
setup.exe using a product like InstallShield, they can elect to enable
logging, but there's no obligation for them to do so (sadly).

As Dylan suggests, you can use RegMon and FileMon, available from the
Microsoft SysInternals website, to collect similar data (albeit, not in
quite as easy to use form as a msiexec log). Process Monitor from the same
site collects both the Registry and File data in a single log, so that's
generally recommended over the 2 separate utilities these days.

Hope it helps,

Andrew
 
As 'Andrew McLaren' writes; you can create a complete log of activity if the
installation file is of a [.msi] file type.

However, as you are wanting to know what changes a file called 'SETUP.EXE'
makes then I would go about it this way: Download a small utility from
Microsoft called 'Process Monitor' and copy the executable to your Windows
directory (or somewhere specified in your %path% environment variable).

Run the program and then run your 'setup.exe' installation file. Within
'Process Monitor's' interface, you will be able to see all computer and
registry activity displayed, including any file copy or file create
operations and any registry keys / values created or changed.

Just make a note of the exact time you initiate the 'setup.exe' file then go
back and find the relevant changes in the output windows of 'Process
Monitor'.

It may be a little too detailed but it is complete.

'Process Monitor' can be obtained at:

http://download.sysinternals.com/Files/ProcessMonitor.zip


==


Cheers, Tim Meddick, Peckham, London. :-)
 
Back
Top