Announcement

Collapse
No announcement yet.

How disable directory field on MUI_PAGE_DIRECTORY?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How disable directory field on MUI_PAGE_DIRECTORY?

    I'm using MUI

    How disable directory field on MUI_PAGE_DIRECTORY?

    Thank you

  • #2
    if i understand you correctly, this makes no sense at all. either leave the directory page or use it as is.
    NSIS IDE for Atom | NSIS for Visual Studio Code | NSIS for Sublime Text | NSIS.docset

    Comment


    • #3
      This has been asked before. Use EnableWindow in the show function.

      Comment


      • #4
        What item_id of directory field?

        Next code not work:

        !define MUI_PAGE_CUSTOMFUNCTION_SHOW MyFuncDir
        !insertmacro MUI_PAGE_DIRECTORY

        Function MyFuncDir
        FindWindow $hwnd "#32770" "" $HWNDPARENT
        GetDlgItem ${TEMP} $hwnd 1202
        EnableWindow ${TEMP} 0
        FunctionEnd

        Thank you

        Comment


        • #5
          1019

          Comment


          • #6
            Thank you very much !!!

            Where I can find all item_id?

            Thank you

            Comment


            • #7
              See resource.h or use a resource hacker to view the dialogs in the Contrib\UIs folder.

              Comment


              • #8
                Thank you Joost Verburg

                All works perfectly

                Comment


                • #9
                  hello, I'm trying to do it to...

                  I do not completely understand what to do, and this code does not work...

                  can you mr anonym please give the complete code working ?

                  Comment


                  • #10
                    code:
                    !define MUI_PAGE_CUSTOMFUNCTION_SHOW MyFuncDir
                    !insertmacro MUI_PAGE_DIRECTORY

                    Function MyFuncDir
                    FindWindow $R0 "#32770" "" $HWNDPARENT
                    GetDlgItem $R1 $R0 1019
                    EnableWindow $R1 0
                    FunctionEnd

                    -Stu

                    Comment


                    • #11
                      thx very much...

                      this deactivates the field, but, not the "browse" button --> I still can change the $INSTDIR

                      have you got the value of the "browse" button --> though I can really disable the choice ?
                      (I think with just this value I could now do it )




                      why doing this and not skipping this page ?
                      --> because of the "proceed" button... (uninstall or reinstall or install)
                      this page is juste before the instfiles page, so I have to show that you're going to install or uninstall (and not only display a next page)


                      ---> because of the reinstallation :
                      you reinstall and I show where is your software, (I don't want them ta change the INSTDIR if they reinstall)

                      Comment


                      • #12
                        where can I find this value ?

                        what is resource.h ?

                        Comment


                        • #13
                          up

                          i'me certainly annoying, but this is the last thing missing to me to finish my installer...

                          the question is :




                          how to disable the "browse" button in the MUI directory page ???

                          Comment


                          • #14
                            try this and then drag the finder over the browse button and look for the 'Control ID' once the window details have been found.

                            -daz
                            WACUP Project <‖> "Winamp Ramblings" - Indie Winamp Dev Blog

                            Comment


                            • #15
                              well I'vbe done what you aksed me to do...

                              I have a control ID :
                              000003E9

                              and now ?
                              because the control ID of the install dir text is
                              000003FB
                              and this is not the value I entered to disable it...

                              Comment

                              Working...
                              X