Community
    • Login

    Notepad + ansible + win_chocolatey = head scratcher

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 2 Posters 1.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.
    • Benoit ValentiB
      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
        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
          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
            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
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors