Skip to content

Commit 176f4ab

Browse files
committed
Initial commit
0 parents  commit 176f4ab

File tree

6 files changed

+82
-0
lines changed

6 files changed

+82
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# WebPI Power Shell
2+

WebPI.PS.psd1

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
@{
2+
3+
# Script module or binary module file associated with this manifest.
4+
RootModule = 'WebPI.PS.psm1'
5+
6+
# Version number of this module.
7+
ModuleVersion = '1.0.1'
8+
9+
# ID used to uniquely identify this module
10+
GUID = 'add2ca98-860b-4313-9ad1-9ef90884e6ca'
11+
12+
# Author of this module
13+
Author = 'Alan Plocieniak'
14+
15+
# Copyright statement for this module
16+
Copyright = '(c) 2010-2017 Alan Plocieniak'
17+
18+
# Description of the functionality provided by this module
19+
Description = 'Web Platform Installer Command Line wrapper'
20+
21+
# Minimum version of the Windows PowerShell engine required by this module
22+
PowerShellVersion = '2.0'
23+
24+
# Functions to export from this module
25+
FunctionsToExport = @(
26+
'Invoke-WebPI'
27+
)
28+
29+
# Cmdlets to export from this module
30+
CmdletsToExport = @()
31+
32+
# Variables to export from this module
33+
VariablesToExport = @()
34+
35+
# Aliases to export from this module
36+
AliasesToExport = @('??')
37+
38+
# Private data to pass to the module specified in RootModule/ModuleToProcess.
39+
# This may also contain a PSData hashtable with additional module metadata used by PowerShell.
40+
PrivateData = @{
41+
42+
PSData = @{
43+
# Tags applied to this module. These help with module discovery in online galleries.
44+
Tags = @('ps', 'power-shell', 'webpi', 'microsoft-web-platform')
45+
46+
# A URL to the license for this module.
47+
LicenseUri = 'https://www.microsoft.com/web/webpi/eula/webpi_45_en.htm'
48+
49+
# A URL to the main website for this project.
50+
ProjectUri = 'https://github.com/PowerShellLibrary/WebPI.PS'
51+
52+
# ReleaseNotes of this module
53+
ReleaseNotes = ''
54+
}
55+
}
56+
}

WebPI.PS.psm1

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
function Get-CurrentModule () {
2+
Get-Module | ? { $_.Name -eq "WebPI.PS" } | Select-Object -First 1
3+
}
4+
5+
function Get-CurrentModulePath () {
6+
$CurrentModule = Get-CurrentModule
7+
$ModuleItem = Get-Item $CurrentModule.Path
8+
$ModuleItem.Directory.FullName
9+
}
10+
11+
function Invoke-WebPI () {
12+
$CurrentModulePath = Get-CurrentModulePath
13+
$arguments = $args -join ' '
14+
cmd /c "$CurrentModulePath\webpi\WebpiCmd.exe $arguments"
15+
}
16+
17+
$exportModuleMemberParams = @{
18+
Alias = @('webpi')
19+
Function = @(
20+
'Invoke-WebPI'
21+
)
22+
}
23+
24+
Export-ModuleMember @exportModuleMemberParams
464 KB
Binary file not shown.

webpi/WebpiCmd.exe

162 KB
Binary file not shown.

webpi/sqmapi.dll

278 KB
Binary file not shown.

0 commit comments

Comments
 (0)