Creating log file for uninstal!!!
0 Comments
[ + ] Show comments
Answers (9)
Please log in to answer
Posted by:
anonymous_9363
16 years ago
Posted by:
vijayakumar
16 years ago
working fine but log file is not getting created
Posted by:
vijayakumar
16 years ago
Posted by:
anonymous_9363
16 years ago
ORIGINAL: vijayakumarThe logging policy has nothing to with Group Policy deployment: it is a *machine* policy. Also, you're now saying that you want to log the install not the uninstall.
but since the application is going to be installed independently in different user's machine(not by Group policy), i believe it is not possible.
To add to my above post, I need to install my application in both XP and Vista, so i believe MsiLogging property would not help me.
And why do you think adding Vista to the mix would mean that logging wouldn't work? Windows Installer is the same on both platforms (save for the Vista engine being v4, IIRC)
Posted by:
vijayakumar
16 years ago
has nothing to
Posted by:
anonymous_9363
16 years ago
Who said anything about a property? Let me make this simple. Take this:
- Paste it into a file and save it as a .REG file
- Double-click that .REG file on the target machine
- Clear all files from %TEMP%
- Run the uninstall
- Use the DOS FIND command to locate which log file is connected with the uninstall (MSI logging logs ALL MSI activity, including advertisements, so they'll probably be more than one log file...):
. FIND /C /I "name_of_your_MSI" MSI*.LOG
- Remember to disable the policy when you're done, by setting the 'Logging' value to an empty string, or removing the registry entry altogether.
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer]
"Logging"="voicewarmup"
- Paste it into a file and save it as a .REG file
- Double-click that .REG file on the target machine
- Clear all files from %TEMP%
- Run the uninstall
- Use the DOS FIND command to locate which log file is connected with the uninstall (MSI logging logs ALL MSI activity, including advertisements, so they'll probably be more than one log file...):
. FIND /C /I "name_of_your_MSI" MSI*.LOG
- Remember to disable the policy when you're done, by setting the 'Logging' value to an empty string, or removing the registry entry altogether.
Posted by:
vijayakumar
16 years ago
Posted by:
anonymous_9363
16 years ago
Finally...
There is no built-in mechanism to do what you want. The only way I can think of achieving what you want is to create a file and registry snapshot before the uninstall starts then another on completion and then create a difference report. You would either need to build such a snapshot tool from scratch or license one from another vendor.
The lightweight snapshot tool I use, the Ziff-Davis utility In Control *used to* be bundled with Delphi source code which you may be able to adapt for your own purposes. I'm not familiar with the licensing of that code, however.
BTW, if your package is destined to be used outside of your company, I'd advise you to avoid using the root of the C: drive for logs. Apart from any other consideration, users are unlikely to have write access to that area.
There is no built-in mechanism to do what you want. The only way I can think of achieving what you want is to create a file and registry snapshot before the uninstall starts then another on completion and then create a difference report. You would either need to build such a snapshot tool from scratch or license one from another vendor.
The lightweight snapshot tool I use, the Ziff-Davis utility In Control *used to* be bundled with Delphi source code which you may be able to adapt for your own purposes. I'm not familiar with the licensing of that code, however.
BTW, if your package is destined to be used outside of your company, I'd advise you to avoid using the root of the C: drive for logs. Apart from any other consideration, users are unlikely to have write access to that area.
Posted by:
vijayakumar
16 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.