Community
    • Login

    Notepad + ansible + win_chocolatey = head scratcher

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 2 Posters 2.6k Views 2 Watching
    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.
    • Benoit ValentiB Offline
      Benoit Valenti
      last edited by

      Hi,

      i don’t know if i’m at the right place to ask this, but i’m having issue installing Notepad++ in portable mode (using /D= ) with ansible using win_chocolatey module.

      ---
       - name: NotePad++ installation on MMCS-WIN-01
         hosts: windows
         gather_facts: false
         tasks:
           - name: Install Notepad++ with Chocolatey module
             win_chocolatey:
              name: notepadplusplus
              install_args: "/D=C:\Notepad++"
              state: latest
      

      Here is my playbook so far, of course i tried multiple combinations with “install_args” but the playbook still install the package with the %APPDATA% activated in c:\program files\notepad++

      Hopefully someone here is familiar with this :)

      Thank you kindly !

      PeterJonesP 2 Replies Last reply Reply Quote 0
      • PeterJonesP Offline
        PeterJones @Benoit Valenti
        last edited by

        @benoit-valenti ,

        I know nothing about “ansible”, the Chocolatey installer is not controlled by the Notepad++ developers so they don’t support installer problems with it. The actual Notepad++ installer should work with the /D=C:\Notepad++ option, so if you are having difficulty with that (without any “ansible” or “chocolatey” in the way), then let us know.

        (You might also want to make sure there isn’t a previous version already existing in the c:\program files location, just so there isn’t any priority confusion for the installer)

        Benoit ValentiB 1 Reply Last reply Reply Quote 0
        • Benoit ValentiB Offline
          Benoit Valenti @PeterJones
          last edited by

          @peterjones
          Hi, thanks for the quick answer.
          i will try with win_packages to see if that works out well.

          There is nothing in the c:\program files as i uninstall everything using choco uninstall and manuelly remove all remaining folders inside.

          i will report back.

          1 Reply Last reply Reply Quote 0
          • PeterJonesP Offline
            PeterJones @Benoit Valenti
            last edited by PeterJones

            @benoit-valenti said in Notepad + ansible + win_chocolatey = head scratcher:

            installing Notepad++ in portable mode (using /D= )

            BTW: to clarify, /D on the installer does not make it use portable mode, it just installs to a different location. To be “portable” mode (and use the local folder rather than %AppData%\Notepad++), you must create the zero-byte doLocalConf.xml in the notepad++.exe directory.

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors