Is it possible to change chocolatey default location to c:/program files so that all the applications goes into program files instead of program data.
how to change chocolatey default location from program data to program files
1.3k Views Asked by Shravan Meghavath At
1
There are 1 best solutions below
Related Questions in LOCATION
- How to set resources directory in eclipse dynamic web project?
- Look if current location is near marker
- Drupal location module shows only a portion of Gmap on node page
- iOS 8 CLLocationManager enterRegion: not getting called if use requestWhenInUseAuthorization
- Detect Country then show message?
- Give fake location to Genymotion emulator
- Moving Divs in JavaScript with key presses
- Converting CLLocationCoordinate2D to a String that can be stored
- FusedLocationProviderApi Fatal exception: GoogleApiClient is not connected yet.
- Finding user's current location with Parse and saving it in the Parse database
- Get listview item position after soft keyboard shown
- JavaFX How can I set the location/coordinates of a pane?
- Can a geofence contain many other geofences
- distanceBetween or other way to check if current position is in radius to marker
- JFrame wrong location with Ubuntu (Unity ?)
Related Questions in DEFAULT
- Default priority of thread with SCHED_FIFO
- How to set default value for association with simple_form?
- Using angularJS click on enter form functionality in Internet Explorer
- Change default directory in Emacs startup in Linux(CentOS 7)
- how to change default module in Zend 2
- Override Spring form error messages
- How to make Bootstrap as browser's default rendering style
- Odoo8 - how can I sort status bar and set default as new?
- Implementing Default on nested structures causes a stack overflow
- Android Default SMS App permissions kitkat
- Default Content for Empty Datagrid or Listbox in WPF
- Reset default file encoding to UTF-8 in Visual Studio 2013
- Add default value to label MVC .NET
- Word VBA - How to set the default save path?
- Wordpress/PHP Warning, Creating default object, Can't access Admin Panel Fatal Error
Related Questions in CHOCOLATEY
- Why is PowerShell "not recognized" when installing Chocolatey?
- Error installing Chocolatey via Ansible on Windows
- How do I install Chocolatey packages behind a proxy on Windows 2012 R2 Core?
- Add Custom Argument Completer for Cmdlet?
- How does Chocolatey know which packages are installed locally?
- Why are nose tests leaving orphaned PhantomJS processes on Windows 8?
- Can't run iex in Windows command prompt or git bash
- Run chef block only if chocolatey is installing package
- Chocolatey from where does it find the package
- Redis on windows server: no config file specified
- Program for Chocolatey package not have silent installation mode
- Powershell Item-Property not expanded when stored to an array with Get-ChildItem
- Ruby and RubyDev under Chocolately on Windows
- Proper usage of Chocolatey (package update / version management)
- Choosing destination when installing a chocolatey packages with Puppet
Related Questions in CONTROLPANEL
- Installing ASP.Net from "Turn windows features on or off" fails
- Open keyboard properties dialog in a localized system
- How do I change properties on control panel with visual studio
- Google Chrome Will Install Shortcuts as Programs and will not let me uninstall them
- Read out "Display" of "Appearance and personalization"
- Changing Power Scheme settings through Registry instead of Control Panel in Windows 7
- heroku rails app domain only working without www
- How do I make a Delphi control panel applet be non-'legacy'?
- Is there a way to programmatically invoke an uninstaller in the control panel?
- How do I launch the "Manage another account" page from the "User Accounts" section in the control panel from a C# application
- Why can't get control panel name?
- Stop mysql from xampp 5.6 will cause a stop for xampp 7.0 xampp mysql server
- How would I control/access ubuntu server services via a node.js web admin panel?
- Xampp - Apache Shuts Down Unexpectedly, Empty Log File And No Events
- Extension Autodesk Forge: My IFC 4 model can not connect to my extension
Related Questions in PROGRAMDATA
- Writing to a database in the ProgramData folder
- Environment.SpecialFolder.CommonApplicationData returning Program Files/App folder
- App unable to rewrite file saved by a Windows service
- Why would one ever use the %TEMP% folder now that Storage Sense can clean it at any time?
- Visual Studio Deployment Package Change File Security
- How to check if a folder path matches USERs folder in BAT script
- Handle when Folder.Files returns folders that do not exist
- Application Data folder in Windows 7
- Write in "ProgramData" folder (W7 and Vista) .NET
- Change path to save mysettings - VB.NET 2008
- how to change chocolatey default location from program data to program files
- How to get the application specific data folder (ProgramData)?
- What is the difference between ProgramData and AppData?
- File redirection from Program data to AppData\Local\VirtualStore\ProgramData
- About ProgramData folder's right with UAC turned on under Vista
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
This is kind of unnecessary as most packages which run EXE or MSI based installers will usually install to the default path for that program, and Chocolatey generates shims on the
PATHfor the packages which don't reference a proper installer.That said, you can install Chocolatey to a different location by setting
ChocolateyInstallenvironment variable to the directory you want before running theinstall.ps1script (note this environment variable should be persisted at the System level).You can also move the install location to a new place, just make certain to update the same environment variable with the new path. Again, this will only change Chocolatey's internal working path and any packages which rely on MSI or EXE installers will usually install to their default location under
Program FilesandProgram Files (x86).Once you update
$env:ChocolateyInstall, you will also need to update your SystemPATHvariable to add the new value of$env:ChocolateyInstall\binto it as thePATHwill still reference the old location. This is important because some packages will have Shim Executables generated and placed in thebinfolder.For packages which install programs that don't have EXE or MSI based installers, Chocolatey generates Shim Executables which point at any executables extracted to
$env:ChocolateyInstall\lib\package-id\tools. These shims are placed in$env:ChocolateyInstall\binwhich is on thePATHif you have Chocolatey installed.To run these, the shims should have the same filename as the executable they ultimately run. So you would just need to invoke the program by name as you would with any other CLI utility available on the
PATH. One issue to watch out for is with shims whose associated executable would normally accept piped data; the shims will not pass the piped data through to the calling executable.In this case you would have to use the actual executable for piping data, which is once again going to be available somewhere under
$env:ChocolateyInstall\lib\package-id\tools.