Archive: LogSet and the uninstaller


LogSet and the uninstaller
In my uninstall section, I am using LogSet/LogText to write messages to the install.log file. It works perfectly if I run the uninstaller manually or through add/remove programs.

However, in my install section I run my uninstaller passing /S and _? and this is where LogSet and LogText do not work - the uninstaller does not write anything to install.log.

I tried setting an alternative OUTDIR using SetOutPath thinking that it was trying to write to a file that was already opened for writing, but no dice.

I read through the documentation, and the only relevant option I could see was SilentUninstall, but the silentlog option isn't available for the uninstaller (not even sure if that would accomplish what I am trying to do).

It could also be that install.log is opened for writing in the install section, and trying to open it again in the uninstall section is causing problems. Or logging does not work in silent mode.

Anyone have any experience with this?


Where have you put LogSet on? If it's in a page callback then you need to move it because obviously they don't get called in a silent (un)installer.

Stu


LogSet is in the Uninstall Section and not in any callback.


I put it in the Uninstall section, so it must be getting called.


That is odd. I will have a look.

Stu