When installing Firefox in a sandbox you can hide the current Firefox files that are outside of the sandbox.
That way nothing from that install will be included in the sandboxed install.
Hide those items using Sandboxie's "File Access > Write-Only Access" setting:
https://www.sandboxie.com/ResourceAccessSettings#file
Sandbox Settings > Resource Access > File Access > Write-Only Access
This setting makes the folders that you select appear to be empty, when the Firefox install program runs in the sandbox.
Those folders will then be created inside of the sandbox, and the files in them will be used by the sandboxed Firefox.
1) Create the necessary sandbox for Firefox
2)
Either Add the Write-Only Access settings needed to hide the Firefox folders outside of the sandbox, using the Sandbox Settings as listed above (assuming that this is where the current files are located):
C:\Program Files\Mozilla Firefox\
%AppData%\Mozilla\Firefox\
%Local AppData%\Mozilla\Firefox\
OR, just add the following lines to the configuration settings for that sandbox, using:
Sandboxie Control menu > Configure > Edit Configuration
(again, assuming that this is where the current files are located)
Code: Select all
WriteFilePath=C:\Program Files\Mozilla Firefox\
WriteFilePath=%AppData%\Mozilla\Firefox\
WriteFilePath=%Local AppData%\Mozilla\Firefox\
3) Save the sandbox settings, then right-click the Firefox installer file and "Run Sandboxed" - selecting the appropriate sandbox from the list, to install Firefox.
4) If you want, you can also use the Write-Only Access setting to prevent programs using that sandbox from reading the files in your computer's Documents folder. Programs will still be allowed to write to a Documents folder that's located inside of the sandbox, and the default Quick Recovery setting for the sandbox will allow you to recover those files to the Documents folder outside of the sandbox. I always uncheck Immediate Recovery for my sandboxes.
WriteFilePath=%Personal%\