Portable installation of Slicer with extension on USB

I need a Slicer installation on a USB stick with SlicerMorph and other extensions installed for portability reasons. While I can install Slicer on the USB stick and the extensions to a folder within the USB stick, those paths seems hard coded. If I try to run Slicer on a different computer off the USB stick with a different drive letter, extensions doesn’t run.

The reason I want this is because we got couple of computers that are offline, I am just looking for an easy way to update them with new nightlies and their associated extension without having to download installers and the extensions. (This is on windows)

Hi Murat -

It sounds like you want something like the CustomSlicerGenerator. I haven’t used it myself in a while, but it should be possible to make it work with current Slicer. Basically Slicer itself is very relocatable but there are a few details about the way extension modules are managed that motivated the creation of this generator script.

https://www.slicer.org/wiki/Documentation/Labs/CustomSlicerGenerator

No, I don’t think this is what I am looking for. I am looking for something along the lines of this thread, but for windows. Installing extensions in binary distribution of Slicer

Would copying the extensions to lib\Slicer-4.11 folder work in windows too? I guess I can try and see…

That’s part of what the generator does - the point is that if you can reconfigure the modules as needed to make something custom without needing to compile the application from scratch.

Yes, this works on all platforms.

I tried this but didn’t work:

  • I installed SlicerMorph and all other dependent applications on a regular windows computer in the usual way.
  • Then I copied the Slicer installation folder (AppData/Local/Na-mic/Slicer 4.11.0-2019-09-25) to a usb drive (as D:/Slicer 4.11.0-2019-09-25)
  • then I copied everything in the AppData\Roaming\NA-MIC\Extensions-28523) to D:/Slicer 4.11.0-2019-09-25/lib/Slicer-4.11.
  • When I took the usb drive to the offline computer and started the Slicer, no extensions were found.

Am I missing a step?

I’ve just tried and it works perfectly for me. Extensions will not be listed, but all the modules should be available. Since these modules are now bundled with core modules, SlicerMorph category will be among other core modules (near the bottom of the category list).

himm weird, module search doesn’t find any of the extensions installed (e.g., extraeffects doesn’t show within the segment editor). I will try from the scratch one more time.

3D Slicer is now fully portable! See announcement with more details here: Slicer is now fully portable