batch file - How do I install Chocolatey packages to another drive? -


i try create .bat file automate installation of several apps on virtual machine. use chocolatey, have difficulties installation of 3 apps: winmerge, adobereader, , paint.net

i want install these apps on drive: f:\program files. tried many commands, none work.

> choco upgrade adobereader -y -ia "installdir=""f:\program files\adobe""" > choco upgrade paint.net   -y -ia "installdir=""f:\program files\paint.net""" > choco upgrade winmerge    -y -ia "installdir=""f:\program files\winmerge""" 

paint.net installed in c:\ drive. winmerge extracts files on f: drive, isn't installed. , adobe reader fails.

it may understand first there different types of installers windows applications (in chocolatey terminology call them native installers) , accept custom directory location different argument (and not @ if homegrown custom version). have documented @ https://github.com/chocolatey/choco/wiki/gettingstarted#overriding-default-install-directory-or-other-advanced-install-concepts (which you've read based on use of install arguments).

  • msi- either targetdir or installdir (as have).
  • nsis - /d location out quotes if spaces , must passed last argument.
  • innosetup - /dir="location"

there reason have https://github.com/chocolatey/choco/issues/258 (with original https://github.com/chocolatey/chocolatey/issues/32 2011) , better reason haven't implemented yet - it's not easy without knowing installer type ahead of time. planned, because huge win if support 1 switch override them all.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -