Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,812,812 Members 50,476 Now Online
XDA Developers Android and Mobile Development Forum

Installing Metro Apps to another drive (for SSD Users)

Tip us?
 
trettet
Old
#1  
trettet's Avatar
Senior Member - OP
Thanks Meter 544
Posts: 407
Join Date: Dec 2009
Angry Installing Metro Apps to another drive (for SSD Users)

title says it all, you see metro apps from the window store are huge, some games even reach 200 Megabytes. I'm thinking of upgrading my computer by using an SSD instead of an HDD, however unlike my HDD, the SSD is only 120GB while my HDD is 750 GB. I could easily fill 120GB with Steam Apps, Metro Apps, Desktop Apps in less than a month.
Phone: LG Optimus One (P500)

Recovery: TWRP v1.0.3.8

ROM: PerfectPeso v2.2

Kernel: thachtunganh.Kernel-v1.3 (MODDED by me)

-----------------------------------------------------
Future Phones:

Sony Xperia Sola! FINAL!!!!
-----------------------------------------------------
Show me some support and click this LINK and Skip the Ad :P
The Following User Says Thank You to trettet For This Useful Post: [ Click to Expand ]
 
GoodDayToDie
Old
#2  
Recognized Developer
Thanks Meter 2,699
Posts: 5,682
Join Date: Jan 2011
Location: Seattle
It's possible, but it does require some work. Microsoft doesn't make this easy. You can use directory symbolic links (symlinks) to put the files on one drive (say, D: ) but have them accessible via another (say, C: ). This avoids breaking all the install paths, etc. and ensures new installations will go to the correct disk. Please note that even the biggest Metro apps are pretty small compared to the typical Steam game. You'll save a lot more space moving your Steam library over to the other drive. It's also a lot easier; you can either use the built-in Steam feature to put games in different library locations, or you can use symlinks (similar to as below, but with a whole lot less "Takeown" and similar). However, if you really want to move the WindowsApps folder, try the following steps. Be aware that in cases of mistyped commands, failure to follow instructions correctly, gremlins, or plain bad luck, it's entirely possible that this will mess something up.

You'll need an Administrator command prompt (meaning you need Admin access) to do this.
These steps assume that your C:\ drive is your SSD, and that Windows is currently installed there, and D:\ is your large data drive, where you want to move the app folder.
You may adjust the paths, especially the destination, if you want; these instructions put the "WindowsApps folder on the root of the D: drive.

First, make sure you aren't running any "Metro" apps. It may help to do these steps immediately after rebooting.
Open a Command Prompt as Administrator (you can do this by right-clicking the Start button and selecting "Command Prompt (Admin)" from the menu).
Take ownership of the WindowsApps directory:
Code:
takeown /F "C:\Program Files\WindowsApps" /A /R
Make a copy of the "C:\Program FilesWindowsApps" folder onto the new drive:
Code:
robocopy "C:\Program Files\WindowsApps" "D:\WindowsApps" /E /COPYALL /DCOPY:DAT
Make sure that the copy succeeded (no Skipped or FAILED, etc. in the summary).
Delete the original WindowsApps folder:
Code:
rmdir /S "C:\Program Files\WindowsApps"
Create the symlink:
Code:
mklink /D "C:\Program Files\WindowsApps" "D:\WindowsApps"
At this point, you should be done. Try running a Metro app to verify that it worked.
Win8/Windows RT projects:
List of desktop apps for hacked RT devices

WP8 projects:
Native Access WebServer and Libraries
WP8 Interop Unlocks
Storage Cleanup tool

WP7 projects:
XapHandler, Root Webserver, OEM Marketplace XAPs, Bookmarklets collection (Find On Page), Interop-unlock hacks.


Do not private message me with questions that should have been posted on the forum! Not only are you wasting your time - I'm not going to bother writing an answer to such a question for only one person - but I will probably block you from PMing me in the future as well.
The Following 11 Users Say Thank You to GoodDayToDie For This Useful Post: [ Click to Expand ]
 
lowridincrew,
Old
#3  
Senior Member
Thanks Meter 18
Posts: 163
Join Date: Jun 2011
Location: Cleveland

 
DONATE TO ME
My apps won't work because of the last step. It say's
Quote:
Cannot create a file when that file already exists.
 
GoodDayToDie
Old
#4  
Recognized Developer
Thanks Meter 2,699
Posts: 5,682
Join Date: Jan 2011
Location: Seattle
That just means that the WindowsApps dir wasn't fully deleted. I actually recommend doing this step from the local Administrator account (disabled by default; use Computer Management -> Local Users and Groups to enable it, then log off (tap your name on the Start screen to get the log off option) and log in as Admin. That should ensure that anything using the WindowsApps dir stops, since local Admin can't run AppContainer apps.
Win8/Windows RT projects:
List of desktop apps for hacked RT devices

WP8 projects:
Native Access WebServer and Libraries
WP8 Interop Unlocks
Storage Cleanup tool

WP7 projects:
XapHandler, Root Webserver, OEM Marketplace XAPs, Bookmarklets collection (Find On Page), Interop-unlock hacks.


