Yes, there is.
The packages folder containing both the Official-One Store and the Community Folder must be on that drive.
Then you need to go to the “Local Cache” file in the MSFS folder structure, and find the UserCfg.OPT file.
At the bottom of that file place the location for the above mentioned packages folder.
This is mine which is in a custom location as well.
InstalledPackagesPath “F:\Packages”.
Copy the above, just replace “F” with your custom location.