On first glance, it would appear that I could create a CustomAction which
modifies the "UninstallString" and/or "ModifyPath" values under my product's
"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\[ProductCode]" key.
However, testing proves that those registry values are apparently not being
referenced by the 'Add or Remove Programs' applet.
You can do this by running gpedit.msc, and then under Computer
Configuration\Administrative Templates\Windows Components\Windows Installer\
you set the Logging policy to enabled. Enter "iwearucmpvo" without quotes to
log everything.
This creates a log file under Documents And Settings\<user>\Local
Settings\Temp\ with a cryptic name like "msie0ea.log" or similar.
Hope this helps and that I didn't misunderstand your requirements.
/ Rage
Actually, I was referring to products that we create for our customers (so
setting their machine policies isn't viable or desirable.) We'd like to
capture not only a log of the install (easy to do as our bootstrap loader is
the parent process), but also of the uninstall and possibly any maintenance
operations the user performs. That way, if something unexpected happens and
the customer ends up contacting our support, the log file would already be
available for the support person. Plus, if the problem is not reproducible
after having occurred once, the events of the original problem are not
forever lost.
Lon
cheers,
Luke
"Lon Wergin" <qwe...@spammenot.com> wrote in message
news:A3DD42C6-5E72-40AF...@microsoft.com...
I do not know if this will create logs for the current installation though,
but it could be worth a try.
/ Rage
As for changing the group policy via registry change -- if an installation
is taking place the log will not be created. Also if the key is being
written into the local machine policies (HKLM) you'd have to rely on a
deferred action to guarantee permission to create such a key and then you
are out of luck for the first installation.
What most people do is set a default logging level via a bootstrapper
application (not verbose since it slows down the install quite a bit and
makes for massive log files). Those launching msiexec use /L parameter and
those loading msi.dll use MsiEnableLog.
Sincerely,
Adrian Accinelli
"Rage" <Ra...@discussions.microsoft.com> wrote in message
news:C17C4828-8EDA-48B5...@microsoft.com...