Archive: Detailprint stops working after a function call


Detailprint stops working after a function call
In my installer I have this:

${Locate} $UNINSTDIR "/L=F /M=*.msi" "UninstallJoakim"

If the UninstallJoakim callback function gets called (in case there is an .msi file in this particular dir) all subsequent Detailprint commands don't output anything in the details view of the installer. Everything before the call gets printed, and if this func is not called, all is printed.

Any ideas?

Thanks in advance,
-Snorri


Pretty sure this was answered before - but search is being fruitless for a change*.

The Locate macro temporarily (while it runs) disables the detailprint.. so you have to temporarily re-enable it if you want to use it in your callback. See:
http://nsis.sourceforge.net/Docs/Cha...rint#4.9.14.14

* Edit: well..
site:forums.winamp.com locate DetailPrint SetDetailsPrint
..in a search engine will do.. but you have to know about SetDetailsPrint first as wtihout that keyword the results are buried ;)


Thank you very much Animaether, this did the trick.

Believe me, I googled and searched this forum for many hours before posting. I was unaware of SetDetailsPrint.

Best regards,
-Snorri