![]() |
#1 |
Junior Member
Join Date: Jan 2010
Posts: 6
|
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? |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
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 |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Jan 2010
Posts: 6
|
LogSet is in the Uninstall Section and not in any callback.
|
![]() |
![]() |
![]() |
#4 |
Junior Member
Join Date: Jan 2010
Posts: 6
|
I put it in the Uninstall section, so it must be getting called.
|
![]() |
![]() |
![]() |
#5 |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
That is odd. I will have a look.
Stu |
![]() |
![]() |
![]() |
|
Tags |
logging, logset, silent, uninstaller |
Thread Tools | Search this Thread |
Display Modes | |
|
|