Forcing software to be installed in a particular location OR running in sandbox


vranghel

New member
Local time
1:58 AM
Posts
24
OS
Windows 11
Hi!

I want to play around with large language models and image generation, and two of the beginner friendly software solutions that i came across are LM Studio(👾 LM Studio - Discover and run local LLMs) and Pinokio (👾 LM Studio - Discover and run local LLMs)

The problem is that these will only install in the predefined location on C drive, with no apparent way to change the partition. Since the models used with this will be very large, i don't want to fill my C partition. Additionally, i don't want to have files spread all over the drive/drives because Pinokio has a lot of dependencies which need to be installed. Also when it's time to uninstall, i dont want to have leftover files and or registry entries. I've looked for solutions but there's pretty much no way to force the installation into another drive/folder

Is there a way to install them in some sort of virtual machine/sandbox?
I know that certain versions of Win 11 come with Windows Sandbox installed, but my Education version does NOT come with Windows Sandbox.

tldr; 1. How to force an app to install in a specific folder/drive
2. Which virtualization/sandbox solution would be best suited to use to install these - so all files and dependencies are included in a single file

Thanks!
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
Additionally, i don't want to have files spread all over the drive/drives because Pinokio has a lot of dependencies which need to be installed.
I can't speak to the program itself but generally the installs I've done have a point early in the process to confirm where to install, can be a Custom install as desired. The dependencies mentioned will be in the process such as creating the folders and copying files to them, putting the icons/shortcuts where needed, copying supporting files into the Windows and it sub folders and creating Registry entries that tell Windows how to run the program/s. I've not worked with an Education edition of Windows yet, don't have a college in small town, so don't know if or what restrictions exist.
 

My Computers

System One System Two

  • OS
    Win11 Pro RTM
    Computer type
    Laptop
    Manufacturer/Model
    Dell Vostro 3400
    CPU
    Intel Core i5 11th Gen. 2.40GHz
    Memory
    12GB
    Hard Drives
    256GB SSD NVMe M.2
  • Operating System
    Windows 11 Pro RTM x64
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Vostro 5890
    CPU
    Intel Core i5 10th Gen. 2.90GHz
    Memory
    16GB
    Graphics card(s)
    Onboard, no VGA, using a DisplayPort-to-VGA adapter
    Monitor(s) Displays
    24" Dell
    Hard Drives
    512GB SSD NVMe, 4TB Seagate HDD
    Browser
    Firefox, Edge
    Antivirus
    Windows Defender/Microsoft Security
I can't speak to the program itself but generally the installs I've done have a point early in the process to confirm where to install, can be a Custom install as desired. The dependencies mentioned will be in the process such as creating the folders and copying files to them, putting the icons/shortcuts where needed, copying supporting files into the Windows and it sub folders and creating Registry entries that tell Windows how to run the program/s. I've not worked with an Education edition of Windows yet, don't have a college in small town, so don't know if or what restrictions exist.
I know what you mean, by these two do not have the option to choose install location.

A potential solution I came across however quite complicated and not familiar with is Containers, such as docker.

Is there a better solution or avenue I could investigate?
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
I'm also not familiar with Containers, most times doing the Custom install have been with insufficient disk space on the default drive.
 

My Computers

System One System Two

  • OS
    Win11 Pro RTM
    Computer type
    Laptop
    Manufacturer/Model
    Dell Vostro 3400
    CPU
    Intel Core i5 11th Gen. 2.40GHz
    Memory
    12GB
    Hard Drives
    256GB SSD NVMe M.2
  • Operating System
    Windows 11 Pro RTM x64
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Vostro 5890
    CPU
    Intel Core i5 10th Gen. 2.90GHz
    Memory
    16GB
    Graphics card(s)
    Onboard, no VGA, using a DisplayPort-to-VGA adapter
    Monitor(s) Displays
    24" Dell
    Hard Drives
    512GB SSD NVMe, 4TB Seagate HDD
    Browser
    Firefox, Edge
    Antivirus
    Windows Defender/Microsoft Security

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
Create a junction at the place it wants to install to, and make the junction point to wherever you want the files to really reside.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 24H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC12WSHi7
    CPU
    12th Gen Intel Core i7-1260P, 2100 MHz
    Motherboard
    NUC12WSBi7
    Memory
    64 GB
    Graphics Card(s)
    Intel Iris Xe
    Sound Card
    built-in Realtek HD audio
    Monitor(s) Displays
    Dell U3219Q
    Screen Resolution
    3840x2160 @ 60Hz
    Hard Drives
    Samsung SSD 990 PRO 1TB
    Keyboard
    CODE 104-Key Mechanical with Cherry MX Clears
    Antivirus
    Microsoft Defender
  • Operating System
    Linux Mint 21.2 (Cinnamon)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Intel NUC8i5BEH
    CPU
    Intel Core i5-8259U CPU @ 2.30GHz
    Memory
    32 GB
    Graphics card(s)
    Iris Plus 655
    Keyboard
    CODE 104-Key Mechanical with Cherry MX Clears