Do not private message me with questions that should have been posted on the forum! Not only are you wasting your time - I'm not going to bother writing an answer to such a question for only one person - but I will probably block you from PMing me in the future as well.
The Following User Says Thank You to GoodDayToDie For This Useful Post: [ Click to Expand ]
 
lowridincrew,
Old
#5  
Senior Member
Thanks Meter 18
Posts: 163
Join Date: Jun 2011
Location: Cleveland

 
DONATE TO ME
It wont let me delete these files, im in admin mode
Quote:
C:\Users\Administrator>rmdir /S "C:\Program Files\WindowsApps"
C:\Program Files\WindowsApps, Are you sure (Y/N)? y
C:\Program Files\WindowsApps\MICROS~2.135\images - Access is denied.
C:\Program Files\WindowsApps\MICROS~2.135 - Access is denied.
C:\Program Files\WindowsApps\MICROS~3.26_\LOCALC~1\CACHED~1 - Access is denied.
C:\Program Files\WindowsApps\MICROS~3.26_\LOCALC~1 - Access is denied.
C:\Program Files\WindowsApps\MICROS~3.26_ - Access is denied.
Access is denied.
 
[BT]Black V
Old
(Last edited by [BT]Black V; 9th January 2013 at 09:57 PM.)
#6  
[BT]Black V's Avatar
Member
Thanks Meter 2
Posts: 75
Join Date: Mar 2007
Location: Auckland
Quote:
Originally Posted by lowridincrew, View Post
It wont let me delete these files, im in admin mode
it sounds like you nor elivated the CMD promt,you need to run the cmd prompt in elevated rights, not just logged in as administrator

click start
type cmd
right click
select run as administrator

or

Windows Key + X and select cmd prompt (administrator)
 
RoyalWitCheese
Old
#7  
Junior Member
Thanks Meter 5
Posts: 29
Join Date: Apr 2010
Uninstall all Apps currently installed (The registry tweak will cause errors when Apps get updated)


Regedit
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Appx\PackageRoot

Change location from "C:\Program Files\WindowsApps" to where you want them ie( "e:\WinApps")
Google Nexus One - CM10 Evervolv
Motorola Xoom Wifi - CM10
Motorola RAZR - Stock JB
Google Nexus 7 - Rooted KitKat
Google Nexus 4 - CM10
 
[BT]Black V
Old
(Last edited by [BT]Black V; 9th January 2013 at 09:58 PM.) Reason: Spelling
#8  
[BT]Black V's Avatar
Member
Thanks Meter 2
Posts: 75
Join Date: Mar 2007
Location: Auckland
Quote:
Originally Posted by RoyalWitCheese View Post
Uninstall all Apps currently installed (The registry tweak will cause errors when Apps get updated)


Regedit
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Appx\PackageRoot

Change location from "C:\Program Files\WindowsApps" to where you want them ie( "e:\WinApps")
I would have thought you don't need to do this if you are using a symlink/junction
If you just manually moved the files and didn't create a link afterwards then YES you need to make this registry change
 
9xnine
Old
(Last edited by 9xnine; 10th January 2013 at 08:37 AM.)
#9  
Senior Member
Thanks Meter 31
Posts: 182
Join Date: Aug 2010
Location: Bellingham, WA
Everything seemed like it went smoothly but once I updated the main apps (mail, calendar, people, messaging) They will not open. All of the apps I installed after doing this procedure work fine, as well as Store and Bing. I tried uninstalling these apps and reinstalling to no avail. They just start to open and then close. All of the new apps are being installed in the correct "WindowsApps" folder on my D: drive so it seems to have worked. Any Ideas?


Tried to make the change in the registry but when I save it I get an error message:

"Cannot edit PackageRoot: Error writing the value's new contents."

This change seems like a logical solution but I'm not sure why I can't save the change.
 
bluSCALE4
Old
#10  
bluSCALE4's Avatar
Junior Member
Thanks Meter 3
Posts: 10
Join Date: Jan 2009
I'm having trouble simply copying over the data >< I initially tried to write to a sub-folder, not the root of another drive. Both attempts to run robocopy on root and sub-folder failed giving the message:

Copying File C:\Program Files\WindowsApps\18476MPBrun.ShareMyFiles_1.4.0.0 _neutral__5j38zygvezh8g\App.xaml
Access is denied.
Waiting 30 seconds...

I thought maybe I had something open so I booted up in Safe Mode with cmd prompt and still, I got the same error. Any ideas?

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Sony PS4 Remote Play Ported to All Android Devices

Im pretty sure that every informed gamer out there perked their ears up when Sony came out … more

Change Your Samsung Galaxy S2’s Dialer Background in Real Time

As with anything, if youve looked at something long enough, things can … more

Increase Your Multitasking Workflow with C-Floating Windows

Technology has put life on the fast track. Lazy, relaxed days have turned into … more

Compile Your Own Kernel From Source with Comprehensive Tutorial

One glance at any developer section of any device forum on XDA and youll find … more