• Login
Community
  • Login

How to make Notepad++ to forget old installation path

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 2 Posters 1.3k 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.
  • I
    Installer
    last edited by May 16, 2019, 12:44 PM

    I am trying to install Notepad++ to large group of Windows 7 computers silently using configuration management tool.
    This works well for most computers. But on few computers users had previously manually installed Notepad++ to D:\Notepad++.
    On these computers the new centralised installation also ends up on D drive even though I use command line switch (\D) to install it to C:\Program Files.

    This happends even if I uninstall Notepad++ and delete all registry entries related to it that I can find before trying the centralised installation. How can I force Notepad++ to forget its old installation location and install to specified directory instead?

    Version of Notepad++ I am trying to install is 7.6.4.

    M 1 Reply Last reply May 16, 2019, 1:04 PM Reply Quote 0
    • M
      Meta Chuh moderator @Installer
      last edited by May 16, 2019, 1:04 PM

      welcome to the notepad++ community, @Installer

      you can either specify the target folder on a silent install:

      • 32 bit: npp.7.6.6.Installer.exe /S /D=%ProgramFiles(x86)%\Notepad++\

      • 64 bit: npp.7.6.6.Installer.x64.exe /S /D=%ProgramFiles%\Notepad++\

      or you can wipe all previous file based settings, and use your current install method:

      • uninstall the existing notepad++.

      • delete %ProgramFiles%\Notepad++ if it still exists from an older 64 bit version.

      • delete %ProgramFiles(x86)%\Notepad++ if it still exists from an older 32 bit version.

      • delete %AppData%\Notepad++ for all relevant users, if it still exists.

      • delete %LocalAppData%\Don_HO_don.h@free.fr, if it exists from a very old version.

      • delete %ProgramData%\Notepad++ if it exists.

      • re-install notepad++ using your preferred deployment method.

      best regards.

      I 1 Reply Last reply May 17, 2019, 8:01 AM Reply Quote 3
      • I
        Installer @Meta Chuh
        last edited by Installer May 17, 2019, 8:02 AM May 17, 2019, 8:01 AM

        @Meta-Chuh

        Thanks, using /D switch with %ProgramFiles% variable instead of string Program Files helped. (I guess the space in the path caused it to not work for me earlier.) Now I am able to force installation to C drive.

        However wiping mentioned locations did not seem to have any effect. On those few computers the installation still defaults to D drive unless /D switch is used.

        M 1 Reply Last reply May 17, 2019, 9:17 AM Reply Quote 2
        • M
          Meta Chuh moderator @Installer
          last edited by May 17, 2019, 9:17 AM

          @Installer

          splendid, at least you’ve got it working with the /D switch.

          there must be still a residue either at the registry installer information, or file based left overs, maybe on D:\Notepad++, but it shouldn’t be any problem, if you don’t have the time to keep on searching, as the next update or silent install will use the new installer path, unless you uninstall notepad++ first.

          best regards.

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