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: latestHere 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 fileslocation, 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,
/Don 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.xmlin the notepad++.exe directory.
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