My Computers

System One System Two

  • OS
    11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Asus TUF Gaming F16 (2024)
    CPU
    i7 13650HX
    Memory
    16GB DDR5
    Graphics Card(s)
    GeForce RTX 4060 Mobile
    Sound Card
    Eastern Electric MiniMax DAC Supreme; Emotiva UMC-200; Astell & Kern AK240
    Monitor(s) Displays
    Sony Bravia XR-55X90J
    Screen Resolution
    3840×2160
    Hard Drives
    512GB SSD internal
    37TB external
    PSU
    Li-ion
    Cooling
    2× Arc Flow Fans, 4× exhaust vents, 5× heatpipes
    Keyboard
    Logitech K800
    Mouse
    Logitech G402
    Internet Speed
    20Mbit/s up, 250Mbit/s down
    Browser
    FF
  • Operating System
    11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Medion S15450
    CPU
    i5 1135G7
    Memory
    16GB DDR4
    Graphics card(s)
    Intel Iris Xe
    Sound Card
    Eastern Electric MiniMax DAC Supreme; Emotiva UMC-200; Astell & Kern AK240
    Monitor(s) Displays
    Sony Bravia XR-55X90J
    Screen Resolution
    3840×2160
    Hard Drives
    2TB SSD internal
    37TB external
    PSU
    Li-ion
    Mouse
    Logitech G402
    Keyboard
    Logitech K800
    Internet Speed
    20Mbit/s up, 250Mbit/s down
    Browser
    FF
Thanks hdmi. Tried Sandboxie but the installation doesn't work on it for both. I assume because they are built with Electron: running the install file just takes the user to the app after a few seconds. All data is installed C:\Users\User\.cache and in AppData.

I managed to install Windows Sandbox and it kinda works, but need to figure out how to give it more resources: full access to the GPU and more memory and HDD to the virtual image
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
After you installed Sandboxie-Plus, did you right-click on the installer of the software package and choose Run Sandboxed? If you did, then nothing should be installed either in %UserProfile%\.cache or in %AppData% (and every modfification to the filesystem should be redirected to the sandbox, the location of which you can specify by using the FileRootPath setting).
 

My Computers

System One System Two

  • OS
    11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Asus TUF Gaming F16 (2024)
    CPU
    i7 13650HX
    Memory
    16GB DDR5
    Graphics Card(s)
    GeForce RTX 4060 Mobile
    Sound Card
    Eastern Electric MiniMax DAC Supreme; Emotiva UMC-200; Astell & Kern AK240
    Monitor(s) Displays
    Sony Bravia XR-55X90J
    Screen Resolution
    3840×2160
    Hard Drives
    512GB SSD internal
    37TB external
    PSU
    Li-ion
    Cooling
    2× Arc Flow Fans, 4× exhaust vents, 5× heatpipes
    Keyboard
    Logitech K800
    Mouse
    Logitech G402
    Internet Speed
    20Mbit/s up, 250Mbit/s down
    Browser
    FF
  • Operating System
    11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Medion S15450
    CPU
    i5 1135G7
    Memory
    16GB DDR4
    Graphics card(s)
    Intel Iris Xe
    Sound Card
    Eastern Electric MiniMax DAC Supreme; Emotiva UMC-200; Astell & Kern AK240
    Monitor(s) Displays
    Sony Bravia XR-55X90J
    Screen Resolution
    3840×2160
    Hard Drives
    2TB SSD internal
    37TB external
    PSU
    Li-ion
    Mouse
    Logitech G402
    Keyboard
    Logitech K800
    Internet Speed
    20Mbit/s up, 250Mbit/s down
    Browser
    FF
