ohif-viewer/docs/OHIF/Installation Instructions/Windows/Windows Server 2016.md

59 lines
2.1 KiB
Markdown
Raw Normal View History

2018-12-23 12:48:18 +01:00
# OHIF Standalone Installation Instructions For Windows Server 2016:
2018-12-23 15:12:16 +01:00
**Note: Turn-Off Windows Defender Realtime protection during this process*
2018-12-23 12:54:43 +01:00
2018-12-23 13:04:17 +01:00
1. Install Chocolatey
2018-12-23 15:18:22 +01:00
2018-12-23 15:21:58 +01:00
a. Go to this URL for instructions:
2018-12-23 15:22:09 +01:00
https://chocolatey.org/install#install-with-cmdexe
2018-12-23 15:18:40 +01:00
2018-12-23 15:12:16 +01:00
b. Execute this command in the cmd line as Admin:
`@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"`
2018-12-23 15:18:40 +01:00
2018-12-23 15:22:38 +01:00
c. Type `choco -?` to ensure the installation is OK.
2018-12-23 13:04:17 +01:00
2. Install Meteor
2018-12-23 15:19:40 +01:00
2018-12-23 15:12:16 +01:00
a. Type the command: `choco install meteor`
2018-12-23 13:04:17 +01:00
3. Install node.js
2018-12-23 15:19:40 +01:00
2018-12-23 15:12:16 +01:00
a. Download MSI from: https://nodejs.org/en/download/
4. Install MongoDB
2018-12-23 15:19:40 +01:00
2018-12-23 15:12:16 +01:00
a. Download MSI from:
https://www.mongodb.com/download-center/community
5. Install Git
2018-12-23 15:19:40 +01:00
2018-12-23 15:12:16 +01:00
a. https://git-scm.com/download/win
6. Download the OHIF Viewer repository from GitHub, or use Git to clone it (recommended)
2018-12-23 15:19:40 +01:00
2018-12-23 15:12:16 +01:00
a. GitHub Repo: https://github.com/OHIF/Viewers
2018-12-23 15:19:40 +01:00
2018-12-23 15:12:16 +01:00
b. GIT Clone command: git clone https://github.com/OHIF/Viewers
7. Set the Meteor Packages folder environment variable
2018-12-23 15:19:40 +01:00
2018-12-23 15:12:16 +01:00
a. Go to Advanced System Settings
2018-12-23 15:19:40 +01:00
2018-12-23 15:12:16 +01:00
b. Under Advanced, click on the "Environment Variables..." button
2018-12-23 15:19:40 +01:00
2018-12-23 15:12:16 +01:00
c. Under System Variables, click "New..."
2018-12-23 15:19:40 +01:00
2018-12-23 15:12:16 +01:00
d. Set the following:
2018-12-23 15:19:40 +01:00
2018-12-23 15:12:16 +01:00
i. Variable name: METEOR_PACKAGE_DIRS
2018-12-23 15:19:40 +01:00
2018-12-23 15:12:16 +01:00
ii. Variable Value: {path to the OHIF Viewer Packages Folder}
example: C:\OHIF\Viewers\Packages
8. Using the command line, navigate/cs to the standalone viewer folder, example: `cd C:\OHIF\Viewers\StandaloneViewer\StandaloneViewer`
9. run the command: `meteor npm install`
10. Run the command: `meteor`
2018-12-23 15:19:40 +01:00
2018-12-23 15:12:16 +01:00
a. if you get this error "Error: EPERM: operation not permitted, unlink" Or,
2018-12-23 15:19:40 +01:00
2018-12-23 15:12:16 +01:00
b. You feel the build is stale for a very long time > 10min with no visual indication, restart the cmd prompt and repeat this step (meteor)
# Troubleshooting:
1. If you get an error: Error: EPERM: operation not permitted, unlink 'c:\xxxxx'
a. https://github.com/phoenixframework/phoenix/issues/2464