Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions winfsp-tests/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*
!.gitignore
!config.json
!install.ps1
11 changes: 11 additions & 0 deletions winfsp-tests/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"download_url": "https://github.com/billziss-gh/winfsp/releases/download/v1.6/winfsp-tests-1.6.20027.zip",
"file_name": "winfsp-tests-1.6.20027.zip",
"install_cmd": "powershell",
"install_args": "-ExecutionPolicy Bypass -File @sw_path@\\install.ps1 -zipPath @sw_path@\\@file_name@",
"install_dest": "client",
"install_time": {
"kit": "after",
"driver": "before"
}
}
17 changes: 17 additions & 0 deletions winfsp-tests/install.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Install winfsp-tests into the WinFsp bin directory.
param(
[Parameter(Mandatory = $true)]
[String]$zipPath
)

$ErrorActionPreference = 'Stop'

$extractFolder = Join-Path $env:TEMP 'winfsp-tests'
$binDir = 'C:\Program Files (x86)\WinFsp\bin'
$exeName = 'winfsp-tests-x64.exe'

Expand-Archive -Force -Path $zipPath -DestinationPath $extractFolder
New-Item -ItemType Directory -Force -Path $binDir | Out-Null
Copy-Item -Force (Join-Path $extractFolder $exeName) (Join-Path $binDir $exeName)

Write-Output "Installed $exeName to $binDir"