Community
    • Login

    Can't set notepad++ as default program in Windows 10???

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    14 Posts 11 Posters 30.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Tony Wang 0T
      Tony Wang 0 @Prahlad-Makwana4145
      last edited by

      @Prahlad-Makwana4145 thanks, but this doesn’t work for me. When I click Choose a Default, the only programs that shows up are Notepad and Wordpad, along with option to look for an app in the MS store.

      There is a Notepad++ in the app store, but it is not the official version.

      Seems almost like MS isn’t recognizing it as a possible default app, even though it’s clearly installed and visible under Apps&Features.

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Tony Wang 0
        last edited by

        @Tony-Wang-0 ,

        If you have a 64-bit Notepad++ installed in C:\Program Files\Notepad++, search your registry for C:\Program Files (x86)\Notepad++ and replace any such instance with C:\Program Files\Notepad++ – it may be that something wrote the wrong value into the registry (maybe a previous 32-bit installation), and so Windows 10 looks for a nonexistent location, cannot find it, and then refuses to associate an OpenWith action for Notepad++.

        (I’d do a full search of the registry, but I think it’s something like HKCU\Software\Classes\Applications\notepad++.exe and/or HKLM\Software\Classes\Applications\Notepad++.exe, both of which might map to HKCR\Applications\Notepad++.exe. From what I remember, each extension gets an OpenWithList which includes notepad++.exe, and then the registry looks in Applications\Notepad++.exe to find out the actual path to that command; so if that key points to a non-existent executable, Windows ignores that OpenWith option. And I have a memory that something occasionally goes wrong and leaves the x86 version in the registry, even after the 64-bit is installed.)

        Tony Wang 0T E 2 Replies Last reply Reply Quote 0
        • Tony Wang 0T
          Tony Wang 0 @PeterJones
          last edited by

          @PeterJones thanks, this sounded so promising, but alas, doesn’t seem to be the problem.

          I even uninstalled (revounistaller) and reinstalled, no change. Also tried the 32 bit version, same problem.

          Now I’m really scratching my head because it sounds like it’s just my system, not some crummy Windows change :-(

          1 Reply Last reply Reply Quote 0
          • adams13x13A
            adams13x13
            last edited by

            Solution of @Prahlad-Makwana4145 does work for me under Windows 10 with 32-bit version of Notepad++, however with following addition.

            After setting file associations in Notepad++, go to Explorer again, right-click the file, “Properties” -> “Open with:” -> “Change” – now you can select Notepad++ and set is default.

            1 Reply Last reply Reply Quote 0
            • Brad KleinB
              Brad Klein
              last edited by

              had the same issue as @Tony-Wang-0 when migrating to new laptop; had already done @Prahlad-Makwana4145 's solution of adding the extensions inside of npp and still windows would open .txt’s in [not-npp]. Finally tried @adams13x13’s method of finding any .txt file, right click > properties > opens with > select another app on this PC and was able to navigate to npp.exe inside of program files and it looks to be working for all .txt now.

              1 Reply Last reply Reply Quote 1
              • megaslowpokeM
                megaslowpoke
                last edited by

                You can make it easier: add notepad++ as a debugger to the standard notepad. It goes something like this, works everywhere, and is supported by notepad++ itself:

                reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /v "Debugger" /t REG_SZ /d "\"%You_full_path_to_dir_Notepad_pp%\notepad++.exe\" -notepadStyleCmdline -z" /f
                

                The quotes in the string are escaped with a slash to get inside the value and allow to work normally with long paths and non-standard characters in the names.

                To get the behavior back - just delete this key in registry:

                reg delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /v "Debugger" /f
                
                1 Reply Last reply Reply Quote 0
                • boyavatar2000B
                  boyavatar2000 @Prahlad-Makwana4145
                  last edited by

                  @prahlad-makwana4145 This worked for me. When I next opened a .txt file I was then able to select Notepad++. Thanks very much for posting.

                  1 Reply Last reply Reply Quote 0
                  • Alaattin KöroğluA
                    Alaattin Köroğlu @Prahlad-Makwana4145
                    last edited by

                    @prahlad-makwana4145 thanks to you i found the thing to solve my problem at first glance.

                    1 Reply Last reply Reply Quote 0
                    • Thom De VillaT
                      Thom De Villa
                      last edited by Thom De Villa

                      This post is deleted!
                      1 Reply Last reply Reply Quote 1
                      • Thom De VillaT
                        Thom De Villa
                        last edited by

                        If the above steps doesn’t work for you because MS wouldn’t recognize Notepad++ as an application you can also try this one:

                        Step 1: Open any .txt file and go to “Properties”
                        8df83f1f-5c65-4738-8c0f-28f5383928df-image.png
                        Step 2: In select the “Change” option in “Opens with” under “General”
                        f8e262c8-4af3-4260-b3ac-f7999096c786-image.png
                        Step 3: Look for the option “More apps” and select it
                        a6e3a205-893b-43ca-adf0-5aca85c3f670-image.png
                        Step 4: Select “Look for another app on this PC” at the bottom which will open a window
                        c3d90c4a-6149-47eb-934a-06ff534af87c-image.png
                        Step 5: Search for the folder in which your application Notepad++ is located and open it
                        071ebfb7-a775-45e5-892b-0ecc79d4b6d2-image.png
                        Step 6: Select the application Notepad++ then select “Open” which will cause the window close
                        9e2557c2-199e-4d81-8ede-06bfd6013b45-image.png a8bce8e3-cdba-4943-b690-0b8cfcde3b10-image.png
                        Step 7: Finally, the window will close and you should be back to the “Properties” window of the .txt file in which case select “Apply” and then “OK”
                        8fc0e872-055b-41b6-83e2-57f97d5bc84c-image.png

                        1 Reply Last reply Reply Quote 1
                        • E
                          everplex @PeterJones
                          last edited by everplex

                          This did work for me, I had instances of the x86 version in the registry that after manually changing in regedit, and also setting the file associations in Notepad++ settings (preferences), I was able to set the file associations and default programs.

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          The Community of users of the Notepad++ text editor.
                          Powered by NodeBB | Contributors