Skip to content

Manual Installation

Luke Skrzypek edited this page Dec 3, 2024 · 1 revision

Manual installation of PowerShell SDK:

The following steps can be taken to manually install the ShareFile PowerShell modules:

  1. Build the ShareFileModule project; it multi-targets both Net Framework 4.8 and Net 8.
  2. Publish the net8.0-windows target of the ShareFileModule project.
  3. For the ShareFile module used for PowerShell 5.X, copy the contents of ...\ShareFileModule\bin\Release\net48 to a folder named ShareFile at your chosen destination. (ex. %userprofile%\Documents\Modules)
  4. For the ShareFile-Core module used for PowerShell 7+, copy the contents of ...\ShareFileModule\bin\Release\net8.0-windows\publish to a folder named ShareFile-Core at your chosen destination.
  5. Add the path of your chosen destination (ex. %userprofile%\Documents\Modules) to the PSModulePath environment variable.

To uninstall, simply remove the added paths from the PSModulePath environment variable, and delete the copied files.

Note: The PowerShell SDK is not signed, so you may need to modify the execution policy in PowerShell. The easiest way is to run Set-ExecutionPolicy RemoteSigned, but check the documentation on script signing to understand what the security impact of your choices are. http://technet.microsoft.com/en-us/library/hh849812.aspx

Clone this wiki locally