Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,741,210 Members 48,579 Now Online
XDA Developers Android and Mobile Development Forum

(MOD) How to install Windows Stores apps on sd card

Tip us?
 
tamarasu
Old
(Last edited by tamarasu; 7th January 2013 at 03:11 AM.)
#1  
Junior Member - OP
Thanks Meter 43
Posts: 23
Join Date: Dec 2009
Default (MOD) How to install Windows Stores apps on sd card

hey guys and gals,


We all know that the Surface has limited storage. I was messing around and found a quick change to a registry key that lets you change where windows store apps are stored when installed. Tested and working on my Surface 32gb. see below for the key:

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

change the key labeled PackageRoot to whatever directory you want, and all new apps will install in that directory.

Note: this does require that you change owner and permissions on the Appx registry folder so that you can edit the key. I have tested this will no ill effects.

You can also change the app repository to another directory by changing the PackageRepository key.

Test on a class 10 32gb card. Hope this helps!
The Following 16 Users Say Thank You to tamarasu For This Useful Post: [ Click to Expand ]
 
GoodDayToDie
Old
#2  
Recognized Developer
Thanks Meter 2645
Posts: 5,546
Join Date: Jan 2011
Location: Seattle
Ahh, good find. I just used a symbolic link (which has the advantage of moving existing apps without breaking anything) but your approach is probably easier on clean installs.
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 3 Users Say Thank You to GoodDayToDie For This Useful Post: [ Click to Expand ]
 
paschott
Old
#3  
Member
Thanks Meter 5
Posts: 82
Join Date: Mar 2006
Location: Dallas
Quote:
Originally Posted by GoodDayToDie View Post
Ahh, good find. I just used a symbolic link (which has the advantage of moving existing apps without breaking anything) but your approach is probably easier on clean installs.
Did you have to do anything funny with permissions to make the change? What was the command to make the link and move the files?

Last time I used a symbolic link (Windows "Installer" folder *sigh*), I don't remember Windows automatically moving anything. I was probably doing it wrong, but manually set up everything so it wouldn't be lost.
 
GoodDayToDie
Old
#4  
Recognized Developer
Thanks Meter 2645
Posts: 5,546
Join Date: Jan 2011
Location: Seattle
Used robocopy, with the switches to maintain ACLs and all, to copy the directory tree. Deleted the old one, and then used mklink /d to create the symbolic link.
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.
 
truffle1234
Old
#5  
Senior Member
Thanks Meter 20
Posts: 823
Join Date: Mar 2007
Location: Kuala Lumpur
Quote:
Originally Posted by tamarasu View Post
hey guys and gals,


We all know that the Surface has limited storage. I was messing around and found a quick change to a registry key that lets you change where windows store apps are stored when installed. Tested and working on my Surface 32gb. see below for the key:

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

change the key labeled PackageRoot to whatever directory you want, and all new apps will install in that directory.

Note: this does require that you change owner and permissions on the Appx registry folder so that you can edit the key. I have tested this will no ill effects.

You can also change the app repository to another directory by changing the PackageRepository key.

Test on a class 10 32gb card. Hope this helps!
where do I change the owner and permission? I opened the reg edit as adminirtator but could not change the folder... do I have to uninstall all the apps before changing...??
Lumia 920 is 1000 times Better then my old Lumia 900... and the lumia 1020 is THE BEST...
 
tamarasu
Old
#6  
Junior Member - OP
Thanks Meter 43
Posts: 23
Join Date: Dec 2009
Youll need to change owner and permissions on the registry key. you can also change both on the windowsapps folder, though it isn't necessary.




Quote:
Originally Posted by truffle1234 View Post
where do I change the owner and permission? I opened the reg edit as adminirtator but could not change the folder... do I have to uninstall all the apps before changing...??
The Following User Says Thank You to tamarasu For This Useful Post: [ Click to Expand ]
 
Ishman
Old
#7  
Member
Thanks Meter 12
Posts: 71
Join Date: Sep 2007
I have not been able to get this too work. I have made the registry changes with no problems but once I do that I get an error when trying to install any item from the app store. Once I change the registry back it functions correctly. Any thoughts? I did create a directory on the SD card first and mapped the registry setting to it.

Thanks
 
tamarasu
Old
#8  
Junior Member - OP
Thanks Meter 43
Posts: 23
Join Date: Dec 2009
No nothing special. the only difference on my system is that the sd card is formatted as ntfs instead of the default fat32 that it came as. zero issues installing apps.





Quote:
Originally Posted by Ishman View Post
I have not been able to get this too work. I have made the registry changes with no problems but once I do that I get an error when trying to install any item from the app store. Once I change the registry back it functions correctly. Any thoughts? I did create a directory on the SD card first and mapped the registry setting to it.

Thanks
 
Ishman
Old
#9  
Member
Thanks Meter 12
Posts: 71
Join Date: Sep 2007
Wonder if it is because I am using a 64 gb exfat card. I will try with another card tomorrow.
 
kenikh
Old
#10  
kenikh's Avatar
Senior Member
Thanks Meter 41
Posts: 263
Join Date: Nov 2009
Damn - so you have to have the SD Card formatted as NTFS? I'll have to pull a boat load of content off of the card before I reformat it, then.

Has anyone determined in the NTFS requirement is technically driven or reg setting enforced? Would be nice if there were a modification that would allow exFAT to work without going through the hassle of reformatting. I did a cursory look in the registry and didn't see anything.
My phones:
Nokia Lumia 920

Tablets:
Surface RT
Nexus 7
Kindle Fire
iPad2

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes