• Login
Community
  • Login

Prevent AutoUpdate Check for VDI Environment

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
7 Posts 3 Posters 861 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.
  • J
    Jason Pope 0
    last edited by Nov 18, 2020, 11:06 AM

    Hey All,

    We have Notepad++ installed within our VDI infrastructure. We build a base image that has the software on it and then provision to users using that image. I would like to know if there is a way to disable Notepad++ from checking for updates for all users (I know it can be done in the settings, but this has to be done on a per user basis). Users do not have the ability to install software, so when this comes up and they click on yes, it prompts them for admin credentials and becomes and annoyance for both support and users.

    We update Notepad++ regularly anyway when we do maintenance on the base image.

    Thanks

    1 Reply Last reply Reply Quote 0
    • D
      Daniel Fuchs
      last edited by Nov 18, 2020, 12:45 PM

      I don’t know much about VDI environments, but you could just block the updater in the firewall.

      1 Reply Last reply Reply Quote 0
      • J
        Jason Pope 0
        last edited by Nov 18, 2020, 12:59 PM

        Daniel,

        I would rather not have the popup at all, because blocking it on the firewall will then prevent me getting the updates when I need them when I update the image.

        Would be good to have some sort of registry key that can be pushed out, ie:
        Enabled update = 1
        Disable update = 0

        E 1 Reply Last reply Nov 18, 2020, 1:47 PM Reply Quote 0
        • D
          Daniel Fuchs
          last edited by Nov 18, 2020, 1:18 PM

          I don’t see anything obvious, as the “should search for updates” setting is written to the config.xml in %APPDATA%\Notepad++.
          But what happens, if you change the <InfoUrl> in the file %ProgramFiles%\Notepad++\updater\gup.xml to any URL that contains a valid GUP XML?

          The original file looks like this:

          <GUP>
            <NeedToBeUpdated>yes</NeedToBeUpdated>
            <Version>7.9.1</Version>
            <Location>https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v7.9.1/npp.7.9.1.Installer.exe</Location>
          </GUP>
          

          (https://notepad-plus-plus.org/update/getDownloadUrl.php )

          So you can create a static file somewhere on a webserver you might already have in the VDI environment.

          You can simply bring some the some hardcoded values and set NeedToBeUpdated flag to “no”, so it looks like this:

          <GUP>
            <NeedToBeUpdated>no</NeedToBeUpdated>
            <Version>0.0.0</Version>
            <Location>https://not_used</Location>
          </GUP>
          
          J 1 Reply Last reply Nov 18, 2020, 3:37 PM Reply Quote 1
          • E
            Ekopalypse @Jason Pope 0
            last edited by Nov 18, 2020, 1:47 PM

            @Jason-Pope-0

            … or delete the update directory completely if you maintain your version yourself.

            J 1 Reply Last reply Nov 18, 2020, 3:35 PM Reply Quote 2
            • J
              Jason Pope 0 @Ekopalypse
              last edited by Nov 18, 2020, 3:35 PM

              @Ekopalypse

              That sounds like a plan. I may use Applocker policies to prevent GUP.exe from running on all those VMs.

              Thank for pointing me in that direction

              1 Reply Last reply Reply Quote 2
              • J
                Jason Pope 0 @Daniel Fuchs
                last edited by Nov 18, 2020, 3:37 PM

                @Daniel-Fuchs

                I will also have a go at this and see if I can update this on the base image and it will not prevent the update from running manually. Will do some testing

                Thanks

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