-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.ps1
More file actions
26 lines (22 loc) · 851 Bytes
/
configure.ps1
File metadata and controls
26 lines (22 loc) · 851 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# If Black pearl is installed locally call:
# configure.ps1 -k2path "c:\Program Files (x86)\K2 blackpearl\"
# Tip: If you are a admin you may access the files from a server using
# configure.ps1 -k2path "\\k2server\C$\Program Files (x86)\K2 blackpearl\"
Param(
[Parameter(Mandatory=$True)]
[string]$k2path
)
# Dlls to include
$filePaths =
"\bin\SourceCode.Forms.Client.dll",
#"\bin\HostClientAPI.dll",
"\K2 SmartForms Runtime\bin\SourceCode.Forms.Controls.Web.SDK.dll",
"\K2 SmartForms Runtime\bin\SourceCode.Forms.Controls.Web.Shared.dll"
# Destination
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition
$destPath = "$scriptPath\src\K2ControlsCore\lib\net35"
# Loop through file list and copy to destPath
foreach($file in $filePaths){
Write-Output "$k2path$file -> $destPath"
Copy-Item "$k2path$file" "$destPath"
}