• Login
Community
  • Login

Notepad + ansible + win_chocolatey = head scratcher

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 2 Posters 2.0k 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.
  • B
    Benoit Valenti
    last edited by Jun 8, 2022, 4:30 PM

    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 !

    P 2 Replies Last reply Jun 8, 2022, 4:40 PM Reply Quote 0
    • P
      PeterJones @Benoit Valenti
      last edited by Jun 8, 2022, 4:40 PM

      @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)

      B 1 Reply Last reply Jun 8, 2022, 5:12 PM Reply Quote 0
      • B
        Benoit Valenti @PeterJones
        last edited by Jun 8, 2022, 5:12 PM

        @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
        • P
          PeterJones @Benoit Valenti
          last edited by PeterJones Jun 8, 2022, 5:45 PM Jun 8, 2022, 5:45 PM

          @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
          3 out of 4
          • First post
            3/4
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors