Notepad + ansible + win_chocolatey = head scratcher
-
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 !
-
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) -
@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.
-
@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-bytedoLocalConf.xml
in the notepad++.exe directory.