Old 2nd June 2010, 14:57   #1
coliveira
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?
coliveira is offline   Reply With Quote
Old 3rd June 2010, 09:18   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
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
Afrow UK is offline   Reply With Quote
Old 3rd June 2010, 14:35   #3
coliveira
Junior Member
 
Join Date: Jan 2010
Posts: 6
LogSet is in the Uninstall Section and not in any callback.
coliveira is offline   Reply With Quote
Old 3rd June 2010, 22:01   #4
coliveira
Junior Member
 
Join Date: Jan 2010
Posts: 6
I put it in the Uninstall section, so it must be getting called.
coliveira is offline   Reply With Quote
Old 3rd June 2010, 23:10   #5
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
That is odd. I will have a look.

Stu
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
logging, logset, silent, uninstaller

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump