# Portable installation of Slicer with extension on USB

**URL:** <https://discourse.slicer.org/t/portable-installation-of-slicer-with-extension-on-usb/8582>\
**Category:** Support\
**Created:** [September 26, 2019, 7:08pm UTC](https://discourse.slicer.org/t/portable-installation-of-slicer-with-extension-on-usb/8582 "2019-09-26T19:08:04Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [September 26, 2019, 7:08pm UTC](https://discourse.slicer.org/t/portable-installation-of-slicer-with-extension-on-usb/8582/1 "2019-09-26T19:08:04Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [September 27, 2019, 2:24pm UTC](https://discourse.slicer.org/t/portable-installation-of-slicer-with-extension-on-usb/8582/2 "2019-09-27T14:24:48Z")

</div>

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](https://www.slicer.org/wiki/Documentation/Labs/CustomSlicerGenerator)

> **[pieper/CustomSlicerGenerator](https://github.com/pieper/CustomSlicerGenerator)**
>
> Tool to help deploy custom applications. Contribute to pieper/CustomSlicerGenerator development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [September 28, 2019, 2:40am UTC](https://discourse.slicer.org/t/portable-installation-of-slicer-with-extension-on-usb/8582/3 "2019-09-28T02:40:05Z")

</div>

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](https://discourse.slicer.org/t/installing-extensions-in-binary-distribution-of-slicer/7511/14)

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

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [September 28, 2019, 11:45am UTC](https://discourse.slicer.org/t/portable-installation-of-slicer-with-extension-on-usb/8582/4 "2019-09-28T11:45:45Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [September 28, 2019, 12:21pm UTC](https://discourse.slicer.org/t/portable-installation-of-slicer-with-extension-on-usb/8582/5 "2019-09-28T12:21:49Z")

</div>

> [@muratmaga](#):
>
> Would copying the extensions to lib\Slicer-4.11 folder work in windows too?

Yes, this works on all platforms.

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [September 30, 2019, 5:59pm UTC](https://discourse.slicer.org/t/portable-installation-of-slicer-with-extension-on-usb/8582/6 "2019-09-30T17:59:02Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [October 2, 2019, 1:38am UTC](https://discourse.slicer.org/t/portable-installation-of-slicer-with-extension-on-usb/8582/7 "2019-10-02T01:38:29Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [October 2, 2019, 3:48am UTC](https://discourse.slicer.org/t/portable-installation-of-slicer-with-extension-on-usb/8582/8 "2019-10-02T03:48:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [January 8, 2021, 7:16pm UTC](https://discourse.slicer.org/t/portable-installation-of-slicer-with-extension-on-usb/8582/9 "2021-01-08T19:16:09Z")

</div>

3D Slicer is now fully portable! See announcement with more details here: [Slicer is now fully portable](https://discourse.slicer.org/t/slicer-is-now-fully-portable/15410)
