NSIS_CONFIG_LOG how and where to define?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • micahel
    Junior Member
    • Aug 2003
    • 8

    NSIS_CONFIG_LOG how and where to define?

    Hi,

    I have another question regarding the logging. The docs say:

    4.9.12.1 LogSet
    on|off
    Sets whether install logging to $INSTDIR\install.log will happen. $INSTDIR must have a value before you call this function or it will not work. Note that NSIS_CONFIG_LOG must be set in the installer configuration (it is not by default) to support this.

    Here my question:
    How can I set the NSIS_CONFIG_LOG ?
    Where shall I set it ? In the script file of MY installer-script or in the config files of NSIS?

    Thanks
    Michael
  • Sunjammer
    Major Dude
    • Jun 2002
    • 559

    #2
    You missed the line after that says "Note that NSIS_CONFIG_LOG must be set in the compile configuration file (config.h) on compile time (it is not by default) to support this. See Compiling NSIS Sources for more information about recompiling NSIS.". So like it says see Compiling NSIS Sources.

    [edit]Actually maybe it's just that the online docs are slightly more recent than your copy[/edit]

    Comment

    • micahel
      Junior Member
      • Aug 2003
      • 8

      #3
      Ah, sorry,

      I read my locally installed Docs which came with the build version NSIS v2.0b3.
      I don't use the sources, so sorry for the confusion and thanks anyway for your help.

      Cheers, Michael

      Comment

      • mdm
        Member
        • Jul 2003
        • 57

        #4
        Wait...I don't get what you've agreed upon. Yes I changed ~NSIS\Source\exehead\config.h (uncommented #define NSIS_CONFIG_LOG). Now I gather that I recompile this source code.

        Could you tell me exactly how to do that; where is the workspace, the .dsw, that I need to recompile. Or maybe I'm wrong on this and if so, can you re-steer me?

        thanks,
        mdm

        Comment

        • Joost Verburg
          NSIS MUI Dev
          • Nov 2001
          • 3717

          #5
          Which compiler do you have?

          Comment

          • mdm
            Member
            • Jul 2003
            • 57

            #6
            Microsoft Visual C++ 6.0

            Comment

            • Joost Verburg
              NSIS MUI Dev
              • Nov 2001
              • 3717

              #7
              That's easy. Just open the project file and choose Batch build from the Build menu.

              Comment

              • mdm
                Member
                • Jul 2003
                • 57

                #8
                thanks, looks like it recompiled. now have to figure out if install.log is a default or do I define it

                mdm

                Comment

                • brodbeck
                  Junior Member
                  • Aug 2003
                  • 2

                  #9
                  Alternative to recompile NSIS

                  Another alternative is to use a function to dump the contents fo log window to a file.

                  See in:

                  the item C.6 Dump Content of Log Window to File.

                  Good Luck

                  Comment

                  • Joost Verburg
                    NSIS MUI Dev
                    • Nov 2001
                    • 3717

                    #10
                    You won't get the same result. With NSIS_CONFIG_LOG you can log a lot more.

                    Comment

                    • mdm
                      Member
                      • Jul 2003
                      • 57

                      #11
                      quite a bit more..I found some root of some mysterious errors in file initialization with it. By the way, what is Call:<int_value> and Jump:<int_value>?

                      mdm

                      Comment

                      • Sunjammer
                        Major Dude
                        • Jun 2002
                        • 559

                        #12
                        Probably (but not definitely) Call is invocation of a function, and Jump is a goto.

                        Comment

                        • mdm
                          Member
                          • Jul 2003
                          • 57

                          #13
                          thanks,
                          mdm

                          Comment


                          • #14
                            where can I download the source code for this?

                            where can I download the source code for this?

                            Comment

                            • Afrow UK
                              Moderator
                              • Nov 2002
                              • 8434

                              #15
                              No need to recompile the source. Download the special build with logging enabled from:


                              -Stu

                              Comment

                              Working...
                              X