After you installed Sandboxie-Plus, did you right-click on the installer of the software package and choose Run Sandboxed? If you did, then nothing should be installed either in %UserProfile%\.cache or in %AppData% (and every modfification to the filesystem should be redirected to the sandbox, the location of which you can specify by using the FileRootPath setting).
Yes, and getting this error:
1704960068683.png
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
In that case you might be better off installing the software application in question on a separate installation of Windows (either via Native Boot with a VHDX or via a multi-boot configuration). I am afraid Windows Sandbox doesn't have the type of advanced capabilities that you are looking for. Whereas, as you probably know, running in a full-fledged VM like Hyper-V also doesn't provide direct access to the hardware so, it would kind of defeat the purpose IMO.

Sandboxie-Plus is unique in that it doesn't have these specific types of drawbacks, and, although it did receive a series of heavy updates (some of which have been to make it more compatible with Electron-based software applications) a while back, some compatibility issues still haven't been worked out yet, which is a bit unfortunate IMO. You could maybe consider opening a discussion topic on GitHub about the issue. The good news is, Sandboxie-Plus is still actively being developed.
 

My Computers

System One System Two

  • OS
    11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Asus TUF Gaming F16 (2024)
    CPU
    i7 13650HX
    Memory
    16GB DDR5
    Graphics Card(s)
    GeForce RTX 4060 Mobile
    Sound Card
    Eastern Electric MiniMax DAC Supreme; Emotiva UMC-200; Astell & Kern AK240
    Monitor(s) Displays
    Sony Bravia XR-55X90J
    Screen Resolution
    3840×2160
    Hard Drives
    512GB SSD internal
    37TB external
    PSU
    Li-ion
    Cooling
    2× Arc Flow Fans, 4× exhaust vents, 5× heatpipes
    Keyboard
    Logitech K800
    Mouse
    Logitech G402
    Internet Speed
    20Mbit/s up, 250Mbit/s down
    Browser
    FF
  • Operating System
    11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Medion S15450
    CPU
    i5 1135G7
    Memory
    16GB DDR4
    Graphics card(s)
    Intel Iris Xe
    Sound Card
    Eastern Electric MiniMax DAC Supreme; Emotiva UMC-200; Astell & Kern AK240
    Monitor(s) Displays
    Sony Bravia XR-55X90J
    Screen Resolution
    3840×2160
    Hard Drives
    2TB SSD internal
    37TB external
    PSU
    Li-ion
    Mouse
    Logitech G402
    Keyboard
    Logitech K800
    Internet Speed
    20Mbit/s up, 250Mbit/s down
    Browser
    FF
Late to the party as always, but I need to reply. It seems you do NOT know how Pinokio works. I've been using it a lot and I LOVE it.
>The problem is that these will only install in the predefined location on C drive

I don't rememember if you can choose where to install it, but who cares? Pinokio itself is only about 300 Megs in Size.
You can however choose where to store it's data (the huge files). One of the first things it does is ask you where to put that data folder. If you don't want that to be "C:\Pinokio", then choose somewhere else.

> i don't want to fill my C partition.
See above. ALL the files go into the data folder. WARNING: Put that data folder onto an SSD; unless you dont mind waiting 10 -15 minutes for models to load. You could die of old age if your data folder is on a physical drive. Some of those models are over 6 gigs in size.


> Additionally, i don't want to have files spread all over the drive/drives because Pinokio has a lot of dependencies which need to be installed.
> and all of them are installed in the data folder along with the models and everything. One folder to rule them all. Your entire install consists of two folders total. The main one and your data folder.


> Also when it's time to uninstall, i dont want to have leftover files and or registry entries.
Just delete those 2 folders and Pinokio is gone. If you are worried about registry entries, uninstall it with RevoUninstaller or something. The free version does a good job on advanced scan.

Pinokio is amazing. It uses symbolic links to the common stuff and the models. All that gets installed when you choose one of the zillion possible things that you can choose from the main pinikio explore menu is what has not already been installed or the existing stuff gets updated..
This means that if you have like 12 different front ends for stable difusion installed, you end up with ONE folder of models and 12 symbolic links in the 12 front end folders pointing to that one folder. This is amazing, really. If you want to add a new model, just put it into the right folder and everything can access it.


Everything is self-contained too. If for example, you install Fooocus and dont like it, then just delete the Fooocus folder. The common stuff folders will stay behind.
 

My Computer

System One

  • OS
    Win11
Back
Top Bottom