-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathInstallPSGUI.ps1
45 lines (30 loc) · 1.26 KB
/
InstallPSGUI.ps1
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#requires -Version 2
<#
.NOTES
===========================================================================
Created on: 04.07.2016
Created by: David das Neves
Version: 0.2
Project: PSGUI
Filename: InstallPSGUI.ps1
===========================================================================
.DESCRIPTION
Installs PSGUI-Module and PSGUI-Manager.
#>
Write-Host -Object '==========================================================================='
Write-Host -Object 'Starting installation.'
$Location = (Get-Location).Path
$moduleFile = "$Location\Project PSGUI\PSGUI\Install-PSGUIModule.ps1"
#region install module
Write-Host -Object 'Loading Module File.'
. $moduleFile
Write-Host -Object 'Re-/Installing PSGUI Module'
Install-PSGUIModule -CleanUpPreviousData -Verbose
#endregion
#region create shortcut on user-desktop
New-LinkForGUIManager
#endregion
Write-Host -Object ' '
Write-Host -Object '==========================================================================='
Write-Host -Object ' Installation complete.' -ForegroundColor Green
Write-Host -Object '==========================================================================='