# Slicer Silent unattended installation string for Windows

**URL:** <https://discourse.slicer.org/t/slicer-silent-unattended-installation-string-for-windows/22862>\
**Category:** Support\
**Created:** [April 7, 2022, 11:49am UTC](https://discourse.slicer.org/t/slicer-silent-unattended-installation-string-for-windows/22862 "2022-04-07T11:49:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cyberdyne\_Systems](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cyberdyne_systems/32/14933_2.png) [@Cyberdyne\_Systems](https://discourse.slicer.org/u/Cyberdyne_Systems)\
**Post date:** [April 7, 2022, 11:49am UTC](https://discourse.slicer.org/t/slicer-silent-unattended-installation-string-for-windows/22862/1 "2022-04-07T11:49:39Z")

</div>

Hi, I need to integrate the new 3dSlicer Application into our Windows 10 20H2 Clients over SCCM Software distribution. Therefore I need to change the Installation path from %ProgramData% to %ProgramFiles% with a CMD installation string. %ProgramData% ‘re blocked by GPO and can’t be started b y customers.  
Unfortunately I don’t see any installation parameters with the command /?  
is there a command to do the installation under C:\ProgamFiles?  
thanx  
eCrofey

---

<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:** [April 7, 2022, 12:25pm UTC](https://discourse.slicer.org/t/slicer-silent-unattended-installation-string-for-windows/22862/2 "2022-04-07T12:25:01Z")

</div>

Recent Slicer versions are fully portable, therefore it does not require installation. You can zip up the installation folder and instead of installation just unzip it anywhere. This works even after you install extensions (they are all in the portable Slicer application folder, too).

Note that in general if you want to allow your users to install extensions, Slicer must be installed into a writable folder. If that is not acceptable then it is possible to allow installation of some extensions (that don’t install additional Python packages) in the user’s profile folder; and if the user starts Slicer as admin then it is possible to install any extensions.

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [April 7, 2022, 2:19pm UTC](https://discourse.slicer.org/t/slicer-silent-unattended-installation-string-for-windows/22862/3 "2022-04-07T14:19:03Z")

</div>

It’s a NSIS installer so there are some command line parameters you can use to run silently and set the install path. See [https://nsis.sourceforge.io/Docs/Chapter4.html#silent](https://nsis.sourceforge.io/Docs/Chapter4.html#silent).

I actually have a NSIS installer that installs multiple things including Slicer so it does the following

```auto
Section "3D Slicer 4.13.0-2021-09-14 (64-bit)" SEC01
  SectionIn 2 3
  SetOverwrite ifnewer
  SetOutPath "$TEMP\CompanyName"
  File "Slicer-4.13.0-2021-09-14-win-amd64.exe"
  ExecWait '"$TEMP\CompanyName\Slicer-4.13.0-2021-09-14-win-amd64.exe" /S /D=C:\Program Files\Slicer 4.13.0-2021-09-14'
SectionEnd

```

---

<div class="post-metadata">

**Author:** ![Cyberdyne\_Systems](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cyberdyne_systems/32/14933_2.png) [@Cyberdyne\_Systems](https://discourse.slicer.org/u/Cyberdyne_Systems)\
**Post date:** [April 8, 2022, 8:03am UTC](https://discourse.slicer.org/t/slicer-silent-unattended-installation-string-for-windows/22862/4 "2022-04-08T08:03:15Z")

</div>

awesome, thank you !
