internal/templates/PSFProject-1.1.1.0.xml
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04">
<Obj RefId="0"> <TN RefId="0"> <T>PSModuleDevelopment.Template.Template</T> <T>System.Object</T> </TN> <ToString>PSModuleDevelopment.Template.Template</ToString> <Props> <S N="Name">PSFProject</S> <Obj N="Type" RefId="1"> <TN RefId="1"> <T>PSModuleDevelopment.Template.TemplateType</T> <T>System.Enum</T> <T>System.ValueType</T> <T>System.Object</T> </TN> <ToString>Project</ToString> <I32>1</I32> </Obj> <Version N="Version">1.1.1.0</Version> <S N="Description">PowerShell Framework based project scaffold</S> <S N="Author">Friedrich Weinmann</S> <DT N="CreatedOn">2018-10-20T00:00:00+00:00</DT> <Obj N="Tags" RefId="2"> <TN RefId="2"> <T>System.Collections.Generic.List`1[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]</T> <T>System.Object</T> </TN> <LST> <S>module</S> <S>psframework</S> </LST> </Obj> <Obj N="Parameters" RefId="3"> <TNRef RefId="2" /> <LST> <S>name</S> <S>author</S> <S>company</S> <S>description</S> </LST> </Obj> <Obj N="Scripts" RefId="4"> <TN RefId="3"> <T>System.Collections.Generic.Dictionary`2[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[PSModuleDevelopment.Template.ParameterScript, PSModuleDevelopment, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null]]</T> <T>System.Object</T> </TN> <DCT> <En> <S N="Key">year</S> <Obj N="Value" RefId="5"> <TN RefId="4"> <T>PSModuleDevelopment.Template.ParameterScript</T> <T>System.Object</T> </TN> <ToString>PSModuleDevelopment.Template.ParameterScript</ToString> <Props> <S N="StringScript">_x000D__x000A__x0009__x0009__x0009_Get-Date -Format "yyyy"_x000D__x000A__x0009__x0009_</S> <S N="Name">year</S> <SBK N="ScriptBlock">_x000D__x000A__x0009__x0009__x0009_Get-Date -Format "yyyy"_x000D__x000A__x0009__x0009_</SBK> </Props> <MS> <BA N="SerializationData">AAEAAAD/////AQAAAAAAAAAMAgAAAEpQU01vZHVsZURldmVsb3BtZW50LCBWZXJzaW9uPTIuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbAwDAAAAX1N5c3RlbS5NYW5hZ2VtZW50LkF1dG9tYXRpb24sIFZlcnNpb249My4wLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj0zMWJmMzg1NmFkMzY0ZTM1BQEAAAAsUFNNb2R1bGVEZXZlbG9wbWVudC5UZW1wbGF0ZS5QYXJhbWV0ZXJTY3JpcHQCAAAABE5hbWULU2NyaXB0QmxvY2sBBDtTeXN0ZW0uTWFuYWdlbWVudC5BdXRvbWF0aW9uLlNjcmlwdEJsb2NrU2VyaWFsaXphdGlvbkhlbHBlcgMAAAACAAAABgQAAAAEeWVhcgkFAAAABQUAAAA7U3lzdGVtLk1hbmFnZW1lbnQuQXV0b21hdGlvbi5TY3JpcHRCbG9ja1NlcmlhbGl6YXRpb25IZWxwZXIBAAAAClNjcmlwdFRleHQBAwAAAAYGAAAAIA0KCQkJR2V0LURhdGUgLUZvcm1hdCAieXl5eSINCgkJCw==</BA> </MS> </Obj> </En> <En> <S N="Key">guid2</S> <Obj N="Value" RefId="6"> <TNRef RefId="4" /> <ToString>PSModuleDevelopment.Template.ParameterScript</ToString> <Props> <S N="StringScript">_x000D__x000A__x0009__x0009__x0009_[System.Guid]::NewGuid().ToString().ToUpper()_x000D__x000A__x0009__x0009_</S> <S N="Name">guid2</S> <SBK N="ScriptBlock">_x000D__x000A__x0009__x0009__x0009_[System.Guid]::NewGuid().ToString().ToUpper()_x000D__x000A__x0009__x0009_</SBK> </Props> <MS> <BA N="SerializationData">AAEAAAD/////AQAAAAAAAAAMAgAAAEpQU01vZHVsZURldmVsb3BtZW50LCBWZXJzaW9uPTIuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbAwDAAAAX1N5c3RlbS5NYW5hZ2VtZW50LkF1dG9tYXRpb24sIFZlcnNpb249My4wLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj0zMWJmMzg1NmFkMzY0ZTM1BQEAAAAsUFNNb2R1bGVEZXZlbG9wbWVudC5UZW1wbGF0ZS5QYXJhbWV0ZXJTY3JpcHQCAAAABE5hbWULU2NyaXB0QmxvY2sBBDtTeXN0ZW0uTWFuYWdlbWVudC5BdXRvbWF0aW9uLlNjcmlwdEJsb2NrU2VyaWFsaXphdGlvbkhlbHBlcgMAAAACAAAABgQAAAAFZ3VpZDIJBQAAAAUFAAAAO1N5c3RlbS5NYW5hZ2VtZW50LkF1dG9tYXRpb24uU2NyaXB0QmxvY2tTZXJpYWxpemF0aW9uSGVscGVyAQAAAApTY3JpcHRUZXh0AQMAAAAGBgAAADYNCgkJCVtTeXN0ZW0uR3VpZF06Ok5ld0d1aWQoKS5Ub1N0cmluZygpLlRvVXBwZXIoKQ0KCQkL</BA> </MS> </Obj> </En> <En> <S N="Key">testfolder</S> <Obj N="Value" RefId="7"> <TNRef RefId="4" /> <ToString>PSModuleDevelopment.Template.ParameterScript</ToString> <Props> <S N="StringScript">_x000D__x000A__x0009__x0009__x0009_@'_x000D__x000A_Write-PSFMessage -Level Important -Message "Creating test result folder"_x000D__x000A_$null = New-Item -Path "$PSScriptRoot\..\.." -Name TestResults -ItemType Directory -Force_x000D__x000A_'@_x000D__x000A__x0009__x0009_</S> <S N="Name">testfolder</S> <SBK N="ScriptBlock">_x000D__x000A__x0009__x0009__x0009_@'_x000D__x000A_Write-PSFMessage -Level Important -Message "Creating test result folder"_x000D__x000A_$null = New-Item -Path "$PSScriptRoot\..\.." -Name TestResults -ItemType Directory -Force_x000D__x000A_'@_x000D__x000A__x0009__x0009_</SBK> </Props> <MS> <BA N="SerializationData">AAEAAAD/////AQAAAAAAAAAMAgAAAEpQU01vZHVsZURldmVsb3BtZW50LCBWZXJzaW9uPTIuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbAwDAAAAX1N5c3RlbS5NYW5hZ2VtZW50LkF1dG9tYXRpb24sIFZlcnNpb249My4wLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj0zMWJmMzg1NmFkMzY0ZTM1BQEAAAAsUFNNb2R1bGVEZXZlbG9wbWVudC5UZW1wbGF0ZS5QYXJhbWV0ZXJTY3JpcHQCAAAABE5hbWULU2NyaXB0QmxvY2sBBDtTeXN0ZW0uTWFuYWdlbWVudC5BdXRvbWF0aW9uLlNjcmlwdEJsb2NrU2VyaWFsaXphdGlvbkhlbHBlcgMAAAACAAAABgQAAAAKdGVzdGZvbGRlcgkFAAAABQUAAAA7U3lzdGVtLk1hbmFnZW1lbnQuQXV0b21hdGlvbi5TY3JpcHRCbG9ja1NlcmlhbGl6YXRpb25IZWxwZXIBAAAAClNjcmlwdFRleHQBAwAAAAYGAAAAtAENCgkJCUAnDQpXcml0ZS1QU0ZNZXNzYWdlIC1MZXZlbCBJbXBvcnRhbnQgLU1lc3NhZ2UgIkNyZWF0aW5nIHRlc3QgcmVzdWx0IGZvbGRlciINCiRudWxsID0gTmV3LUl0ZW0gLVBhdGggIiRQU1NjcmlwdFJvb3RcLi5cLi4iIC1OYW1lIFRlc3RSZXN1bHRzIC1JdGVtVHlwZSBEaXJlY3RvcnkgLUZvcmNlDQonQA0KCQkL</BA> </MS> </Obj> </En> <En> <S N="Key">guid</S> <Obj N="Value" RefId="8"> <TNRef RefId="4" /> <ToString>PSModuleDevelopment.Template.ParameterScript</ToString> <Props> <S N="StringScript">_x000D__x000A__x0009__x0009__x0009_[System.Guid]::NewGuid().ToString()_x000D__x000A__x0009__x0009_</S> <S N="Name">guid</S> <SBK N="ScriptBlock">_x000D__x000A__x0009__x0009__x0009_[System.Guid]::NewGuid().ToString()_x000D__x000A__x0009__x0009_</SBK> </Props> <MS> <BA N="SerializationData">AAEAAAD/////AQAAAAAAAAAMAgAAAEpQU01vZHVsZURldmVsb3BtZW50LCBWZXJzaW9uPTIuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbAwDAAAAX1N5c3RlbS5NYW5hZ2VtZW50LkF1dG9tYXRpb24sIFZlcnNpb249My4wLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj0zMWJmMzg1NmFkMzY0ZTM1BQEAAAAsUFNNb2R1bGVEZXZlbG9wbWVudC5UZW1wbGF0ZS5QYXJhbWV0ZXJTY3JpcHQCAAAABE5hbWULU2NyaXB0QmxvY2sBBDtTeXN0ZW0uTWFuYWdlbWVudC5BdXRvbWF0aW9uLlNjcmlwdEJsb2NrU2VyaWFsaXphdGlvbkhlbHBlcgMAAAACAAAABgQAAAAEZ3VpZAkFAAAABQUAAAA7U3lzdGVtLk1hbmFnZW1lbnQuQXV0b21hdGlvbi5TY3JpcHRCbG9ja1NlcmlhbGl6YXRpb25IZWxwZXIBAAAAClNjcmlwdFRleHQBAwAAAAYGAAAALA0KCQkJW1N5c3RlbS5HdWlkXTo6TmV3R3VpZCgpLlRvU3RyaW5nKCkNCgkJCw==</BA> </MS> </Obj> </En> <En> <S N="Key">guid3</S> <Obj N="Value" RefId="9"> <TNRef RefId="4" /> <ToString>PSModuleDevelopment.Template.ParameterScript</ToString> <Props> <S N="StringScript">_x000D__x000A__x0009__x0009__x0009_[System.Guid]::NewGuid().ToString().ToUpper()_x000D__x000A__x0009__x0009_</S> <S N="Name">guid3</S> <SBK N="ScriptBlock">_x000D__x000A__x0009__x0009__x0009_[System.Guid]::NewGuid().ToString().ToUpper()_x000D__x000A__x0009__x0009_</SBK> </Props> <MS> <BA N="SerializationData">AAEAAAD/////AQAAAAAAAAAMAgAAAEpQU01vZHVsZURldmVsb3BtZW50LCBWZXJzaW9uPTIuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbAwDAAAAX1N5c3RlbS5NYW5hZ2VtZW50LkF1dG9tYXRpb24sIFZlcnNpb249My4wLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj0zMWJmMzg1NmFkMzY0ZTM1BQEAAAAsUFNNb2R1bGVEZXZlbG9wbWVudC5UZW1wbGF0ZS5QYXJhbWV0ZXJTY3JpcHQCAAAABE5hbWULU2NyaXB0QmxvY2sBBDtTeXN0ZW0uTWFuYWdlbWVudC5BdXRvbWF0aW9uLlNjcmlwdEJsb2NrU2VyaWFsaXphdGlvbkhlbHBlcgMAAAACAAAABgQAAAAFZ3VpZDMJBQAAAAUFAAAAO1N5c3RlbS5NYW5hZ2VtZW50LkF1dG9tYXRpb24uU2NyaXB0QmxvY2tTZXJpYWxpemF0aW9uSGVscGVyAQAAAApTY3JpcHRUZXh0AQMAAAAGBgAAADYNCgkJCVtTeXN0ZW0uR3VpZF06Ok5ld0d1aWQoKS5Ub1N0cmluZygpLlRvVXBwZXIoKQ0KCQkL</BA> </MS> </Obj> </En> <En> <S N="Key">psframework</S> <Obj N="Value" RefId="10"> <TNRef RefId="4" /> <ToString>PSModuleDevelopment.Template.ParameterScript</ToString> <Props> <S N="StringScript">_x000D__x000A__x0009__x0009__x0009_(Get-Module PSFramework).Version.ToString()_x000D__x000A__x0009__x0009_</S> <S N="Name">psframework</S> <SBK N="ScriptBlock">_x000D__x000A__x0009__x0009__x0009_(Get-Module PSFramework).Version.ToString()_x000D__x000A__x0009__x0009_</SBK> </Props> <MS> <BA N="SerializationData">AAEAAAD/////AQAAAAAAAAAMAgAAAEpQU01vZHVsZURldmVsb3BtZW50LCBWZXJzaW9uPTIuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbAwDAAAAX1N5c3RlbS5NYW5hZ2VtZW50LkF1dG9tYXRpb24sIFZlcnNpb249My4wLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj0zMWJmMzg1NmFkMzY0ZTM1BQEAAAAsUFNNb2R1bGVEZXZlbG9wbWVudC5UZW1wbGF0ZS5QYXJhbWV0ZXJTY3JpcHQCAAAABE5hbWULU2NyaXB0QmxvY2sBBDtTeXN0ZW0uTWFuYWdlbWVudC5BdXRvbWF0aW9uLlNjcmlwdEJsb2NrU2VyaWFsaXphdGlvbkhlbHBlcgMAAAACAAAABgQAAAALcHNmcmFtZXdvcmsJBQAAAAUFAAAAO1N5c3RlbS5NYW5hZ2VtZW50LkF1dG9tYXRpb24uU2NyaXB0QmxvY2tTZXJpYWxpemF0aW9uSGVscGVyAQAAAApTY3JpcHRUZXh0AQMAAAAGBgAAADQNCgkJCShHZXQtTW9kdWxlIFBTRnJhbWV3b3JrKS5WZXJzaW9uLlRvU3RyaW5nKCkNCgkJCw==</BA> </MS> </Obj> </En> <En> <S N="Key">date</S> <Obj N="Value" RefId="11"> <TNRef RefId="4" /> <ToString>PSModuleDevelopment.Template.ParameterScript</ToString> <Props> <S N="StringScript">_x000D__x000A__x0009__x0009__x0009_Get-Date -Format "yyyy-MM-dd"_x000D__x000A__x0009__x0009_</S> <S N="Name">date</S> <SBK N="ScriptBlock">_x000D__x000A__x0009__x0009__x0009_Get-Date -Format "yyyy-MM-dd"_x000D__x000A__x0009__x0009_</SBK> </Props> <MS> <BA N="SerializationData">AAEAAAD/////AQAAAAAAAAAMAgAAAEpQU01vZHVsZURldmVsb3BtZW50LCBWZXJzaW9uPTIuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbAwDAAAAX1N5c3RlbS5NYW5hZ2VtZW50LkF1dG9tYXRpb24sIFZlcnNpb249My4wLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj0zMWJmMzg1NmFkMzY0ZTM1BQEAAAAsUFNNb2R1bGVEZXZlbG9wbWVudC5UZW1wbGF0ZS5QYXJhbWV0ZXJTY3JpcHQCAAAABE5hbWULU2NyaXB0QmxvY2sBBDtTeXN0ZW0uTWFuYWdlbWVudC5BdXRvbWF0aW9uLlNjcmlwdEJsb2NrU2VyaWFsaXphdGlvbkhlbHBlcgMAAAACAAAABgQAAAAEZGF0ZQkFAAAABQUAAAA7U3lzdGVtLk1hbmFnZW1lbnQuQXV0b21hdGlvbi5TY3JpcHRCbG9ja1NlcmlhbGl6YXRpb25IZWxwZXIBAAAAClNjcmlwdFRleHQBAwAAAAYGAAAAJg0KCQkJR2V0LURhdGUgLUZvcm1hdCAieXl5eS1NTS1kZCINCgkJCw==</BA> </MS> </Obj> </En> <En> <S N="Key">guid4</S> <Obj N="Value" RefId="12"> <TNRef RefId="4" /> <ToString>PSModuleDevelopment.Template.ParameterScript</ToString> <Props> <S N="StringScript">_x000D__x000A__x0009__x0009__x0009_[System.Guid]::NewGuid().ToString().ToUpper()_x000D__x000A__x0009__x0009_</S> <S N="Name">guid4</S> <SBK N="ScriptBlock">_x000D__x000A__x0009__x0009__x0009_[System.Guid]::NewGuid().ToString().ToUpper()_x000D__x000A__x0009__x0009_</SBK> </Props> <MS> <BA N="SerializationData">AAEAAAD/////AQAAAAAAAAAMAgAAAEpQU01vZHVsZURldmVsb3BtZW50LCBWZXJzaW9uPTIuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbAwDAAAAX1N5c3RlbS5NYW5hZ2VtZW50LkF1dG9tYXRpb24sIFZlcnNpb249My4wLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj0zMWJmMzg1NmFkMzY0ZTM1BQEAAAAsUFNNb2R1bGVEZXZlbG9wbWVudC5UZW1wbGF0ZS5QYXJhbWV0ZXJTY3JpcHQCAAAABE5hbWULU2NyaXB0QmxvY2sBBDtTeXN0ZW0uTWFuYWdlbWVudC5BdXRvbWF0aW9uLlNjcmlwdEJsb2NrU2VyaWFsaXphdGlvbkhlbHBlcgMAAAACAAAABgQAAAAFZ3VpZDQJBQAAAAUFAAAAO1N5c3RlbS5NYW5hZ2VtZW50LkF1dG9tYXRpb24uU2NyaXB0QmxvY2tTZXJpYWxpemF0aW9uSGVscGVyAQAAAApTY3JpcHRUZXh0AQMAAAAGBgAAADYNCgkJCVtTeXN0ZW0uR3VpZF06Ok5ld0d1aWQoKS5Ub1N0cmluZygpLlRvVXBwZXIoKQ0KCQkL</BA> </MS> </Obj> </En> <En> <S N="Key">testresults</S> <Obj N="Value" RefId="13"> <TNRef RefId="4" /> <ToString>PSModuleDevelopment.Template.ParameterScript</ToString> <Props> <S N="StringScript">_x000D__x000A__x0009__x0009__x0009_@'_x000D__x000A_$TestOuputFile = Join-Path "$PSScriptRoot\..\..\TestResults" "TEST-$($file.BaseName).xml"_x000D__x000A_ $results = Invoke-Pester -Script $file.FullName -Show $Show -PassThru -OutputFile $TestOuputFile -OutputFormat NUnitXml_x000D__x000A_'@_x000D__x000A__x0009__x0009_</S> <S N="Name">testresults</S> <SBK N="ScriptBlock">_x000D__x000A__x0009__x0009__x0009_@'_x000D__x000A_$TestOuputFile = Join-Path "$PSScriptRoot\..\..\TestResults" "TEST-$($file.BaseName).xml"_x000D__x000A_ $results = Invoke-Pester -Script $file.FullName -Show $Show -PassThru -OutputFile $TestOuputFile -OutputFormat NUnitXml_x000D__x000A_'@_x000D__x000A__x0009__x0009_</SBK> </Props> <MS> <BA N="SerializationData">AAEAAAD/////AQAAAAAAAAAMAgAAAEpQU01vZHVsZURldmVsb3BtZW50LCBWZXJzaW9uPTIuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbAwDAAAAX1N5c3RlbS5NYW5hZ2VtZW50LkF1dG9tYXRpb24sIFZlcnNpb249My4wLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj0zMWJmMzg1NmFkMzY0ZTM1BQEAAAAsUFNNb2R1bGVEZXZlbG9wbWVudC5UZW1wbGF0ZS5QYXJhbWV0ZXJTY3JpcHQCAAAABE5hbWULU2NyaXB0QmxvY2sBBDtTeXN0ZW0uTWFuYWdlbWVudC5BdXRvbWF0aW9uLlNjcmlwdEJsb2NrU2VyaWFsaXphdGlvbkhlbHBlcgMAAAACAAAABgQAAAALdGVzdHJlc3VsdHMJBQAAAAUFAAAAO1N5c3RlbS5NYW5hZ2VtZW50LkF1dG9tYXRpb24uU2NyaXB0QmxvY2tTZXJpYWxpemF0aW9uSGVscGVyAQAAAApTY3JpcHRUZXh0AQMAAAAGBgAAAOcBDQoJCQlAJw0KJFRlc3RPdXB1dEZpbGUgPSBKb2luLVBhdGggIiRQU1NjcmlwdFJvb3RcLi5cLi5cVGVzdFJlc3VsdHMiICJURVNULSQoJGZpbGUuQmFzZU5hbWUpLnhtbCINCiAgICAkcmVzdWx0cyA9IEludm9rZS1QZXN0ZXIgLVNjcmlwdCAkZmlsZS5GdWxsTmFtZSAtU2hvdyAkU2hvdyAtUGFzc1RocnUgLU91dHB1dEZpbGUgJFRlc3RPdXB1dEZpbGUgLU91dHB1dEZvcm1hdCBOVW5pdFhtbA0KJ0ANCgkJCw==</BA> </MS> </Obj> </En> </DCT> </Obj> <Obj N="Children" RefId="14"> <TN RefId="5"> <T>System.Collections.Generic.List`1[[PSModuleDevelopment.Template.TemplateItemBase, PSModuleDevelopment, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null]]</T> <T>System.Object</T> </TN> <LST> <Obj RefId="15"> <TN RefId="6"> <T>PSModuleDevelopment.Template.TemplateItemFolder</T> <T>PSModuleDevelopment.Template.TemplateItemBase</T> <T>System.Object</T> </TN> <ToString>PSModuleDevelopment.Template.TemplateItemFolder</ToString> <Props> <Obj N="Children" RefId="16"> <TNRef RefId="5" /> <LST> <S>PSModuleDevelopment.Template.TemplateItemFile</S> <S>PSModuleDevelopment.Template.TemplateItemFile</S> <S>PSModuleDevelopment.Template.TemplateItemFile</S> <S>PSModuleDevelopment.Template.TemplateItemFile</S> <S>PSModuleDevelopment.Template.TemplateItemFile</S> </LST> </Obj> <S N="Name">build</S> <S N="RelativePath">build</S> <S N="Identifier">þ</S> <Obj N="FileSystemParameterFlat" RefId="17"> <TNRef RefId="2" /> <LST /> </Obj> <Obj N="FileSystemParameterScript" RefId="18"> <TNRef RefId="2" /> <LST /> </Obj> </Props> <MS> <BA N="SerializationData">AAEAAAD/////AQAAAAAAAAAMAgAAAEpQU01vZHVsZURldmVsb3BtZW50LCBWZXJzaW9uPTIuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbAUBAAAAL1BTTW9kdWxlRGV2ZWxvcG1lbnQuVGVtcGxhdGUuVGVtcGxhdGVJdGVtRm9sZGVyBgAAAAhDaGlsZHJlbgROYW1lDFJlbGF0aXZlUGF0aApJZGVudGlmaWVyF0ZpbGVTeXN0ZW1QYXJhbWV0ZXJGbGF0GUZpbGVTeXN0ZW1QYXJhbWV0ZXJTY3JpcHQDAQEBAwOeAVN5c3RlbS5Db2xsZWN0aW9ucy5HZW5lcmljLkxpc3RgMVtbUFNNb2R1bGVEZXZlbG9wbWVudC5UZW1wbGF0ZS5UZW1wbGF0ZUl0ZW1CYXNlLCBQU01vZHVsZURldmVsb3BtZW50LCBWZXJzaW9uPTIuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbF1df1N5c3RlbS5Db2xsZWN0aW9ucy5HZW5lcmljLkxpc3RgMVtbU3lzdGVtLlN0cmluZywgbXNjb3JsaWIsIFZlcnNpb249NC4wLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1iNzdhNWM1NjE5MzRlMDg5XV1/U3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tTeXN0ZW0uU3RyaW5nLCBtc2NvcmxpYiwgVmVyc2lvbj00LjAuMC4wLCBDdWx0dXJ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AcAAAAJCgAAAAAAAAAAAAAAARcAAAAHAAAACQoAAAAAAAAAAAAAAAEZAAAABwAAAAkKAAAAAAAAAAAAAAABGgAAAAcAAAAJCgAAAAAAAAAAAAAAAR4AAAAHAAAACQoAAAAAAAAAAAAAAAEfAAAABwAAAAkKAAAAAAAAAAAAAAABIQAAAAcAAAAJOQAAAAEAAAABAAAAASIAAAAHAAAACQoAAAAAAAAAAAAAAAEmAAAABwAAAAkKAAAAAAAAAAAAAAABJwAAAAcAAAAJCgAAAAAAAAAAAAAAASkAAAAHAAAACQoAAAAAAAAAAAAAAAEqAAAABwAAAAkKAAAAAAAAAAAAAAABLgAAAAcAAAAJCgAAAAAAAAAAAAAAAS8AAAAHAAAACQoAAAAAAAAAAAAAAAExAAAABwAAAAk7AAAAAQAAAAEAAAABMgAAAAcAAAAJCgAAAAAAAAAAAAAAATYAAAAHAAAACQoAAAAAAAAAAAAAAAE3AAAABwAAAAkKAAAAAAAAAAAAAAAROQAAAAQAAAAGPQAAAARuYW1lDQMROwAAAAQAAAAGPgAAAARuYW1lDQML</BA> </MS> </Obj> <Obj RefId="19"> <TNRef RefId="6" /> <ToString>PSModuleDevelopment.Template.TemplateItemFolder</ToString> <Props> <Obj N="Children" RefId="20"> <TNRef RefId="5" /> <LST> <S>PSModuleDevelopment.Template.TemplateItemFolder</S> </LST> </Obj> <S N="Name">library</S> <S N="RelativePath">library</S> <S N="Identifier">þ</S> <Obj N="FileSystemParameterFlat" RefId="21"> <TNRef RefId="2" /> <LST /> </Obj> <Obj N="FileSystemParameterScript" RefId="22"> <TNRef RefId="2" /> <LST /> </Obj> </Props> <MS> <BA N="SerializationData">AAEAAAD/////AQAAAAAAAAAMAgAAAEpQU01vZHVsZURldmVsb3BtZW50LCBWZXJzaW9uPTIuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbAUBAAAAL1BTTW9kdWxlRGV2ZWxvcG1lbnQuVGVtcGxhdGUuVGVtcGxh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FtZQ0DEUsAAAAEAAAABlAAAAAEbmFtZQ0DEU0AAAAEAAAABlEAAAAEbmFtZQ0DCw==</BA> </MS> </Obj> <Obj RefId="23"> <TNRef RefId="6" /> <ToString>PSModuleDevelopment.Template.TemplateItemFolder</ToString> <Props> <Obj N="Children" RefId="24"> <TNRef RefId="5" /> <LST> <S>PSModuleDevelopment.Template.TemplateItemFolder</S> <S>PSModuleDevelopment.Template.TemplateItemFolder</S> <S>PSModuleDevelopment.Template.TemplateItemFolder</S> <S>PSModuleDevelopment.Template.TemplateItemFolder</S> <S>PSModuleDevelopment.Template.TemplateItemFolder</S> <S>PSModuleDevelopment.Template.TemplateItemFolder</S> <S>PSModuleDevelopment.Template.TemplateItemFile</S> <S>PSModuleDevelopment.Template.TemplateItemFile</S> <S>PSModuleDevelopment.Template.TemplateItemFile</S> </LST> </Obj> <S N="Name">þnameþ</S> <S N="RelativePath">þnameþ</S> <S N="Identifier">þ</S> <Obj N="FileSystemParameterFlat" RefId="25"> <TNRef RefId="2" /> <LST> <S>name</S> </LST> </Obj> <Obj N="FileSystemParameterScript" RefId="26"> <TNRef RefId="2" /> <LST /> </Obj> </Props> <MS> <BA N="SerializationData">AAEAAAD/////AQAAAAAAAAAMAgAAAEpQU01vZHVsZURldmVsb3BtZW50LCBWZXJzaW9uPTIuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbAUBAAAAL1BTTW9kdWxlRGV2ZWxvcG1lbnQuVGVtcGxhdGUuVGVtcGxhdGVJdGVtRm9sZGVyBgAAAAhDaGlsZHJlbgROYW1lDFJlbGF0aXZlUGF0aApJZGVudGlmaWVyF0ZpbGVTeXN0ZW1QYXJhbWV0ZXJGbGF0GUZpbGVTeXN0ZW1QYXJhbWV0ZXJTY3JpcHQDAQEBAwOeAVN5c3RlbS5Db2xsZWN0aW9ucy5HZW5lcmljLkxpc3RgMVtbUFNNb2R1bGVEZXZlbG9wbWVudC5UZW1wbGF0ZS5UZ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WxsT3JFbXB0eQ0KICAgICAgICAgICAgfQ0KICAgICAgICAgICAgJHRlc3RoZWxwZXJyb3JzICs9IDENCiAgICAgICAgfQ0KICAgICAgICANCiAgICAgICAgJHRlc3RoZWxwYWxsICs9IDENCiAgICAgICAgaWYgKFtTdHJpbmddOjpJc051bGxPckVtcHR5KCgkSGVscC5FeGFtcGxlcy5FeGFtcGxlLlJlbWFya3MgfCBTZWxlY3QtT2JqZWN0IC1GaXJzdCAxKS5UZXh0KSkgew0KICAgICAgICAgICAgIyBTaG91bGQgYmUgYXQgbGVhc3Qgb25lIGV4YW1wbGUgZGVzY3JpcHRpb24NCiAgICAgICAgICAgIEl0ICJnZXRzIGV4YW1wbGUgaGVscCBmcm9tICRjb21tYW5kTmFtZSIgew0KICAgICAgICAgICAgICAgICgkSGVscC5FeGFtcGxlcy5FeGFtcGxlLlJlbWFya3MgfCBTZWxlY3QtT2JqZWN0IC1GaXJzdCAxKS5UZXh0IHwgU2hvdWxkIC1Ob3QgLUJlTnVsbE9yRW1wdHkNCiAgICAgICAgICAgIH0NCiAgICAgICAgICAgICR0ZXN0aGVscGVycm9ycyArPSAxDQogICAgICAgIH0NCiAgICAgICAgDQogICAgICAgIGlmICgkdGVzdGhlbHBlcnJvcnMgLWVxIDApIHsNCiAgICAgICAgICAgIEl0ICJSYW4gc2lsZW50bHkgJHRlc3RoZWxwYWxsIHRlc3RzIiB7DQogICAgICAgICAgICAgICAgJHRlc3RoZWxwZXJyb3JzIHwgU2hvdWxkIC1iZSAwDQogICAgICAgICAgICB9DQogICAgICAgIH0NCiAgICAgICAgDQogICAgICAgICR0ZXN0cGFyYW1zYWxsID0gMA0KICAgICAgICAkdGVzdHBhcmFtc2Vycm9ycyA9IDANCiAgICAgICAgQ29udGV4dCAiVGVzdCBwYXJhbWV0ZXIgaGVscCBmb3IgJGNvbW1hbmROYW1lIiB7DQogICAgICAgICAgICANCiAgICAgICAgICAgICRDb21tb24gPSAnRGVidWcnLCAnRXJyb3JBY3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aXB0aW9uIGZvciBldmVyeSBwYXJhbWV0ZXINCiAgICAgICAgICAgICAgICAgICAgSXQgImdldHMgaGVscCBmb3IgcGFyYW1ldGVyOiAkcGFyYW1ldGVyTmFtZSA6IGluICRjb21tYW5kTmFtZSIgew0KICAgICAgICAgICAgICAgICAgICAgICAgJHBhcmFtZXRlckhlbHAuRGVzY3JpcHRpb24uVGV4dCB8IFNob3VsZCAtTm90IC1CZU51bGxPckVtcHR5DQogICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAgICAgJHRlc3RwYXJhbXNlcnJvcnMgKz0gMQ0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICANCiAgICAgICAgICAgICAgICAkdGVzdHBhcmFtc2FsbCArPSAxDQogICAgICAgICAgICAgICAgJGNvZGVNYW5kYXRvcnkgPSAkcGFyYW1ldGVyLklzTWFuZGF0b3J5LnRvU3RyaW5nKCkNCiAgICAgICAgICAgICAgICBpZiAoJHBhcmFtZXRlckhlbHAuUmVxdWlyZWQgLW5lICRjb2RlTWFuZGF0b3J5KSB7DQogICAgICAgICAgICAgICAgICAgICMgUmVxdWlyZWQgdmFsdWUgaW4gSGVscCBzaG91bGQgbWF0Y2ggSXNNYW5kYXRvcnkgcHJvcGVydHkgb2YgcGFyYW1ldGVyDQogICAgICAgICAgICAgICAgICAgIEl0ICJoZWxwIGZvciAkcGFyYW1ldGVyTmFtZSBwYXJhbWV0ZXIgaW4gJGNvbW1hbmROYW1lIGhhcyBjb3JyZWN0IE1hbmRhdG9yeSB2YWx1ZSIgew0KICAgICAgICAgICAgICAgICAgICAgICAgJHBhcmFtZXRlckhlbHAuUmVxdWlyZWQgfCBTaG91bGQgLUJlICRjb2RlTWFuZGF0b3J5DQogICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAgICAgJHRlc3RwYXJhbXNlcnJvcnMgKz0gMQ0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICANCiAgICAgICAgICAgICAgICBpZiAoJEhlbHBUZXN0U2tpcFBhcmFtZXRlclR5cGVbJGNvbW1hbmROYW1lXSAtY29udGFpbnMgJHBhcmFtZXRlck5hbWUpIHsgY29udGludWUgfQ0KICAgICAgICAgICAgICAgIA0KICAgICAgICAgICAgICAgICRjb2RlVHlwZSA9ICRwYXJhbWV0ZXIuUGFyYW1ldGVyVHlwZS5OYW1lDQogICAgICAgICAgICAgICAgDQogICAgICAgICAgICAgICAgJHRlc3RwYXJhbXNhbGwgKz0gMQ0KICAgICAgICAgICAgICAgIGlmICgkcGFyYW1ldGVyLlBhcmFtZXRlclR5cGUuSXNFbnVtKSB7DQogICAgICAgICAgICAgICAgICAgICMgRW51bWVyYXRpb25zIG9mdGVuIGhhdmUgaXNzdWVzIHdpdGggdGhlIHR5cGVuYW1lIG5vdCBiZWluZyByZWxpYWJseSBhdmFpbGFibGUNCiAgICAgICAgICAgICAgICAgICAgJG5hbWVzID0gJHBhcmFtZXRlci5QYXJhbWV0ZXJUeXBlOjpHZXROYW1lcygkcGFyYW1ldGVyLlBhcmFtZXRlclR5cGUpDQogICAgICAgICAgICAgICAgICAgIGlmICgkcGFyYW1ldGVySGVscC5wYXJhbWV0ZXJWYWx1ZUdyb3VwLnBhcmFtZXRlclZhbHVlIC1uZSAkbmFtZXMpIHsNCiAgICAgICAgICAgICAgICAgICAgICAgICMgUGFyYW1ldGVyIHR5cGUgaW4gSGVscCBzaG91bGQgbWF0Y2ggY29kZQ0KICAgICAgICAgICAgICAgICAgICAgICAgSXQgImhlbHAgZm9yICRjb21tYW5kTmFtZSBoYXMgY29ycmVjdCBwYXJhbWV0ZXIgdHlwZSBmb3IgJHBhcmFtZXRlck5hbWUiIHsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAkcGFyYW1ldGVySGVscC5wYXJhbWV0ZXJWYWx1ZUdyb3VwLnBhcmFtZXRlclZhbHVlIHwgU2hvdWxkIC1iZSAkbmFtZXMNCiAgICAgICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAgICAgICAgICR0ZXN0cGFyYW1zZXJyb3JzICs9IDENCiAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICBlbHNlaWYgKCRwYXJhbWV0ZXIuUGFyYW1ldGVyVHlwZS5GdWxsTmFtZSAtaW4gJEhlbHBUZXN0RW51bWVyYXRlZEFycmF5cykgew0KICAgICAgICAgICAgICAgICAgICAjIEVudW1lcmF0aW9ucyBvZnRlbiBoYXZlIGlzc3VlcyB3aXRoIHRoZSB0eXBlbmFtZSBub3QgYmVpbmcgcmVsaWFibHkgYXZhaWxhYmxlDQogICAgICAgICAgICAgICAgICAgICRuYW1lcyA9IFtFbnVtXTo6R2V0TmFtZXMoJHBhcmFtZXRlci5QYXJhbWV0ZXJUeXBlLkRlY2xhcmVkTWVtYmVyc1swXS5SZXR1cm5UeXBlKQ0KICAgICAgICAgICAgICAgICAgICBpZiAoJHBhcmFtZXRlckhlbHAucGFyYW1ldGVyVmFsdWVHcm91cC5wYXJhbWV0ZXJWYWx1ZSAtbmUgJG5hbWVzKSB7DQogICAgICAgICAgICAgICAgICAgICAgICAjIFBhcmFtZXRlciB0eXBlIGluIEhlbHAgc2hvdWxkIG1hdGNoIGNvZGUNCiAgICAgICAgICAgICAgICAgICAgICAgIEl0ICJoZWxwIGZvciAkY29tbWFuZE5hbWUgaGFzIGNvcnJlY3QgcGFyYW1ldGVyIHR5cGUgZm9yICRwYXJhbWV0ZXJOYW1lIiB7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgJHBhcmFtZXRlckhlbHAucGFyYW1ldGVyVmFsdWVHcm91cC5wYXJhbWV0ZXJWYWx1ZSB8IFNob3VsZCAtYmUgJG5hbWVzDQogICAgICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgICAgICAkdGVzdHBhcmFtc2Vycm9ycyArPSAxDQogICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgZWxzZSB7DQogICAgICAgICAgICAgICAgICAgICMgVG8gYXZvaWQgY2FsbGluZyBUcmltIG1ldGhvZCBvbiBhIG51bGwgb2JqZWN0Lg0KICAgICAgICAgICAgICAgICAgICAkaGVscFR5cGUgPSBpZiAoJHBhcmFtZXRlckhlbHAucGFyYW1ldGVyVmFsdWUpIHsgJHBhcmFtZXRlckhlbHAucGFyYW1ldGVyVmFsdWUuVHJpbSgpIH0NCiAgICAgICAgICAgICAgICAgICAgaWYgKCRoZWxwVHlwZSAtbmUgJGNvZGVUeXBlKSB7DQogICAgICAgICAgICAgICAgICAgICAgICAjIFBhcmFtZXRlciB0eXBlIGluIEhlbHAgc2hvdWxkIG1hdGNoIGNvZGUNCiAgICAgICAgICAgICAgICAgICAgICAgIEl0ICJoZWxwIGZvciAkY29tbWFuZE5hbWUgaGFzIGNvcnJlY3QgcGFyYW1ldGVyIHR5cGUgZm9yICRwYXJhbWV0ZXJOYW1lIiB7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgJGhlbHBUeXBlIHwgU2hvdWxkIC1iZSAkY29kZVR5cGUNCiAgICAgICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAgICAgICAgICR0ZXN0cGFyYW1zZXJyb3JzICs9IDENCiAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgIH0NCiAgICAgICAgICAgIGZvcmVhY2ggKCRoZWxwUGFybSBpbiAkSGVscFBhcmFtZXRlck5hbWVzKSB7DQogICAgICAgICAgICAgICAgJHRlc3RwYXJhbXNhbGwgKz0gMQ0KICAgICAgICAgICAgICAgIGlmICgkaGVscFBhcm0gLW5vdGluICRwYXJhbWV0ZXJOYW1lcykgew0KICAgICAgICAgICAgICAgICAgICAjIFNob3VsZG4ndCBmaW5kIGV4dHJhIHBhcmFtZXRlcnMgaW4gaGVscC4NCiAgICAgICAgICAgICAgICAgICAgSXQ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EAAAEAAAABAAAAAYoBAAAHAAAACQsAAAAAAAAAAAAAAAGOAQAABwAAAAkLAAAAAAAAAAAAAAABjwEAAAcAAAAJCwAAAAAAAAAAAAAAAZEBAAAHAAAACQsAAAAAAAAAAAAAAAGSAQAABwAAAAkLAAAAAAAAAAAAAAABlgEAAAcAAAAJCwAAAAAAAAAAAAAAAZcBAAAHAAAACQsAAAAAAAAAAAAAABGYAQAABAAAAAalAQAABG5hbWUNAxGaAQAABAAAAAamAQAABG5hbWUGpwEAAAZhdXRob3INAhGbAQAABAAAAAaoAQAABGRhdGUGqQEAAAR5ZWFyDQIRnQEAAAQAAAAGqgEAAARuYW1lDQMRnwEAAAQAAAAGqwEAAARuYW1lDQMRoQEAAAQAAAAGrAEAAARuYW1lDQMRowEAAAQAAAAGrQEAAARuYW1lDQML</BA> </MS> </Obj> <Obj RefId="27"> <TN RefId="7"> <T>PSModuleDevelopment.Template.TemplateItemFile</T> <T>PSModuleDevelopment.Template.TemplateItemBase</T> <T>System.Object</T> </TN> <ToString>PSModuleDevelopment.Template.TemplateItemFile</ToString> <Props> <S N="Value"># Auto detect text files and perform LF normalization_x000D__x000A_* text=auto</S> <B N="PlainText">true</B> <Obj N="ContentParameterFlat" RefId="28"> <TNRef RefId="2" /> <LST /> </Obj> <Obj N="ContentParameterScript" RefId="29"> <TNRef RefId="2" /> <LST /> </Obj> <S N="Name">.gitattributes</S> <S N="RelativePath">.gitattributes</S> <S N="Identifier">þ</S> <Obj N="FileSystemParameterFlat" RefId="30"> <TNRef RefId="2" /> <LST /> </Obj> <Obj N="FileSystemParameterScript" RefId="31"> <TNRef RefId="2" /> <LST /> </Obj> </Props> <MS> <BA N="SerializationData">AAEAAAD/////AQAAAAAAAAAMAgAAAEpQU01vZHVsZURldmVsb3BtZW50LCBWZXJzaW9uPTIuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbAUBAAAALVBTTW9kdWxlRGV2ZWxvcG1lbnQuV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LmdpdGF0dHJpYnV0ZXMGBwAAAA4uZ2l0YXR0cmlidXRlcwYIAAAAAsO+CQkAAAAJCgAAAAQEAAAAf1N5c3RlbS5Db2xsZWN0aW9ucy5HZW5lcmljLkxpc3RgMVtbU3lzdGVtLlN0cmluZywgbXNjb3JsaWIsIFZlcnNpb249NC4wLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1iNzdhNWM1NjE5MzRlMDg5XV0DAAAABl9pdGVtcwVfc2l6ZQhfdmVyc2lvbgYAAAgICQsAAAAAAAAAAAAAAAEFAAAABAAAAAkLAAAAAAAAAAAAAAABCQAAAAQAAAAJCwAAAAAAAAAAAAAAAQoAAAAEAAAACQsAAAAAAAAAAAAAABELAAAAAAAAAAs=</BA> </MS> </Obj> <Obj RefId="32"> <TNRef RefId="7" /> <ToString>PSModuleDevelopment.Template.TemplateItemFile</ToString> <Props> <S N="Value">_x000D__x000A_# ignore the settings folder and files for VSCode and PSS_x000D__x000A_.vscode/*_x000D__x000A_*.psproj_x000D__x000A_*TempPoint*_x000D__x000A__x000D__x000A_# Ignore staging info from Visual Studio_x000D__x000A_library/þnameþ/.vs/*_x000D__x000A_library/þnameþ/þnameþ/bin/*_x000D__x000A_library/þnameþ/þnameþ/obj/*_x000D__x000A__x000D__x000A_# ignore PowerShell Studio MetaData_x000D__x000A_þnameþ/þnameþ.psproj_x000D__x000A_þnameþ/þnameþ.psproj.bak_x000D__x000A_þnameþ/þnameþ.psprojs_x000D__x000A_þnameþ/þnameþ.psproj_x000D__x000A__x000D__x000A_# ignore the TestResults_x000D__x000A_TestResults/*_x000D__x000A__x000D__x000A_# ignore the publishing Directory_x000D__x000A_publish/*</S> <B N="PlainText">true</B> <Obj N="ContentParameterFlat" RefId="33"> <TNRef RefId="2" /> <LST> <S>name</S> </LST> </Obj> <Obj N="ContentParameterScript" RefId="34"> <TNRef RefId="2" /> <LST /> </Obj> <S N="Name">.gitignore</S> <S N="RelativePath">.gitignore</S> <S N="Identifier">þ</S> <Obj N="FileSystemParameterFlat" RefId="35"> <TNRef RefId="2" /> <LST /> </Obj> <Obj N="FileSystemParameterScript" RefId="36"> <TNRef RefId="2" /> <LST /> </Obj> </Props> <MS> <BA N="SerializationData">AAEAAAD/////AQAAAAAAAAAMAgAAAEpQU01vZHVsZURldmVsb3BtZW50LCBWZXJzaW9uPTIuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbAUBAAAALVBTTW9kdWxlRGV2ZWxvcG1lbnQuVGVtcGxhdGUuVGVtcGxhdGVJdGVtRmlsZQkAAAAFVmFsdWUJUGxhaW5UZXh0FENvbnRlbnRQYXJhbWV0ZXJGbGF0FkNvbnRlbnRQYXJhbWV0ZXJTY3JpcHQETmFtZQxSZWxhdGl2ZVBhdGgKSWRlbnRpZmllchdGaWxlU3lzdGVtUGFyYW1ldGVyRmxhdBlGaWxlU3lzdGVtUGFyYW1ldGVyU2NyaXB0AQADAwEBAQMDAX9TeXN0ZW0uQ29sbGVjdGlvbnMuR2VuZXJpYy5MaXN0YDFbW1N5c3RlbS5TdHJpbmcsIG1zY29ybGliLCBWZXJzaW9uPTQuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49Yjc3YTVjNTYxOTM0ZTA4OV1df1N5c3RlbS5Db2xsZWN0aW9ucy5HZW5lcmljLkxpc3RgMVtbU3lzdGVtLlN0cmluZywgbXNjb3JsaWIsIFZlcnNpb249NC4wLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1iNzdhNWM1NjE5MzRlMDg5XV1/U3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tTeXN0ZW0uU3RyaW5nLCBtc2NvcmxpYiwgVmVyc2lvbj00LjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODldXX9Te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dhNWM1NjE5MzRlMDg5XV0DAAAABl9pdGVtcwVfc2l6ZQhfdmVyc2lvbgYAAAgICQsAAAABAAAAAQAAAAEFAAAABAAAAAkMAAAAAAAAAAAAAAABCQAAAAQAAAAJDAAAAAAAAAAAAAAAAQoAAAAEAAAACQwAAAAAAAAAAAAAABELAAAABAAAAAYNAAAABG5hbWUNAxEMAAAAAAAAAAs=</BA> </MS> </Obj> <Obj RefId="37"> <TNRef RefId="7" /> <ToString>PSModuleDevelopment.Template.TemplateItemFile</ToString> <Props> <S N="Value"><#_x000D__x000A__x0009_.SYNOPSIS_x000D__x000A__x0009__x0009_Installs the þnameþ Module from github_x000D__x000A__x0009__x0009__x000D__x000A__x0009_.DESCRIPTION_x000D__x000A__x0009__x0009_This script installs the þnameþ Module from github._x000D__x000A__x0009__x0009__x000D__x000A__x0009__x0009_It does so by ..._x000D__x000A__x0009__x0009_- downloading the specified branch as zip to $env:TEMP_x000D__x000A__x0009__x0009_- Unpacking that zip file to a folder in $env:TEMP_x000D__x000A__x0009__x0009_- Moving that content to a module folder in either program files (default) or the user profile_x000D__x000A__x0009__x000D__x000A__x0009_.PARAMETER Branch_x000D__x000A__x0009__x0009_The branch to install. Installs master by default._x000D__x000A__x0009__x0009_Unknown branches will terminate the script in error._x000D__x000A__x0009__x000D__x000A__x0009_.PARAMETER UserMode_x000D__x000A__x0009__x0009_The downloaded module will be moved to the user profile, rather than program files._x000D__x000A__x0009__x0009__x000D__x000A__x0009_.PARAMETER Scope_x000D__x000A__x0009__x0009_By default, the downloaded module will be moved to program files._x000D__x000A__x0009__x0009_Setting this to 'CurrentUser' installs to the userprofile of the current user._x000D__x000A__x000D__x000A__x0009_.PARAMETER Force_x000D__x000A__x0009__x0009_The install script will overwrite an existing module._x000D__x000A_#>_x000D__x000A_[CmdletBinding()]_x000D__x000A_Param (_x000D__x000A__x0009_[string]_x000D__x000A__x0009_$Branch = "master",_x000D__x000A__x0009__x000D__x000A__x0009_[switch]_x000D__x000A__x0009_$UserMode,_x000D__x000A__x0009__x000D__x000A__x0009_[ValidateSet('AllUsers', 'CurrentUser')]_x000D__x000A__x0009_[string]_x000D__x000A__x0009_$Scope = "AllUsers",_x000D__x000A__x0009__x000D__x000A__x0009_[switch]_x000D__x000A__x0009_$Force_x000D__x000A_)_x000D__x000A__x000D__x000A_#region Configuration for cloning script_x000D__x000A_# Name of the module that is being cloned_x000D__x000A_$ModuleName = "þnameþ"_x000D__x000A__x000D__x000A_# Base path to the github repository_x000D__x000A_$BaseUrl = "https://github.com/<InsertUsernameHere>/þnameþ"_x000D__x000A__x000D__x000A_# If the module is in a subfolder of the cloned repository, specify relative path here. Empty string to skip._x000D__x000A_$SubFolder = "þnameþ"_x000D__x000A_#endregion Configuration for cloning script_x000D__x000A__x000D__x000A_#region Parameter Calculation_x000D__x000A_$doUserMode = $false_x000D__x000A_if ($UserMode) { $doUserMode = $true }_x000D__x000A_if ($install_CurrentUser) { $doUserMode = $true }_x000D__x000A_if ($Scope -eq 'CurrentUser') { $doUserMode = $true }_x000D__x000A__x000D__x000A_if ($install_Branch) { $Branch = $install_Branch }_x000D__x000A_#endregion Parameter Calculation_x000D__x000A__x000D__x000A_#region Utility Functions_x000D__x000A_function Compress-Archive_x000D__x000A_{_x000D__x000A__x0009_<#_x000D__x000A__x0009__x0009_.SYNOPSIS_x000D__x000A__x0009__x0009__x0009_Creates an archive, or zipped file, from specified files and folders._x000D__x000A__x000D__x000A__x0009__x0009_.DESCRIPTION_x000D__x000A__x0009__x0009__x0009_The Compress-Archive cmdlet creates a zipped (or compressed) archive file from one or more specified files or folders. An archive file allows multiple files to be packaged, and optionally compressed, into a single zipped file for easier distribution and storage. An archive file can be compressed by using the compression algorithm specified by the CompressionLevel parameter._x000D__x000A__x000D__x000A__x0009__x0009__x0009_Because Compress-Archive relies upon the Microsoft .NET Framework API System.IO.Compression.ZipArchive to compress files, the maximum file size that you can compress by using Compress-Archive is currently 2 GB. This is a limitation of the underlying API._x000D__x000A__x000D__x000A__x0009__x0009_.PARAMETER Path_x000D__x000A__x0009__x0009__x0009_Specifies the path or paths to the files that you want to add to the archive zipped file. This parameter can accept wildcard characters. Wildcard characters allow you to add all files in a folder to your zipped archive file. To specify multiple paths, and include files in multiple locations in your output zipped file, use commas to separate the paths._x000D__x000A__x000D__x000A__x0009__x0009_.PARAMETER LiteralPath_x000D__x000A__x0009__x0009__x0009_Specifies the path or paths to the files that you want to add to the archive zipped file. Unlike the Path parameter, the value of LiteralPath is used exactly as it is typed. No characters are interpreted as wildcards. If the path includes escape characters, enclose each escape character in single quotation marks, to instruct Windows PowerShell not to interpret any characters as escape sequences. To specify multiple paths, and include files in multiple locations in your output zipped file, use commas to separate the paths._x000D__x000A__x000D__x000A__x0009__x0009_.PARAMETER DestinationPath_x000D__x000A__x0009__x0009__x0009_Specifies the path to the archive output file. This parameter is required. The specified DestinationPath value should include the desired name of the output zipped file; it specifies either the absolute or relative path to the zipped file. If the file name specified in DestinationPath does not have a .zip file name extension, the cmdlet adds a .zip file name extension._x000D__x000A__x000D__x000A__x0009__x0009_.PARAMETER CompressionLevel_x000D__x000A__x0009__x0009__x0009_Specifies how much compression to apply when you are creating the archive file. Faster compression requires less time to create the file, but can result in larger file sizes. The acceptable values for this parameter are:_x000D__x000A__x000D__x000A__x0009__x0009__x0009_- Fastest. Use the fastest compression method available to decrease processing time; this can result in larger file sizes._x000D__x000A__x0009__x0009__x0009_- NoCompression. Do not compress the source files._x000D__x000A__x0009__x0009__x0009_- Optimal. Processing time is dependent on file size._x000D__x000A__x000D__x000A__x0009__x0009__x0009_If this parameter is not specified, the command uses the default value, Optimal._x000D__x000A__x000D__x000A__x0009__x0009_.PARAMETER Update_x000D__x000A__x0009__x0009__x0009_Updates the specified archive by replacing older versions of files in the archive with newer versions of files that have the same names. You can also add this parameter to add files to an existing archive._x000D__x000A__x000D__x000A__x0009__x0009_.PARAMETER Force_x000D__x000A__x0009__x0009__x0009_@{Text=}_x000D__x000A__x000D__x000A__x0009__x0009_.PARAMETER Confirm_x000D__x000A__x0009__x0009__x0009_Prompts you for confirmation before running the cmdlet._x000D__x000A__x000D__x000A__x0009__x0009_.PARAMETER WhatIf_x000D__x000A__x0009__x0009__x0009_Shows what would happen if the cmdlet runs. The cmdlet is not run._x000D__x000A__x000D__x000A__x0009__x0009_.EXAMPLE_x000D__x000A__x0009__x0009__x0009_Example 1: Create an archive file_x000D__x000A__x000D__x000A__x0009__x0009__x0009_PS C:\>Compress-Archive -LiteralPath C:\Reference\Draftdoc.docx, C:\Reference\Images\diagram2.vsd -CompressionLevel Optimal -DestinationPath C:\Archives\Draft.Zip_x000D__x000A__x000D__x000A__x0009__x0009__x0009_This command creates a new archive file, Draft.zip, by compressing two files, Draftdoc.docx and diagram2.vsd, specified by the LiteralPath parameter. The compression level specified for this operation is Optimal._x000D__x000A__x000D__x000A__x0009__x0009_.EXAMPLE_x000D__x000A__x0009__x0009__x0009_Example 2: Create an archive with wildcard characters_x000D__x000A__x000D__x000A__x0009__x0009__x0009_PS C:\>Compress-Archive -Path C:\Reference\* -CompressionLevel Fastest -DestinationPath C:\Archives\Draft_x000D__x000A__x000D__x000A__x0009__x0009__x0009_This command creates a new archive file, Draft.zip, in the C:\Archives folder. Note that though the file name extension .zip was not added to the value of the DestinationPath parameter, Windows PowerShell appends this to the specified archive file name automatically. The new archive file contains every file in the C:\Reference folder, because a wildcard character was used in place of specific file names in the Path parameter. The specified compression level is Fastest, which might result in a larger output file, but compresses a large number of files faster._x000D__x000A__x000D__x000A__x0009__x0009_.EXAMPLE_x000D__x000A__x0009__x0009__x0009_Example 3: Update an existing archive file_x000D__x000A__x000D__x000A__x0009__x0009__x0009_PS C:\>Compress-Archive -Path C:\Reference\* -Update -DestinationPath C:\Archives\Draft.Zip_x000D__x000A__x000D__x000A__x0009__x0009__x0009_This command updates an existing archive file, Draft.Zip, in the C:\Archives folder. The command is run to update Draft.Zip with newer versions of existing files that came from the C:\Reference folder, and also to add new files that have been added to C:\Reference since Draft.Zip was initially created._x000D__x000A__x000D__x000A__x0009__x0009_.EXAMPLE_x000D__x000A__x0009__x0009__x0009_Example 4: Create an archive from an entire folder_x000D__x000A__x000D__x000A__x0009__x0009__x0009_PS C:\>Compress-Archive -Path C:\Reference -DestinationPath C:\Archives\Draft_x000D__x000A__x000D__x000A__x0009__x0009__x0009_This command creates an archive from an entire folder, C:\Reference. Note that though the file name extension .zip was not added to the value of the DestinationPath parameter, Windows PowerShell appends this to the specified archive file name automatically._x000D__x000A__x0009_#>_x000D__x000A__x0009_[CmdletBinding(DefaultParameterSetName = "Path", SupportsShouldProcess = $true, HelpUri = "http://go.microsoft.com/fwlink/?LinkID=393252")]_x000D__x000A__x0009_param_x000D__x000A__x0009_(_x000D__x000A__x0009__x0009_[parameter (mandatory = $true, Position = 0, ParameterSetName = "Path", ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)]_x000D__x000A__x0009__x0009_[parameter (mandatory = $true, Position = 0, ParameterSetName = "PathWithForce", ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)]_x000D__x000A__x0009__x0009_[parameter (mandatory = $true, Position = 0, ParameterSetName = "PathWithUpdate", ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true)]_x000D__x000A__x0009__x0009_[ValidateNotNullOrEmpty()]_x000D__x000A__x0009__x0009_[string[]]_x000D__x000A__x0009__x0009_$Path,_x000D__x000A__x000D__x000A__x0009__x0009_[parameter (mandatory = $true, ParameterSetName = "LiteralPath", ValueFromPipeline = $false, ValueFromPipelineByPropertyName = $true)]_x000D__x000A__x0009__x0009_[parameter (mandatory = $true, ParameterSetName = "LiteralPathWithForce", ValueFromPipeline = $false, ValueFromPipelineByPropertyName = $true)]_x000D__x000A__x0009__x0009_[parameter (mandatory = $true, ParameterSetName = "LiteralPathWithUpdate", ValueFromPipeline = $false, ValueFromPipelineByPropertyName = $true)]_x000D__x000A__x0009__x0009_[ValidateNotNullOrEmpty()]_x000D__x000A__x0009__x0009_[Alias("PSPath")]_x000D__x000A__x0009__x0009_[string[]]_x000D__x000A__x0009__x0009_$LiteralPath,_x000D__x000A__x000D__x000A__x0009__x0009_[parameter (mandatory = $true,_x000D__x000A__x0009__x0009__x0009__x0009__x0009_Position = 1,_x000D__x000A__x0009__x0009__x0009__x0009__x0009_ValueFromPipeline = $false,_x000D__x000A__x0009__x0009__x0009__x0009__x0009_ValueFromPipelineByPropertyName = $false)]_x000D__x000A__x0009__x0009_[ValidateNotNullOrEmpty()]_x000D__x000A__x0009__x0009_[string]_x000D__x000A__x0009__x0009_$DestinationPath,_x000D__x000A__x000D__x000A__x0009__x0009_[parameter (_x000D__x000A__x0009__x0009__x0009__x0009__x0009_mandatory = $false,_x000D__x000A__x0009__x0009__x0009__x0009__x0009_ValueFromPipeline = $false,_x000D__x000A__x0009__x0009__x0009__x0009__x0009_ValueFromPipelineByPropertyName = $false)]_x000D__x000A__x0009__x0009_[ValidateSet("Optimal", "NoCompression", "Fastest")]_x000D__x000A__x0009__x0009_[string]_x000D__x000A__x0009__x0009_$CompressionLevel = "Optimal",_x000D__x000A__x000D__x000A__x0009__x0009_[parameter(mandatory = $true, ParameterSetName = "PathWithUpdate", ValueFromPipeline = $false, ValueFromPipelineByPropertyName = $false)]_x000D__x000A__x0009__x0009_[parameter(mandatory = $true, ParameterSetName = "LiteralPathWithUpdate", ValueFromPipeline = $false, ValueFromPipelineByPropertyName = $false)]_x000D__x000A__x0009__x0009_[switch]_x000D__x000A__x0009__x0009_$Update = $false,_x000D__x000A__x000D__x000A__x0009__x0009_[parameter(mandatory = $true, ParameterSetName = "PathWithForce", ValueFromPipeline = $false, ValueFromPipelineByPropertyName = $false)]_x000D__x000A__x0009__x0009_[parameter(mandatory = $true, ParameterSetName = "LiteralPathWithForce", ValueFromPipeline = $false, ValueFromPipelineByPropertyName = $false)]_x000D__x000A__x0009__x0009_[switch]_x000D__x000A__x0009__x0009_$Force = $false_x000D__x000A__x0009_)_x000D__x000A__x000D__x000A__x0009_BEGIN_x000D__x000A__x0009_{_x000D__x000A__x0009__x0009_Add-Type -AssemblyName System.IO.Compression -ErrorAction Ignore_x000D__x000A__x0009__x0009_Add-Type -AssemblyName System.IO.Compression.FileSystem -ErrorAction Ignore_x000D__x000A__x000D__x000A__x0009__x0009_$zipFileExtension = ".zip"_x000D__x000A__x000D__x000A__x0009__x0009_$LocalizedData = ConvertFrom-StringData @'_x000D__x000A_PathNotFoundError=The path '{0}' either does not exist or is not a valid file system path._x000D__x000A_ExpandArchiveInValidDestinationPath=The path '{0}' is not a valid file system directory path._x000D__x000A_InvalidZipFileExtensionError={0} is not a supported archive file format. {1} is the only supported archive file format._x000D__x000A_ArchiveFileIsReadOnly=The attributes of the archive file {0} is set to 'ReadOnly' hence it cannot be updated. If you intend to update the existing archive file, remove the 'ReadOnly' attribute on the archive file else use -Force parameter to override and create a new archive file._x000D__x000A_ZipFileExistError=The archive file {0} already exists. Use the -Update parameter to update the existing archive file or use the -Force parameter to overwrite the existing archive file._x000D__x000A_DuplicatePathFoundError=The input to {0} parameter contains a duplicate path '{1}'. Provide a unique set of paths as input to {2} parameter._x000D__x000A_ArchiveFileIsEmpty=The archive file {0} is empty._x000D__x000A_CompressProgressBarText=The archive file '{0}' creation is in progress..._x000D__x000A_ExpandProgressBarText=The archive file '{0}' expansion is in progress..._x000D__x000A_AppendArchiveFileExtensionMessage=The archive file path '{0}' supplied to the DestinationPath patameter does not include .zip extension. Hence .zip is appended to the supplied DestinationPath path and the archive file would be created at '{1}'._x000D__x000A_AddItemtoArchiveFile=Adding '{0}'._x000D__x000A_CreateFileAtExpandedPath=Created '{0}'._x000D__x000A_InvalidArchiveFilePathError=The archive file path '{0}' specified as input to the {1} parameter is resolving to multiple file system paths. Provide a unique path to the {2} parameter where the archive file has to be created._x000D__x000A_InvalidExpandedDirPathError=The directory path '{0}' specified as input to the DestinationPath parameter is resolving to multiple file system paths. Provide a unique path to the Destination parameter where the archive file contents have to be expanded._x000D__x000A_FileExistsError=Failed to create file '{0}' while expanding the archive file '{1}' contents as the file '{2}' already exists. Use the -Force parameter if you want to overwrite the existing directory '{3}' contents when expanding the archive file._x000D__x000A_DeleteArchiveFile=The partially created archive file '{0}' is deleted as it is not usable._x000D__x000A_InvalidDestinationPath=The destination path '{0}' does not contain a valid archive file name._x000D__x000A_PreparingToCompressVerboseMessage=Preparing to compress..._x000D__x000A_PreparingToExpandVerboseMessage=Preparing to expand..._x000D__x000A_'@_x000D__x000A__x000D__x000A__x0009__x0009_#region Utility Functions_x000D__x000A__x0009__x0009_function GetResolvedPathHelper_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_param_x000D__x000A__x0009__x0009__x0009_(_x000D__x000A__x0009__x0009__x0009__x0009_[string[]]_x000D__x000A__x0009__x0009__x0009__x0009_$path,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[boolean]_x000D__x000A__x0009__x0009__x0009__x0009_$isLiteralPath,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[System.Management.Automation.PSCmdlet]_x000D__x000A__x0009__x0009__x0009__x0009_$callerPSCmdlet_x000D__x000A__x0009__x0009__x0009_)_x000D__x000A__x000D__x000A__x0009__x0009__x0009_$resolvedPaths = @()_x000D__x000A__x000D__x000A__x0009__x0009__x0009_# null and empty check are are already done on Path parameter at the cmdlet layer._x000D__x000A__x0009__x0009__x0009_foreach ($currentPath in $path)_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_try_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_if ($isLiteralPath)_x000D__x000A__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_$currentResolvedPaths = Resolve-Path -LiteralPath $currentPath -ErrorAction Stop_x000D__x000A__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009_else_x000D__x000A__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_$currentResolvedPaths = Resolve-Path -Path $currentPath -ErrorAction Stop_x000D__x000A__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009_catch_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$errorMessage = ($LocalizedData.PathNotFoundError -f $currentPath)_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$exception = New-Object System.InvalidOperationException $errorMessage, $_.Exception_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$errorRecord = CreateErrorRecordHelper "ArchiveCmdletPathNotFound" $null ([System.Management.Automation.ErrorCategory]::InvalidArgument) $exception $currentPath_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$callerPSCmdlet.ThrowTerminatingError($errorRecord)_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_foreach ($currentResolvedPath in $currentResolvedPaths)_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$resolvedPaths += $currentResolvedPath.ProviderPath_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009_$resolvedPaths_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009_function Add-CompressionAssemblies_x000D__x000A__x0009__x0009_{_x000D__x000A__x000D__x000A__x0009__x0009__x0009_if ($PSEdition -eq "Desktop")_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_Add-Type -AssemblyName System.IO.Compression_x000D__x000A__x0009__x0009__x0009__x0009_Add-Type -AssemblyName System.IO.Compression.FileSystem_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009_function IsValidFileSystemPath_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_param_x000D__x000A__x0009__x0009__x0009_(_x000D__x000A__x0009__x0009__x0009__x0009_[string[]]_x000D__x000A__x0009__x0009__x0009__x0009_$path_x000D__x000A__x0009__x0009__x0009_)_x000D__x000A__x000D__x000A__x0009__x0009__x0009_$result = $true;_x000D__x000A__x000D__x000A__x0009__x0009__x0009_# null and empty check are are already done on Path parameter at the cmdlet layer._x000D__x000A__x0009__x0009__x0009_foreach ($currentPath in $path)_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_if (!([System.IO.File]::Exists($currentPath) -or [System.IO.Directory]::Exists($currentPath)))_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$errorMessage = ($LocalizedData.PathNotFoundError -f $currentPath)_x000D__x000A__x0009__x0009__x0009__x0009__x0009_ThrowTerminatingErrorHelper "PathNotFound" $errorMessage ([System.Management.Automation.ErrorCategory]::InvalidArgument) $currentPath_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009_return $result;_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A__x000D__x000A__x0009__x0009_function ValidateDuplicateFileSystemPath_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_param_x000D__x000A__x0009__x0009__x0009_(_x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$inputParameter,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[string[]]_x000D__x000A__x0009__x0009__x0009__x0009_$path_x000D__x000A__x0009__x0009__x0009_)_x000D__x000A__x000D__x000A__x0009__x0009__x0009_$uniqueInputPaths = @()_x000D__x000A__x000D__x000A__x0009__x0009__x0009_# null and empty check are are already done on Path parameter at the cmdlet layer._x000D__x000A__x0009__x0009__x0009_foreach ($currentPath in $path)_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_$currentInputPath = $currentPath.ToUpper()_x000D__x000A__x0009__x0009__x0009__x0009_if ($uniqueInputPaths.Contains($currentInputPath))_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$errorMessage = ($LocalizedData.DuplicatePathFoundError -f $inputParameter, $currentPath, $inputParameter)_x000D__x000A__x0009__x0009__x0009__x0009__x0009_ThrowTerminatingErrorHelper "DuplicatePathFound" $errorMessage ([System.Management.Automation.ErrorCategory]::InvalidArgument) $currentPath_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009_else_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$uniqueInputPaths += $currentInputPath_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009_function CompressionLevelMapper_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_param_x000D__x000A__x0009__x0009__x0009_(_x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$compressionLevel_x000D__x000A__x0009__x0009__x0009_)_x000D__x000A__x000D__x000A__x0009__x0009__x0009_$compressionLevelFormat = [System.IO.Compression.CompressionLevel]::Optimal_x000D__x000A__x000D__x000A__x0009__x0009__x0009_# CompressionLevel format is already validated at the cmdlet layer._x000D__x000A__x0009__x0009__x0009_switch ($compressionLevel.ToString())_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_"Fastest"_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$compressionLevelFormat = [System.IO.Compression.CompressionLevel]::Fastest_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009_"NoCompression"_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$compressionLevelFormat = [System.IO.Compression.CompressionLevel]::NoCompression_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009_return $compressionLevelFormat_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009_function CompressArchiveHelper_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_param_x000D__x000A__x0009__x0009__x0009_(_x000D__x000A__x0009__x0009__x0009__x0009_[string[]]_x000D__x000A__x0009__x0009__x0009__x0009_$sourcePath,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$destinationPath,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$compressionLevel,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[bool]_x000D__x000A__x0009__x0009__x0009__x0009_$isUpdateMode_x000D__x000A__x0009__x0009__x0009_)_x000D__x000A__x000D__x000A__x0009__x0009__x0009_$numberOfItemsArchived = 0_x000D__x000A__x0009__x0009__x0009_$sourceFilePaths = @()_x000D__x000A__x0009__x0009__x0009_$sourceDirPaths = @()_x000D__x000A__x000D__x000A__x0009__x0009__x0009_foreach ($currentPath in $sourcePath)_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_$result = Test-Path -LiteralPath $currentPath -PathType Leaf_x000D__x000A__x0009__x0009__x0009__x0009_if ($result -eq $true)_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$sourceFilePaths += $currentPath_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009_else_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$sourceDirPaths += $currentPath_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009_# The Soure Path contains one or more directory (this directory can have files under it) and no files to be compressed._x000D__x000A__x0009__x0009__x0009_if ($sourceFilePaths.Count -eq 0 -and $sourceDirPaths.Count -gt 0)_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_$currentSegmentWeight = 100/[double]$sourceDirPaths.Count_x000D__x000A__x0009__x0009__x0009__x0009_$previousSegmentWeight = 0_x000D__x000A__x0009__x0009__x0009__x0009_foreach ($currentSourceDirPath in $sourceDirPaths)_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$count = CompressSingleDirHelper $currentSourceDirPath $destinationPath $compressionLevel $true $isUpdateMode $previousSegmentWeight $currentSegmentWeight_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$numberOfItemsArchived += $count_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$previousSegmentWeight += $currentSegmentWeight_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009_# The Soure Path contains only files to be compressed._x000D__x000A__x0009__x0009__x0009_elseIf ($sourceFilePaths.Count -gt 0 -and $sourceDirPaths.Count -eq 0)_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_# $previousSegmentWeight is equal to 0 as there are no prior segments._x000D__x000A__x0009__x0009__x0009__x0009_# $currentSegmentWeight is set to 100 as all files have equal weightage._x000D__x000A__x0009__x0009__x0009__x0009_$previousSegmentWeight = 0_x000D__x000A__x0009__x0009__x0009__x0009_$currentSegmentWeight = 100_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_$numberOfItemsArchived = CompressFilesHelper $sourceFilePaths $destinationPath $compressionLevel $isUpdateMode $previousSegmentWeight $currentSegmentWeight_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_# The Soure Path contains one or more files and one or more directories (this directory can have files under it) to be compressed._x000D__x000A__x0009__x0009__x0009_elseif ($sourceFilePaths.Count -gt 0 -and $sourceDirPaths.Count -gt 0)_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_# each directory is considered as an individual segments & all the individual files are clubed in to a separate sgemnet._x000D__x000A__x0009__x0009__x0009__x0009_$currentSegmentWeight = 100/[double]($sourceDirPaths.Count + 1)_x000D__x000A__x0009__x0009__x0009__x0009_$previousSegmentWeight = 0_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_foreach ($currentSourceDirPath in $sourceDirPaths)_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$count = CompressSingleDirHelper $currentSourceDirPath $destinationPath $compressionLevel $true $isUpdateMode $previousSegmentWeight $currentSegmentWeight_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$numberOfItemsArchived += $count_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$previousSegmentWeight += $currentSegmentWeight_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_$count = CompressFilesHelper $sourceFilePaths $destinationPath $compressionLevel $isUpdateMode $previousSegmentWeight $currentSegmentWeight_x000D__x000A__x0009__x0009__x0009__x0009_$numberOfItemsArchived += $count_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009_return $numberOfItemsArchived_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009_function CompressFilesHelper_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_param_x000D__x000A__x0009__x0009__x0009_(_x000D__x000A__x0009__x0009__x0009__x0009_[string[]]_x000D__x000A__x0009__x0009__x0009__x0009_$sourceFilePaths,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$destinationPath,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$compressionLevel,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[bool]_x000D__x000A__x0009__x0009__x0009__x0009_$isUpdateMode,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[double]_x000D__x000A__x0009__x0009__x0009__x0009_$previousSegmentWeight,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[double]_x000D__x000A__x0009__x0009__x0009__x0009_$currentSegmentWeight_x000D__x000A__x0009__x0009__x0009_)_x000D__x000A__x000D__x000A__x0009__x0009__x0009_$numberOfItemsArchived = ZipArchiveHelper $sourceFilePaths $destinationPath $compressionLevel $isUpdateMode $null $previousSegmentWeight $currentSegmentWeight_x000D__x000A__x000D__x000A__x0009__x0009__x0009_return $numberOfItemsArchived_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009_function CompressSingleDirHelper_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_param_x000D__x000A__x0009__x0009__x0009_(_x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$sourceDirPath,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$destinationPath,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$compressionLevel,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[bool]_x000D__x000A__x0009__x0009__x0009__x0009_$useParentDirAsRoot,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[bool]_x000D__x000A__x0009__x0009__x0009__x0009_$isUpdateMode,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[double]_x000D__x000A__x0009__x0009__x0009__x0009_$previousSegmentWeight,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[double]_x000D__x000A__x0009__x0009__x0009__x0009_$currentSegmentWeight_x000D__x000A__x0009__x0009__x0009_)_x000D__x000A__x000D__x000A__x0009__x0009__x0009_[System.Collections.Generic.List[System.String]]$subDirFiles = @()_x000D__x000A__x000D__x000A__x0009__x0009__x0009_if ($useParentDirAsRoot)_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_$sourceDirInfo = New-Object -TypeName System.IO.DirectoryInfo -ArgumentList $sourceDirPath_x000D__x000A__x0009__x0009__x0009__x0009_$sourceDirFullName = $sourceDirInfo.Parent.FullName_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_# If the directory is present at the drive level the DirectoryInfo.Parent include '\' example: C:\_x000D__x000A__x0009__x0009__x0009__x0009_# On the other hand if the directory exists at a deper level then DirectoryInfo.Parent_x000D__x000A__x0009__x0009__x0009__x0009_# has just the path (without an ending '\'). example C:\source_x000D__x000A__x0009__x0009__x0009__x0009_if ($sourceDirFullName.Length -eq 3)_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$modifiedSourceDirFullName = $sourceDirFullName_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009_else_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$modifiedSourceDirFullName = $sourceDirFullName + "\"_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_else_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_$sourceDirFullName = $sourceDirPath_x000D__x000A__x0009__x0009__x0009__x0009_$modifiedSourceDirFullName = $sourceDirFullName + "\"_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009_$dirContents = Get-ChildItem -LiteralPath $sourceDirPath -Recurse_x000D__x000A__x0009__x0009__x0009_foreach ($currentContent in $dirContents)_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_$isContainer = $currentContent -is [System.IO.DirectoryInfo]_x000D__x000A__x0009__x0009__x0009__x0009_if (!$isContainer)_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$subDirFiles.Add($currentContent.FullName)_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009_else_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_# The currentContent points to a directory._x000D__x000A__x0009__x0009__x0009__x0009__x0009_# We need to check if the directory is an empty directory, if so such a_x000D__x000A__x0009__x0009__x0009__x0009__x0009_# directory has to be explictly added to the archive file._x000D__x000A__x0009__x0009__x0009__x0009__x0009_# if there are no files in the directory the GetFiles() API returns an empty array._x000D__x000A__x0009__x0009__x0009__x0009__x0009_$files = $currentContent.GetFiles()_x000D__x000A__x0009__x0009__x0009__x0009__x0009_if ($files.Count -eq 0)_x000D__x000A__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_$subDirFiles.Add($currentContent.FullName + "\")_x000D__x000A__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009_$numberOfItemsArchived = ZipArchiveHelper $subDirFiles.ToArray() $destinationPath $compressionLevel $isUpdateMode $modifiedSourceDirFullName $previousSegmentWeight $currentSegmentWeight_x000D__x000A__x000D__x000A__x0009__x0009__x0009_return $numberOfItemsArchived_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009_function ZipArchiveHelper_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_param_x000D__x000A__x0009__x0009__x0009_(_x000D__x000A__x0009__x0009__x0009__x0009_[System.Collections.Generic.List[System.String]]_x000D__x000A__x0009__x0009__x0009__x0009_$sourcePaths,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$destinationPath,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$compressionLevel,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[bool]_x000D__x000A__x0009__x0009__x0009__x0009_$isUpdateMode,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$modifiedSourceDirFullName,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[double]_x000D__x000A__x0009__x0009__x0009__x0009_$previousSegmentWeight,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[double]_x000D__x000A__x0009__x0009__x0009__x0009_$currentSegmentWeight_x000D__x000A__x0009__x0009__x0009_)_x000D__x000A__x000D__x000A__x0009__x0009__x0009_$numberOfItemsArchived = 0_x000D__x000A__x0009__x0009__x0009_$fileMode = [System.IO.FileMode]::Create_x000D__x000A__x0009__x0009__x0009_$result = Test-Path -LiteralPath $DestinationPath -PathType Leaf_x000D__x000A__x0009__x0009__x0009_if ($result -eq $true)_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_$fileMode = [System.IO.FileMode]::Open_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009_Add-CompressionAssemblies_x000D__x000A__x000D__x000A__x0009__x0009__x0009_try_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_# At this point we are sure that the archive file has write access._x000D__x000A__x0009__x0009__x0009__x0009_$archiveFileStreamArgs = @($destinationPath, $fileMode)_x000D__x000A__x0009__x0009__x0009__x0009_$archiveFileStream = New-Object -TypeName System.IO.FileStream -ArgumentList $archiveFileStreamArgs_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_$zipArchiveArgs = @($archiveFileStream, [System.IO.Compression.ZipArchiveMode]::Update, $false)_x000D__x000A__x0009__x0009__x0009__x0009_$zipArchive = New-Object -TypeName System.IO.Compression.ZipArchive -ArgumentList $zipArchiveArgs_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_$currentEntryCount = 0_x000D__x000A__x0009__x0009__x0009__x0009_$progressBarStatus = ($LocalizedData.CompressProgressBarText -f $destinationPath)_x000D__x000A__x0009__x0009__x0009__x0009_$bufferSize = 4kb_x000D__x000A__x0009__x0009__x0009__x0009_$buffer = New-Object Byte[] $bufferSize_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_foreach ($currentFilePath in $sourcePaths)_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_if ($modifiedSourceDirFullName -ne $null -and $modifiedSourceDirFullName.Length -gt 0)_x000D__x000A__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_$index = $currentFilePath.IndexOf($modifiedSourceDirFullName, [System.StringComparison]::OrdinalIgnoreCase)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_$currentFilePathSubString = $currentFilePath.Substring($index, $modifiedSourceDirFullName.Length)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_$relativeFilePath = $currentFilePath.Replace($currentFilePathSubString, "").Trim()_x000D__x000A__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009_else_x000D__x000A__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_$relativeFilePath = [System.IO.Path]::GetFileName($currentFilePath)_x000D__x000A__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009_# Update mode is selected._x000D__x000A__x0009__x0009__x0009__x0009__x0009_# Check to see if archive file already contains one or more zip files in it._x000D__x000A__x0009__x0009__x0009__x0009__x0009_if ($isUpdateMode -eq $true -and $zipArchive.Entries.Count -gt 0)_x000D__x000A__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_$entryToBeUpdated = $null_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_# Check if the file already exists in the archive file._x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_# If so replace it with new file from the input source._x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_# If the file does not exist in the archive file then default to_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_# create mode and create the entry in the archive file._x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_foreach ($currentArchiveEntry in $zipArchive.Entries)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_if ($currentArchiveEntry.FullName -eq $relativeFilePath)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$entryToBeUpdated = $currentArchiveEntry_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_break_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_if ($entryToBeUpdated -ne $null)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$addItemtoArchiveFileMessage = ($LocalizedData.AddItemtoArchiveFile -f $currentFilePath)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$entryToBeUpdated.Delete()_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009_$compression = CompressionLevelMapper $compressionLevel_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009_# If a directory needs to be added to an archive file,_x000D__x000A__x0009__x0009__x0009__x0009__x0009_# by convention the .Net API's expect the path of the diretcory_x000D__x000A__x0009__x0009__x0009__x0009__x0009_# to end with '\' to detect the path as an directory._x000D__x000A__x0009__x0009__x0009__x0009__x0009_if (!$relativeFilePath.EndsWith("\", [StringComparison]::OrdinalIgnoreCase))_x000D__x000A__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_try_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_try_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$currentFileStream = [System.IO.File]::Open($currentFilePath, [System.IO.FileMode]::Open, [System.IO.FileAccess]::Read)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_catch_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# Failed to access the file. Write a non terminating error to the pipeline_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# and move on with the remaining files._x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$exception = $_.Exception_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_if ($null -ne $_.Exception -and_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$null -ne $_.Exception.InnerException)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$exception = $_.Exception.InnerException_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$errorRecord = CreateErrorRecordHelper "CompressArchiveUnauthorizedAccessError" $null ([System.Management.Automation.ErrorCategory]::PermissionDenied) $exception $currentFilePath_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_Write-Error -ErrorRecord $errorRecord_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_if ($null -ne $currentFileStream)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$srcStream = New-Object System.IO.BinaryReader $currentFileStream_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$currentArchiveEntry = $zipArchive.CreateEntry($relativeFilePath, $compression)_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# Updating the File Creation time so that the same timestamp would be retained after expanding the compressed file._x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# At this point we are sure that Get-ChildItem would succeed._x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$currentArchiveEntry.LastWriteTime = (Get-Item -LiteralPath $currentFilePath).LastWriteTime_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$destStream = New-Object System.IO.BinaryWriter $currentArchiveEntry.Open()_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_while ($numberOfBytesRead = $srcStream.Read($buffer, 0, $bufferSize))_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$destStream.Write($buffer, 0, $numberOfBytesRead)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$destStream.Flush()_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$numberOfItemsArchived += 1_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$addItemtoArchiveFileMessage = ($LocalizedData.AddItemtoArchiveFile -f $currentFilePath)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_finally_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_If ($null -ne $currentFileStream)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$currentFileStream.Dispose()_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_If ($null -ne $srcStream)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$srcStream.Dispose()_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_If ($null -ne $destStream)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$destStream.Dispose()_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009_else_x000D__x000A__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_$currentArchiveEntry = $zipArchive.CreateEntry("$relativeFilePath", $compression)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_$numberOfItemsArchived += 1_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_$addItemtoArchiveFileMessage = ($LocalizedData.AddItemtoArchiveFile -f $currentFilePath)_x000D__x000A__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009_if ($null -ne $addItemtoArchiveFileMessage)_x000D__x000A__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_Write-Verbose $addItemtoArchiveFileMessage_x000D__x000A__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009_$currentEntryCount += 1_x000D__x000A__x0009__x0009__x0009__x0009__x0009_ProgressBarHelper "Compress-Archive" $progressBarStatus $previousSegmentWeight $currentSegmentWeight $sourcePaths.Count $currentEntryCount_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_finally_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_If ($null -ne $zipArchive)_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$zipArchive.Dispose()_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_If ($null -ne $archiveFileStream)_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$archiveFileStream.Dispose()_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_# Complete writing progress._x000D__x000A__x0009__x0009__x0009__x0009_Write-Progress -Activity "Compress-Archive" -Completed_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009_return $numberOfItemsArchived_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A_<############################################################################################_x000D__x000A_# ValidateArchivePathHelper: This is a helper function used to validate the archive file_x000D__x000A_# path & its file format. The only supported archive file format is .zip_x000D__x000A_############################################################################################>_x000D__x000A__x0009__x0009_function ValidateArchivePathHelper_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_param_x000D__x000A__x0009__x0009__x0009_(_x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$archiveFile_x000D__x000A__x0009__x0009__x0009_)_x000D__x000A__x000D__x000A__x0009__x0009__x0009_if ([System.IO.File]::Exists($archiveFile))_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_$extension = [system.IO.Path]::GetExtension($archiveFile)_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_# Invalid file extension is specifed for the zip file._x000D__x000A__x0009__x0009__x0009__x0009_if ($extension -ne $zipFileExtension)_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$errorMessage = ($LocalizedData.InvalidZipFileExtensionError -f $extension, $zipFileExtension)_x000D__x000A__x0009__x0009__x0009__x0009__x0009_ThrowTerminatingErrorHelper "NotSupportedArchiveFileExtension" $errorMessage ([System.Management.Automation.ErrorCategory]::InvalidArgument) $extension_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_else_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_$errorMessage = ($LocalizedData.PathNotFoundError -f $archiveFile)_x000D__x000A__x0009__x0009__x0009__x0009_ThrowTerminatingErrorHelper "PathNotFound" $errorMessage ([System.Management.Automation.ErrorCategory]::InvalidArgument) $archiveFile_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A_<############################################################################################_x000D__x000A_# ExpandArchiveHelper: This is a helper function used to expand the archive file contents_x000D__x000A_# to the specified directory._x000D__x000A_############################################################################################>_x000D__x000A__x0009__x0009_function ExpandArchiveHelper_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_param_x000D__x000A__x0009__x0009__x0009_(_x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$archiveFile,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$expandedDir,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[ref]_x000D__x000A__x0009__x0009__x0009__x0009_$expandedItems,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[boolean]_x000D__x000A__x0009__x0009__x0009__x0009_$force,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[boolean]_x000D__x000A__x0009__x0009__x0009__x0009_$isVerbose,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[boolean]_x000D__x000A__x0009__x0009__x0009__x0009_$isConfirm_x000D__x000A__x0009__x0009__x0009_)_x000D__x000A__x000D__x000A__x0009__x0009__x0009_Add-CompressionAssemblies_x000D__x000A__x000D__x000A__x0009__x0009__x0009_try_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_# The existance of archive file has already been validated by ValidateArchivePathHelper_x000D__x000A__x0009__x0009__x0009__x0009_# before calling this helper function._x000D__x000A__x0009__x0009__x0009__x0009_$archiveFileStreamArgs = @($archiveFile, [System.IO.FileMode]::Open, [System.IO.FileAccess]::Read)_x000D__x000A__x0009__x0009__x0009__x0009_$archiveFileStream = New-Object -TypeName System.IO.FileStream -ArgumentList $archiveFileStreamArgs_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_$zipArchiveArgs = @($archiveFileStream, [System.IO.Compression.ZipArchiveMode]::Read, $false)_x000D__x000A__x0009__x0009__x0009__x0009_$zipArchive = New-Object -TypeName System.IO.Compression.ZipArchive -ArgumentList $zipArchiveArgs_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_if ($zipArchive.Entries.Count -eq 0)_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$archiveFileIsEmpty = ($LocalizedData.ArchiveFileIsEmpty -f $archiveFile)_x000D__x000A__x0009__x0009__x0009__x0009__x0009_Write-Verbose $archiveFileIsEmpty_x000D__x000A__x0009__x0009__x0009__x0009__x0009_return_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_$currentEntryCount = 0_x000D__x000A__x0009__x0009__x0009__x0009_$progressBarStatus = ($LocalizedData.ExpandProgressBarText -f $archiveFile)_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_# The archive entries can either be empty directories or files._x000D__x000A__x0009__x0009__x0009__x0009_foreach ($currentArchiveEntry in $zipArchive.Entries)_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$currentArchiveEntryPath = Join-Path -Path $expandedDir -ChildPath $currentArchiveEntry.FullName_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$extension = [system.IO.Path]::GetExtension($currentArchiveEntryPath)_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009_# The current archive entry is an empty directory_x000D__x000A__x0009__x0009__x0009__x0009__x0009_# The FullName of the Archive Entry representing a directory would end with a trailing '\'._x000D__x000A__x0009__x0009__x0009__x0009__x0009_if ($extension -eq [string]::Empty -and_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_$currentArchiveEntryPath.EndsWith("\", [StringComparison]::OrdinalIgnoreCase))_x000D__x000A__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_$pathExists = Test-Path -LiteralPath $currentArchiveEntryPath_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_# The current archive entry expects an empty directory._x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_# Check if the existing directory is empty. If its not empty_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_# then it means that user has added this directory by other means._x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_if ($pathExists -eq $false)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_New-Item $currentArchiveEntryPath -ItemType Directory -Confirm:$isConfirm | Out-Null_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_if (Test-Path -LiteralPath $currentArchiveEntryPath -PathType Container)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$addEmptyDirectorytoExpandedPathMessage = ($LocalizedData.AddItemtoArchiveFile -f $currentArchiveEntryPath)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_Write-Verbose $addEmptyDirectorytoExpandedPathMessage_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$expandedItems.Value += $currentArchiveEntryPath_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009_else_x000D__x000A__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_try_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$currentArchiveEntryFileInfo = New-Object -TypeName System.IO.FileInfo -ArgumentList $currentArchiveEntryPath_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$parentDirExists = Test-Path -LiteralPath $currentArchiveEntryFileInfo.DirectoryName -PathType Container_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# If the Parent directory of the current entry in the archive file does not exist, then create it._x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_if ($parentDirExists -eq $false)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_New-Item $currentArchiveEntryFileInfo.DirectoryName -ItemType Directory -Confirm:$isConfirm | Out-Null_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_if (!(Test-Path -LiteralPath $currentArchiveEntryFileInfo.DirectoryName -PathType Container))_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# The directory referred by $currentArchiveEntryFileInfo.DirectoryName was not successfully created._x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# This could be because the user has specified -Confirm paramter when Expand-Archive was invoked_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# and authorization was not provided when confirmation was prompted. In such a scenario,_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# we skip the current file in the archive and continue with the remaining archive file contents._x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_Continue_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$expandedItems.Value += $currentArchiveEntryFileInfo.DirectoryName_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$hasNonTerminatingError = $false_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# Check if the file in to which the current archive entry contents_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# would be expanded already exists._x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_if ($currentArchiveEntryFileInfo.Exists)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_if ($force)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_Remove-Item -LiteralPath $currentArchiveEntryFileInfo.FullName -Force -ErrorVariable ev -Verbose:$isVerbose -Confirm:$isConfirm_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_if ($ev -ne $null)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$hasNonTerminatingError = $true_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_if (Test-Path -LiteralPath $currentArchiveEntryFileInfo.FullName -PathType Leaf)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# The file referred by $currentArchiveEntryFileInfo.FullName was not successfully removed._x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# This could be because the user has specified -Confirm paramter when Expand-Archive was invoked_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# and authorization was not provided when confirmation was prompted. In such a scenario,_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# we skip the current file in the archive and continue with the remaining archive file contents._x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_Continue_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_else_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# Write non-terminating error to the pipeline._x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$errorMessage = ($LocalizedData.FileExistsError -f $currentArchiveEntryFileInfo.FullName, $archiveFile, $currentArchiveEntryFileInfo.FullName, $currentArchiveEntryFileInfo.FullName)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$errorRecord = CreateErrorRecordHelper "ExpandArchiveFileExists" $errorMessage ([System.Management.Automation.ErrorCategory]::InvalidOperation) $null $currentArchiveEntryFileInfo.FullName_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_Write-Error -ErrorRecord $errorRecord_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$hasNonTerminatingError = $true_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_if (!$hasNonTerminatingError)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_[System.IO.Compression.ZipFileExtensions]::ExtractToFile($currentArchiveEntry, $currentArchiveEntryPath, $false)_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# Add the expanded file path to the $expandedItems array,_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# to keep track of all the expanded files created while expanding the archive file._x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# If user enters CTRL + C then at that point of time, all these expanded files_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# would be deleted as part of the clean up process._x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$expandedItems.Value += $currentArchiveEntryPath_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$addFiletoExpandedPathMessage = ($LocalizedData.CreateFileAtExpandedPath -f $currentArchiveEntryPath)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_Write-Verbose $addFiletoExpandedPathMessage_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_finally_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_If ($null -ne $destStream)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$destStream.Dispose()_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_If ($null -ne $srcStream)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$srcStream.Dispose()_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009_$currentEntryCount += 1_x000D__x000A__x0009__x0009__x0009__x0009__x0009_# $currentSegmentWeight is Set to 100 giving equal weightage to each file that is getting expanded._x000D__x000A__x0009__x0009__x0009__x0009__x0009_# $previousSegmentWeight is set to 0 as there are no prior segments._x000D__x000A__x0009__x0009__x0009__x0009__x0009_$previousSegmentWeight = 0_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$currentSegmentWeight = 100_x000D__x000A__x0009__x0009__x0009__x0009__x0009_ProgressBarHelper "Expand-Archive" $progressBarStatus $previousSegmentWeight $currentSegmentWeight $zipArchive.Entries.Count $currentEntryCount_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_finally_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_If ($null -ne $zipArchive)_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$zipArchive.Dispose()_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_If ($null -ne $archiveFileStream)_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$archiveFileStream.Dispose()_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_# Complete writing progress._x000D__x000A__x0009__x0009__x0009__x0009_Write-Progress -Activity "Expand-Archive" -Completed_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A_<############################################################################################_x000D__x000A_# ProgressBarHelper: This is a helper function used to display progress message._x000D__x000A_# This function is used by both Compress-Archive & Expand-Archive to display archive file_x000D__x000A_# creation/expansion progress._x000D__x000A_############################################################################################>_x000D__x000A__x0009__x0009_function ProgressBarHelper_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_param_x000D__x000A__x0009__x0009__x0009_(_x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$cmdletName,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$status,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[double]_x000D__x000A__x0009__x0009__x0009__x0009_$previousSegmentWeight,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[double]_x000D__x000A__x0009__x0009__x0009__x0009_$currentSegmentWeight,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[int]_x000D__x000A__x0009__x0009__x0009__x0009_$totalNumberofEntries,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[int]_x000D__x000A__x0009__x0009__x0009__x0009_$currentEntryCount_x000D__x000A__x0009__x0009__x0009_)_x000D__x000A__x000D__x000A__x0009__x0009__x0009_if ($currentEntryCount -gt 0 -and_x000D__x000A__x0009__x0009__x0009__x0009_$totalNumberofEntries -gt 0 -and_x000D__x000A__x0009__x0009__x0009__x0009_$previousSegmentWeight -ge 0 -and_x000D__x000A__x0009__x0009__x0009__x0009_$currentSegmentWeight -gt 0)_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_$entryDefaultWeight = $currentSegmentWeight/[double]$totalNumberofEntries_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_$percentComplete = $previousSegmentWeight + ($entryDefaultWeight * $currentEntryCount)_x000D__x000A__x0009__x0009__x0009__x0009_Write-Progress -Activity $cmdletName -Status $status -PercentComplete $percentComplete_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A_<############################################################################################_x000D__x000A_# CSVHelper: This is a helper function used to append comma after each path specifid by_x000D__x000A_# the SourcePath array. This helper function is used to display all the user supplied paths_x000D__x000A_# in the WhatIf message._x000D__x000A_############################################################################################>_x000D__x000A__x0009__x0009_function CSVHelper_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_param_x000D__x000A__x0009__x0009__x0009_(_x000D__x000A__x0009__x0009__x0009__x0009_[string[]]_x000D__x000A__x0009__x0009__x0009__x0009_$sourcePath_x000D__x000A__x0009__x0009__x0009_)_x000D__x000A__x000D__x000A__x0009__x0009__x0009_# SourcePath has already been validated by the calling funcation._x000D__x000A__x0009__x0009__x0009_if ($sourcePath.Count -gt 1)_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_$sourcePathInCsvFormat = "`n"_x000D__x000A__x0009__x0009__x0009__x0009_for ($currentIndex = 0; $currentIndex -lt $sourcePath.Count; $currentIndex++)_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_if ($currentIndex -eq $sourcePath.Count - 1)_x000D__x000A__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_$sourcePathInCsvFormat += $sourcePath[$currentIndex]_x000D__x000A__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009_else_x000D__x000A__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_$sourcePathInCsvFormat += $sourcePath[$currentIndex] + "`n"_x000D__x000A__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_else_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_$sourcePathInCsvFormat = $sourcePath_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009_return $sourcePathInCsvFormat_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A_<############################################################################################_x000D__x000A_# ThrowTerminatingErrorHelper: This is a helper function used to throw terminating error._x000D__x000A_############################################################################################>_x000D__x000A__x0009__x0009_function ThrowTerminatingErrorHelper_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_param_x000D__x000A__x0009__x0009__x0009_(_x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$errorId,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$errorMessage,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[System.Management.Automation.ErrorCategory]_x000D__x000A__x0009__x0009__x0009__x0009_$errorCategory,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[object]_x000D__x000A__x0009__x0009__x0009__x0009_$targetObject,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[Exception]_x000D__x000A__x0009__x0009__x0009__x0009_$innerException_x000D__x000A__x0009__x0009__x0009_)_x000D__x000A__x000D__x000A__x0009__x0009__x0009_if ($innerException -eq $null)_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_$exception = New-object System.IO.IOException $errorMessage_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_else_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_$exception = New-Object System.IO.IOException $errorMessage, $innerException_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009_$exception = New-Object System.IO.IOException $errorMessage_x000D__x000A__x0009__x0009__x0009_$errorRecord = New-Object System.Management.Automation.ErrorRecord $exception, $errorId, $errorCategory, $targetObject_x000D__x000A__x0009__x0009__x0009_$PSCmdlet.ThrowTerminatingError($errorRecord)_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A_<############################################################################################_x000D__x000A_# CreateErrorRecordHelper: This is a helper function used to create an ErrorRecord_x000D__x000A_############################################################################################>_x000D__x000A__x0009__x0009_function CreateErrorRecordHelper_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_param_x000D__x000A__x0009__x0009__x0009_(_x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$errorId,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$errorMessage,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[System.Management.Automation.ErrorCategory]_x000D__x000A__x0009__x0009__x0009__x0009_$errorCategory,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[Exception]_x000D__x000A__x0009__x0009__x0009__x0009_$exception,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[object]_x000D__x000A__x0009__x0009__x0009__x0009_$targetObject_x000D__x000A__x0009__x0009__x0009_)_x000D__x000A__x000D__x000A__x0009__x0009__x0009_if ($null -eq $exception)_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_$exception = New-Object System.IO.IOException $errorMessage_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009_$errorRecord = New-Object System.Management.Automation.ErrorRecord $exception, $errorId, $errorCategory, $targetObject_x000D__x000A__x0009__x0009__x0009_return $errorRecord_x000D__x000A__x0009__x0009_}_x000D__x000A__x0009__x0009_#endregion Utility Functions_x000D__x000A__x000D__x000A__x0009__x0009_$inputPaths = @()_x000D__x000A__x0009__x0009_$destinationParentDir = [system.IO.Path]::GetDirectoryName($DestinationPath)_x000D__x000A__x0009__x0009_if ($null -eq $destinationParentDir)_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_$errorMessage = ($LocalizedData.InvalidDestinationPath -f $DestinationPath)_x000D__x000A__x0009__x0009__x0009_ThrowTerminatingErrorHelper "InvalidArchiveFilePath" $errorMessage ([System.Management.Automation.ErrorCategory]::InvalidArgument) $DestinationPath_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009_if ($destinationParentDir -eq [string]::Empty)_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_$destinationParentDir = '.'_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009_$achiveFileName = [system.IO.Path]::GetFileName($DestinationPath)_x000D__x000A__x0009__x0009_$destinationParentDir = GetResolvedPathHelper $destinationParentDir $false $PSCmdlet_x000D__x000A__x000D__x000A__x0009__x0009_if ($destinationParentDir.Count -gt 1)_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_$errorMessage = ($LocalizedData.InvalidArchiveFilePathError -f $DestinationPath, "DestinationPath", "DestinationPath")_x000D__x000A__x0009__x0009__x0009_ThrowTerminatingErrorHelper "InvalidArchiveFilePath" $errorMessage ([System.Management.Automation.ErrorCategory]::InvalidArgument) $DestinationPath_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009_IsValidFileSystemPath $destinationParentDir | Out-Null_x000D__x000A__x0009__x0009_$DestinationPath = Join-Path -Path $destinationParentDir -ChildPath $achiveFileName_x000D__x000A__x000D__x000A__x0009__x0009_# GetExtension API does not validate for the actual existance of the path._x000D__x000A__x0009__x0009_$extension = [system.IO.Path]::GetExtension($DestinationPath)_x000D__x000A__x000D__x000A__x0009__x0009_# If user does not specify .Zip extension, we append it._x000D__x000A__x0009__x0009_If ($extension -eq [string]::Empty)_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_$DestinationPathWithOutExtension = $DestinationPath_x000D__x000A__x0009__x0009__x0009_$DestinationPath = $DestinationPathWithOutExtension + $zipFileExtension_x000D__x000A__x0009__x0009__x0009_$appendArchiveFileExtensionMessage = ($LocalizedData.AppendArchiveFileExtensionMessage -f $DestinationPathWithOutExtension, $DestinationPath)_x000D__x000A__x0009__x0009__x0009_Write-Verbose $appendArchiveFileExtensionMessage_x000D__x000A__x0009__x0009_}_x000D__x000A__x0009__x0009_else_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_# Invalid file extension is specified for the zip file to be created._x000D__x000A__x0009__x0009__x0009_if ($extension -ne $zipFileExtension)_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_$errorMessage = ($LocalizedData.InvalidZipFileExtensionError -f $extension, $zipFileExtension)_x000D__x000A__x0009__x0009__x0009__x0009_ThrowTerminatingErrorHelper "NotSupportedArchiveFileExtension" $errorMessage ([System.Management.Automation.ErrorCategory]::InvalidArgument) $extension_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009_$archiveFileExist = Test-Path -LiteralPath $DestinationPath -PathType Leaf_x000D__x000A__x000D__x000A__x0009__x0009_if ($archiveFileExist -and ($Update -eq $false -and $Force -eq $false))_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_$errorMessage = ($LocalizedData.ZipFileExistError -f $DestinationPath)_x000D__x000A__x0009__x0009__x0009_ThrowTerminatingErrorHelper "ArchiveFileExists" $errorMessage ([System.Management.Automation.ErrorCategory]::InvalidArgument) $DestinationPath_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009_# If archive file already exists and if -Update is specified, then we check to see_x000D__x000A__x0009__x0009_# if we have write access permission to update the existing archive file._x000D__x000A__x0009__x0009_if ($archiveFileExist -and $Update -eq $true)_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_$item = Get-Item -Path $DestinationPath_x000D__x000A__x0009__x0009__x0009_if ($item.Attributes.ToString().Contains("ReadOnly"))_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_$errorMessage = ($LocalizedData.ArchiveFileIsReadOnly -f $DestinationPath)_x000D__x000A__x0009__x0009__x0009__x0009_ThrowTerminatingErrorHelper "ArchiveFileIsReadOnly" $errorMessage ([System.Management.Automation.ErrorCategory]::InvalidOperation) $DestinationPath_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009_$isWhatIf = $psboundparameters.ContainsKey("WhatIf")_x000D__x000A__x0009__x0009_if (!$isWhatIf)_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_$preparingToCompressVerboseMessage = ($LocalizedData.PreparingToCompressVerboseMessage)_x000D__x000A__x0009__x0009__x0009_Write-Verbose $preparingToCompressVerboseMessage_x000D__x000A__x000D__x000A__x0009__x0009__x0009_$progressBarStatus = ($LocalizedData.CompressProgressBarText -f $DestinationPath)_x000D__x000A__x0009__x0009__x0009_ProgressBarHelper "Compress-Archive" $progressBarStatus 0 100 100 1_x000D__x000A__x0009__x0009_}_x000D__x000A__x0009_}_x000D__x000A__x0009_PROCESS_x000D__x000A__x0009_{_x000D__x000A__x0009__x0009_if ($PsCmdlet.ParameterSetName -eq "Path" -or_x000D__x000A__x0009__x0009__x0009_$PsCmdlet.ParameterSetName -eq "PathWithForce" -or_x000D__x000A__x0009__x0009__x0009_$PsCmdlet.ParameterSetName -eq "PathWithUpdate")_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_$inputPaths += $Path_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009_if ($PsCmdlet.ParameterSetName -eq "LiteralPath" -or_x000D__x000A__x0009__x0009__x0009_$PsCmdlet.ParameterSetName -eq "LiteralPathWithForce" -or_x000D__x000A__x0009__x0009__x0009_$PsCmdlet.ParameterSetName -eq "LiteralPathWithUpdate")_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_$inputPaths += $LiteralPath_x000D__x000A__x0009__x0009_}_x000D__x000A__x0009_}_x000D__x000A__x0009_END_x000D__x000A__x0009_{_x000D__x000A__x0009__x0009_# If archive file already exists and if -Force is specified, we delete the_x000D__x000A__x0009__x0009_# existing artchive file and create a brand new one._x000D__x000A__x0009__x0009_if (($PsCmdlet.ParameterSetName -eq "PathWithForce" -or_x000D__x000A__x0009__x0009__x0009__x0009_$PsCmdlet.ParameterSetName -eq "LiteralPathWithForce") -and $archiveFileExist)_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_Remove-Item -Path $DestinationPath -Force -ErrorAction Stop_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009_# Validate Source Path depeding on parameter set being used._x000D__x000A__x0009__x0009_# The specified source path conatins one or more files or directories that needs_x000D__x000A__x0009__x0009_# to be compressed._x000D__x000A__x0009__x0009_$isLiteralPathUsed = $false_x000D__x000A__x0009__x0009_if ($PsCmdlet.ParameterSetName -eq "LiteralPath" -or_x000D__x000A__x0009__x0009__x0009_$PsCmdlet.ParameterSetName -eq "LiteralPathWithForce" -or_x000D__x000A__x0009__x0009__x0009_$PsCmdlet.ParameterSetName -eq "LiteralPathWithUpdate")_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_$isLiteralPathUsed = $true_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009_ValidateDuplicateFileSystemPath $PsCmdlet.ParameterSetName $inputPaths_x000D__x000A__x0009__x0009_$resolvedPaths = GetResolvedPathHelper $inputPaths $isLiteralPathUsed $PSCmdlet_x000D__x000A__x0009__x0009_IsValidFileSystemPath $resolvedPaths | Out-Null_x000D__x000A__x000D__x000A__x0009__x0009_$sourcePath = $resolvedPaths;_x000D__x000A__x000D__x000A__x0009__x0009_# CSVHelper: This is a helper function used to append comma after each path specifid by_x000D__x000A__x0009__x0009_# the $sourcePath array. The comma saperated paths are displayed in the -WhatIf message._x000D__x000A__x0009__x0009_$sourcePathInCsvFormat = CSVHelper $sourcePath_x000D__x000A__x0009__x0009_if ($pscmdlet.ShouldProcess($sourcePathInCsvFormat))_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_try_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_# StopProcessing is not avaliable in Script cmdlets. However the pipleline execution_x000D__x000A__x0009__x0009__x0009__x0009_# is terminated when ever 'CTRL + C' is entered by user to terminate the cmdlet execution._x000D__x000A__x0009__x0009__x0009__x0009_# The finally block is executed whenever pipleline is terminated._x000D__x000A__x0009__x0009__x0009__x0009_# $isArchiveFileProcessingComplete variable is used to track if 'CTRL + C' is entered by the_x000D__x000A__x0009__x0009__x0009__x0009_# user._x000D__x000A__x0009__x0009__x0009__x0009_$isArchiveFileProcessingComplete = $false_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_$numberOfItemsArchived = CompressArchiveHelper $sourcePath $DestinationPath $CompressionLevel $Update_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_$isArchiveFileProcessingComplete = $true_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_finally_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_# The $isArchiveFileProcessingComplete would be set to $false if user has typed 'CTRL + C' to_x000D__x000A__x0009__x0009__x0009__x0009_# terminate the cmdlet execution or if an unhandled exception is thrown._x000D__x000A__x0009__x0009__x0009__x0009_# $numberOfItemsArchived contains the count of number of files or directories add to the archive file._x000D__x000A__x0009__x0009__x0009__x0009_# If the newly created archive file is empty then we delete it as its not usable._x000D__x000A__x0009__x0009__x0009__x0009_if (($isArchiveFileProcessingComplete -eq $false) -or_x000D__x000A__x0009__x0009__x0009__x0009__x0009_($numberOfItemsArchived -eq 0))_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$DeleteArchiveFileMessage = ($LocalizedData.DeleteArchiveFile -f $DestinationPath)_x000D__x000A__x0009__x0009__x0009__x0009__x0009_Write-Verbose $DeleteArchiveFileMessage_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009_# delete the partial archive file created._x000D__x000A__x0009__x0009__x0009__x0009__x0009_if (Test-Path $DestinationPath)_x000D__x000A__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_Remove-Item -LiteralPath $DestinationPath -Force -Recurse -ErrorAction SilentlyContinue_x000D__x000A__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009_}_x000D__x000A__x0009_}_x000D__x000A_}_x000D__x000A__x000D__x000A_function Expand-Archive_x000D__x000A_{_x000D__x000A__x0009_<#_x000D__x000A__x0009__x0009_.SYNOPSIS_x000D__x000A__x0009__x0009__x0009_Extracts files from a specified archive (zipped) file._x000D__x000A__x000D__x000A__x0009__x0009_.DESCRIPTION_x000D__x000A__x0009__x0009__x0009_The Expand-Archive cmdlet extracts files from a specified zipped archive file to a specified destination folder. An archive file allows multiple files to be packaged, and optionally compressed, into a single zipped file for easier distribution and storage._x000D__x000A__x000D__x000A__x0009__x0009_.PARAMETER Path_x000D__x000A__x0009__x0009__x0009_Specifies the path to the archive file._x000D__x000A__x000D__x000A__x0009__x0009_.PARAMETER LiteralPath_x000D__x000A__x0009__x0009__x0009_Specifies the path to an archive file. Unlike the Path parameter, the value of LiteralPath is used exactly as it is typed. Wildcard characters are not supported. If the path includes escape characters, enclose each escape character in single quotation marks, to instruct Windows PowerShell not to interpret any characters as escape sequences._x000D__x000A__x000D__x000A__x0009__x0009_.PARAMETER DestinationPath_x000D__x000A__x0009__x0009__x0009_Specifies the path to the folder in which you want the command to save extracted files. Enter the path to a folder, but do not specify a file name or file name extension. This parameter is required._x000D__x000A__x000D__x000A__x0009__x0009_.PARAMETER Force_x000D__x000A__x0009__x0009__x0009_Forces the command to run without asking for user confirmation._x000D__x000A__x000D__x000A__x0009__x0009_.PARAMETER Confirm_x000D__x000A__x0009__x0009__x0009_Prompts you for confirmation before running the cmdlet._x000D__x000A__x000D__x000A__x0009__x0009_.PARAMETER WhatIf_x000D__x000A__x0009__x0009__x0009_Shows what would happen if the cmdlet runs. The cmdlet is not run._x000D__x000A__x000D__x000A__x0009__x0009_.EXAMPLE_x000D__x000A__x0009__x0009__x0009_Example 1: Extract the contents of an archive_x000D__x000A__x000D__x000A__x0009__x0009__x0009_PS C:\>Expand-Archive -LiteralPath C:\Archives\Draft.Zip -DestinationPath C:\Reference_x000D__x000A__x000D__x000A__x0009__x0009__x0009_This command extracts the contents of an existing archive file, Draft.zip, into the folder specified by the DestinationPath parameter, C:\Reference._x000D__x000A__x000D__x000A__x0009__x0009_.EXAMPLE_x000D__x000A__x0009__x0009__x0009_Example 2: Extract the contents of an archive in the current folder_x000D__x000A__x000D__x000A__x0009__x0009__x0009_PS C:\>Expand-Archive -Path Draft.Zip -DestinationPath C:\Reference_x000D__x000A__x000D__x000A__x0009__x0009__x0009_This command extracts the contents of an existing archive file in the current folder, Draft.zip, into the folder specified by the DestinationPath parameter, C:\Reference._x000D__x000A__x0009_#>_x000D__x000A__x0009_[CmdletBinding(_x000D__x000A__x0009__x0009__x0009__x0009_ DefaultParameterSetName = "Path",_x000D__x000A__x0009__x0009__x0009__x0009_ SupportsShouldProcess = $true,_x000D__x000A__x0009__x0009__x0009__x0009_ HelpUri = "http://go.microsoft.com/fwlink/?LinkID=393253")]_x000D__x000A__x0009_param_x000D__x000A__x0009_(_x000D__x000A__x0009__x0009_[parameter (_x000D__x000A__x0009__x0009__x0009__x0009__x0009_mandatory = $true,_x000D__x000A__x0009__x0009__x0009__x0009__x0009_Position = 0,_x000D__x000A__x0009__x0009__x0009__x0009__x0009_ParameterSetName = "Path",_x000D__x000A__x0009__x0009__x0009__x0009__x0009_ValueFromPipeline = $true,_x000D__x000A__x0009__x0009__x0009__x0009__x0009_ValueFromPipelineByPropertyName = $true)]_x000D__x000A__x0009__x0009_[ValidateNotNullOrEmpty()]_x000D__x000A__x0009__x0009_[string]_x000D__x000A__x0009__x0009_$Path,_x000D__x000A__x000D__x000A__x0009__x0009_[parameter (_x000D__x000A__x0009__x0009__x0009__x0009__x0009_mandatory = $true,_x000D__x000A__x0009__x0009__x0009__x0009__x0009_ParameterSetName = "LiteralPath",_x000D__x000A__x0009__x0009__x0009__x0009__x0009_ValueFromPipelineByPropertyName = $true)]_x000D__x000A__x0009__x0009_[ValidateNotNullOrEmpty()]_x000D__x000A__x0009__x0009_[Alias("PSPath")]_x000D__x000A__x0009__x0009_[string]_x000D__x000A__x0009__x0009_$LiteralPath,_x000D__x000A__x000D__x000A__x0009__x0009_[parameter (mandatory = $false,_x000D__x000A__x0009__x0009__x0009__x0009__x0009_Position = 1,_x000D__x000A__x0009__x0009__x0009__x0009__x0009_ValueFromPipeline = $false,_x000D__x000A__x0009__x0009__x0009__x0009__x0009_ValueFromPipelineByPropertyName = $false)]_x000D__x000A__x0009__x0009_[ValidateNotNullOrEmpty()]_x000D__x000A__x0009__x0009_[string]_x000D__x000A__x0009__x0009_$DestinationPath,_x000D__x000A__x000D__x000A__x0009__x0009_[parameter (mandatory = $false,_x000D__x000A__x0009__x0009__x0009__x0009__x0009_ValueFromPipeline = $false,_x000D__x000A__x0009__x0009__x0009__x0009__x0009_ValueFromPipelineByPropertyName = $false)]_x000D__x000A__x0009__x0009_[switch]_x000D__x000A__x0009__x0009_$Force_x000D__x000A__x0009_)_x000D__x000A__x000D__x000A__x0009_BEGIN_x000D__x000A__x0009_{_x000D__x000A__x0009__x0009_Add-Type -AssemblyName System.IO.Compression -ErrorAction Ignore_x000D__x000A__x0009__x0009_Add-Type -AssemblyName System.IO.Compression.FileSystem -ErrorAction Ignore_x000D__x000A__x000D__x000A__x0009__x0009_$zipFileExtension = ".zip"_x000D__x000A__x000D__x000A__x0009__x0009_$LocalizedData = ConvertFrom-StringData @'_x000D__x000A_PathNotFoundError=The path '{0}' either does not exist or is not a valid file system path._x000D__x000A_ExpandArchiveInValidDestinationPath=The path '{0}' is not a valid file system directory path._x000D__x000A_InvalidZipFileExtensionError={0} is not a supported archive file format. {1} is the only supported archive file format._x000D__x000A_ArchiveFileIsReadOnly=The attributes of the archive file {0} is set to 'ReadOnly' hence it cannot be updated. If you intend to update the existing archive file, remove the 'ReadOnly' attribute on the archive file else use -Force parameter to override and create a new archive file._x000D__x000A_ZipFileExistError=The archive file {0} already exists. Use the -Update parameter to update the existing archive file or use the -Force parameter to overwrite the existing archive file._x000D__x000A_DuplicatePathFoundError=The input to {0} parameter contains a duplicate path '{1}'. Provide a unique set of paths as input to {2} parameter._x000D__x000A_ArchiveFileIsEmpty=The archive file {0} is empty._x000D__x000A_CompressProgressBarText=The archive file '{0}' creation is in progress..._x000D__x000A_ExpandProgressBarText=The archive file '{0}' expansion is in progress..._x000D__x000A_AppendArchiveFileExtensionMessage=The archive file path '{0}' supplied to the DestinationPath patameter does not include .zip extension. Hence .zip is appended to the supplied DestinationPath path and the archive file would be created at '{1}'._x000D__x000A_AddItemtoArchiveFile=Adding '{0}'._x000D__x000A_CreateFileAtExpandedPath=Created '{0}'._x000D__x000A_InvalidArchiveFilePathError=The archive file path '{0}' specified as input to the {1} parameter is resolving to multiple file system paths. Provide a unique path to the {2} parameter where the archive file has to be created._x000D__x000A_InvalidExpandedDirPathError=The directory path '{0}' specified as input to the DestinationPath parameter is resolving to multiple file system paths. Provide a unique path to the Destination parameter where the archive file contents have to be expanded._x000D__x000A_FileExistsError=Failed to create file '{0}' while expanding the archive file '{1}' contents as the file '{2}' already exists. Use the -Force parameter if you want to overwrite the existing directory '{3}' contents when expanding the archive file._x000D__x000A_DeleteArchiveFile=The partially created archive file '{0}' is deleted as it is not usable._x000D__x000A_InvalidDestinationPath=The destination path '{0}' does not contain a valid archive file name._x000D__x000A_PreparingToCompressVerboseMessage=Preparing to compress..._x000D__x000A_PreparingToExpandVerboseMessage=Preparing to expand..._x000D__x000A_'@_x000D__x000A__x000D__x000A__x0009__x0009_#region Utility Functions_x000D__x000A__x0009__x0009_function GetResolvedPathHelper_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_param_x000D__x000A__x0009__x0009__x0009_(_x000D__x000A__x0009__x0009__x0009__x0009_[string[]]_x000D__x000A__x0009__x0009__x0009__x0009_$path,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[boolean]_x000D__x000A__x0009__x0009__x0009__x0009_$isLiteralPath,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[System.Management.Automation.PSCmdlet]_x000D__x000A__x0009__x0009__x0009__x0009_$callerPSCmdlet_x000D__x000A__x0009__x0009__x0009_)_x000D__x000A__x000D__x000A__x0009__x0009__x0009_$resolvedPaths = @()_x000D__x000A__x000D__x000A__x0009__x0009__x0009_# null and empty check are are already done on Path parameter at the cmdlet layer._x000D__x000A__x0009__x0009__x0009_foreach ($currentPath in $path)_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_try_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_if ($isLiteralPath)_x000D__x000A__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_$currentResolvedPaths = Resolve-Path -LiteralPath $currentPath -ErrorAction Stop_x000D__x000A__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009_else_x000D__x000A__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_$currentResolvedPaths = Resolve-Path -Path $currentPath -ErrorAction Stop_x000D__x000A__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009_catch_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$errorMessage = ($LocalizedData.PathNotFoundError -f $currentPath)_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$exception = New-Object System.InvalidOperationException $errorMessage, $_.Exception_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$errorRecord = CreateErrorRecordHelper "ArchiveCmdletPathNotFound" $null ([System.Management.Automation.ErrorCategory]::InvalidArgument) $exception $currentPath_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$callerPSCmdlet.ThrowTerminatingError($errorRecord)_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_foreach ($currentResolvedPath in $currentResolvedPaths)_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$resolvedPaths += $currentResolvedPath.ProviderPath_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009_$resolvedPaths_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009_function Add-CompressionAssemblies_x000D__x000A__x0009__x0009_{_x000D__x000A__x000D__x000A__x0009__x0009__x0009_if ($PSEdition -eq "Desktop")_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_Add-Type -AssemblyName System.IO.Compression_x000D__x000A__x0009__x0009__x0009__x0009_Add-Type -AssemblyName System.IO.Compression.FileSystem_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009_function IsValidFileSystemPath_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_param_x000D__x000A__x0009__x0009__x0009_(_x000D__x000A__x0009__x0009__x0009__x0009_[string[]]_x000D__x000A__x0009__x0009__x0009__x0009_$path_x000D__x000A__x0009__x0009__x0009_)_x000D__x000A__x000D__x000A__x0009__x0009__x0009_$result = $true;_x000D__x000A__x000D__x000A__x0009__x0009__x0009_# null and empty check are are already done on Path parameter at the cmdlet layer._x000D__x000A__x0009__x0009__x0009_foreach ($currentPath in $path)_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_if (!([System.IO.File]::Exists($currentPath) -or [System.IO.Directory]::Exists($currentPath)))_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$errorMessage = ($LocalizedData.PathNotFoundError -f $currentPath)_x000D__x000A__x0009__x0009__x0009__x0009__x0009_ThrowTerminatingErrorHelper "PathNotFound" $errorMessage ([System.Management.Automation.ErrorCategory]::InvalidArgument) $currentPath_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009_return $result;_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A__x000D__x000A__x0009__x0009_function ValidateDuplicateFileSystemPath_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_param_x000D__x000A__x0009__x0009__x0009_(_x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$inputParameter,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[string[]]_x000D__x000A__x0009__x0009__x0009__x0009_$path_x000D__x000A__x0009__x0009__x0009_)_x000D__x000A__x000D__x000A__x0009__x0009__x0009_$uniqueInputPaths = @()_x000D__x000A__x000D__x000A__x0009__x0009__x0009_# null and empty check are are already done on Path parameter at the cmdlet layer._x000D__x000A__x0009__x0009__x0009_foreach ($currentPath in $path)_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_$currentInputPath = $currentPath.ToUpper()_x000D__x000A__x0009__x0009__x0009__x0009_if ($uniqueInputPaths.Contains($currentInputPath))_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$errorMessage = ($LocalizedData.DuplicatePathFoundError -f $inputParameter, $currentPath, $inputParameter)_x000D__x000A__x0009__x0009__x0009__x0009__x0009_ThrowTerminatingErrorHelper "DuplicatePathFound" $errorMessage ([System.Management.Automation.ErrorCategory]::InvalidArgument) $currentPath_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009_else_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$uniqueInputPaths += $currentInputPath_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009_function CompressionLevelMapper_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_param_x000D__x000A__x0009__x0009__x0009_(_x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$compressionLevel_x000D__x000A__x0009__x0009__x0009_)_x000D__x000A__x000D__x000A__x0009__x0009__x0009_$compressionLevelFormat = [System.IO.Compression.CompressionLevel]::Optimal_x000D__x000A__x000D__x000A__x0009__x0009__x0009_# CompressionLevel format is already validated at the cmdlet layer._x000D__x000A__x0009__x0009__x0009_switch ($compressionLevel.ToString())_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_"Fastest"_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$compressionLevelFormat = [System.IO.Compression.CompressionLevel]::Fastest_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009_"NoCompression"_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$compressionLevelFormat = [System.IO.Compression.CompressionLevel]::NoCompression_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009_return $compressionLevelFormat_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009_function CompressArchiveHelper_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_param_x000D__x000A__x0009__x0009__x0009_(_x000D__x000A__x0009__x0009__x0009__x0009_[string[]]_x000D__x000A__x0009__x0009__x0009__x0009_$sourcePath,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$destinationPath,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$compressionLevel,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[bool]_x000D__x000A__x0009__x0009__x0009__x0009_$isUpdateMode_x000D__x000A__x0009__x0009__x0009_)_x000D__x000A__x000D__x000A__x0009__x0009__x0009_$numberOfItemsArchived = 0_x000D__x000A__x0009__x0009__x0009_$sourceFilePaths = @()_x000D__x000A__x0009__x0009__x0009_$sourceDirPaths = @()_x000D__x000A__x000D__x000A__x0009__x0009__x0009_foreach ($currentPath in $sourcePath)_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_$result = Test-Path -LiteralPath $currentPath -PathType Leaf_x000D__x000A__x0009__x0009__x0009__x0009_if ($result -eq $true)_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$sourceFilePaths += $currentPath_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009_else_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$sourceDirPaths += $currentPath_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009_# The Soure Path contains one or more directory (this directory can have files under it) and no files to be compressed._x000D__x000A__x0009__x0009__x0009_if ($sourceFilePaths.Count -eq 0 -and $sourceDirPaths.Count -gt 0)_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_$currentSegmentWeight = 100/[double]$sourceDirPaths.Count_x000D__x000A__x0009__x0009__x0009__x0009_$previousSegmentWeight = 0_x000D__x000A__x0009__x0009__x0009__x0009_foreach ($currentSourceDirPath in $sourceDirPaths)_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$count = CompressSingleDirHelper $currentSourceDirPath $destinationPath $compressionLevel $true $isUpdateMode $previousSegmentWeight $currentSegmentWeight_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$numberOfItemsArchived += $count_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$previousSegmentWeight += $currentSegmentWeight_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009_# The Soure Path contains only files to be compressed._x000D__x000A__x0009__x0009__x0009_elseIf ($sourceFilePaths.Count -gt 0 -and $sourceDirPaths.Count -eq 0)_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_# $previousSegmentWeight is equal to 0 as there are no prior segments._x000D__x000A__x0009__x0009__x0009__x0009_# $currentSegmentWeight is set to 100 as all files have equal weightage._x000D__x000A__x0009__x0009__x0009__x0009_$previousSegmentWeight = 0_x000D__x000A__x0009__x0009__x0009__x0009_$currentSegmentWeight = 100_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_$numberOfItemsArchived = CompressFilesHelper $sourceFilePaths $destinationPath $compressionLevel $isUpdateMode $previousSegmentWeight $currentSegmentWeight_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_# The Soure Path contains one or more files and one or more directories (this directory can have files under it) to be compressed._x000D__x000A__x0009__x0009__x0009_elseif ($sourceFilePaths.Count -gt 0 -and $sourceDirPaths.Count -gt 0)_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_# each directory is considered as an individual segments & all the individual files are clubed in to a separate sgemnet._x000D__x000A__x0009__x0009__x0009__x0009_$currentSegmentWeight = 100/[double]($sourceDirPaths.Count + 1)_x000D__x000A__x0009__x0009__x0009__x0009_$previousSegmentWeight = 0_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_foreach ($currentSourceDirPath in $sourceDirPaths)_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$count = CompressSingleDirHelper $currentSourceDirPath $destinationPath $compressionLevel $true $isUpdateMode $previousSegmentWeight $currentSegmentWeight_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$numberOfItemsArchived += $count_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$previousSegmentWeight += $currentSegmentWeight_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_$count = CompressFilesHelper $sourceFilePaths $destinationPath $compressionLevel $isUpdateMode $previousSegmentWeight $currentSegmentWeight_x000D__x000A__x0009__x0009__x0009__x0009_$numberOfItemsArchived += $count_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009_return $numberOfItemsArchived_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009_function CompressFilesHelper_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_param_x000D__x000A__x0009__x0009__x0009_(_x000D__x000A__x0009__x0009__x0009__x0009_[string[]]_x000D__x000A__x0009__x0009__x0009__x0009_$sourceFilePaths,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$destinationPath,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$compressionLevel,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[bool]_x000D__x000A__x0009__x0009__x0009__x0009_$isUpdateMode,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[double]_x000D__x000A__x0009__x0009__x0009__x0009_$previousSegmentWeight,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[double]_x000D__x000A__x0009__x0009__x0009__x0009_$currentSegmentWeight_x000D__x000A__x0009__x0009__x0009_)_x000D__x000A__x000D__x000A__x0009__x0009__x0009_$numberOfItemsArchived = ZipArchiveHelper $sourceFilePaths $destinationPath $compressionLevel $isUpdateMode $null $previousSegmentWeight $currentSegmentWeight_x000D__x000A__x000D__x000A__x0009__x0009__x0009_return $numberOfItemsArchived_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009_function CompressSingleDirHelper_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_param_x000D__x000A__x0009__x0009__x0009_(_x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$sourceDirPath,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$destinationPath,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$compressionLevel,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[bool]_x000D__x000A__x0009__x0009__x0009__x0009_$useParentDirAsRoot,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[bool]_x000D__x000A__x0009__x0009__x0009__x0009_$isUpdateMode,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[double]_x000D__x000A__x0009__x0009__x0009__x0009_$previousSegmentWeight,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[double]_x000D__x000A__x0009__x0009__x0009__x0009_$currentSegmentWeight_x000D__x000A__x0009__x0009__x0009_)_x000D__x000A__x000D__x000A__x0009__x0009__x0009_[System.Collections.Generic.List[System.String]]$subDirFiles = @()_x000D__x000A__x000D__x000A__x0009__x0009__x0009_if ($useParentDirAsRoot)_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_$sourceDirInfo = New-Object -TypeName System.IO.DirectoryInfo -ArgumentList $sourceDirPath_x000D__x000A__x0009__x0009__x0009__x0009_$sourceDirFullName = $sourceDirInfo.Parent.FullName_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_# If the directory is present at the drive level the DirectoryInfo.Parent include '\' example: C:\_x000D__x000A__x0009__x0009__x0009__x0009_# On the other hand if the directory exists at a deper level then DirectoryInfo.Parent_x000D__x000A__x0009__x0009__x0009__x0009_# has just the path (without an ending '\'). example C:\source_x000D__x000A__x0009__x0009__x0009__x0009_if ($sourceDirFullName.Length -eq 3)_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$modifiedSourceDirFullName = $sourceDirFullName_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009_else_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$modifiedSourceDirFullName = $sourceDirFullName + "\"_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_else_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_$sourceDirFullName = $sourceDirPath_x000D__x000A__x0009__x0009__x0009__x0009_$modifiedSourceDirFullName = $sourceDirFullName + "\"_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009_$dirContents = Get-ChildItem -LiteralPath $sourceDirPath -Recurse_x000D__x000A__x0009__x0009__x0009_foreach ($currentContent in $dirContents)_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_$isContainer = $currentContent -is [System.IO.DirectoryInfo]_x000D__x000A__x0009__x0009__x0009__x0009_if (!$isContainer)_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$subDirFiles.Add($currentContent.FullName)_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009_else_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_# The currentContent points to a directory._x000D__x000A__x0009__x0009__x0009__x0009__x0009_# We need to check if the directory is an empty directory, if so such a_x000D__x000A__x0009__x0009__x0009__x0009__x0009_# directory has to be explictly added to the archive file._x000D__x000A__x0009__x0009__x0009__x0009__x0009_# if there are no files in the directory the GetFiles() API returns an empty array._x000D__x000A__x0009__x0009__x0009__x0009__x0009_$files = $currentContent.GetFiles()_x000D__x000A__x0009__x0009__x0009__x0009__x0009_if ($files.Count -eq 0)_x000D__x000A__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_$subDirFiles.Add($currentContent.FullName + "\")_x000D__x000A__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009_$numberOfItemsArchived = ZipArchiveHelper $subDirFiles.ToArray() $destinationPath $compressionLevel $isUpdateMode $modifiedSourceDirFullName $previousSegmentWeight $currentSegmentWeight_x000D__x000A__x000D__x000A__x0009__x0009__x0009_return $numberOfItemsArchived_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009_function ZipArchiveHelper_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_param_x000D__x000A__x0009__x0009__x0009_(_x000D__x000A__x0009__x0009__x0009__x0009_[System.Collections.Generic.List[System.String]]_x000D__x000A__x0009__x0009__x0009__x0009_$sourcePaths,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$destinationPath,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$compressionLevel,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[bool]_x000D__x000A__x0009__x0009__x0009__x0009_$isUpdateMode,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$modifiedSourceDirFullName,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[double]_x000D__x000A__x0009__x0009__x0009__x0009_$previousSegmentWeight,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[double]_x000D__x000A__x0009__x0009__x0009__x0009_$currentSegmentWeight_x000D__x000A__x0009__x0009__x0009_)_x000D__x000A__x000D__x000A__x0009__x0009__x0009_$numberOfItemsArchived = 0_x000D__x000A__x0009__x0009__x0009_$fileMode = [System.IO.FileMode]::Create_x000D__x000A__x0009__x0009__x0009_$result = Test-Path -LiteralPath $DestinationPath -PathType Leaf_x000D__x000A__x0009__x0009__x0009_if ($result -eq $true)_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_$fileMode = [System.IO.FileMode]::Open_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009_Add-CompressionAssemblies_x000D__x000A__x000D__x000A__x0009__x0009__x0009_try_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_# At this point we are sure that the archive file has write access._x000D__x000A__x0009__x0009__x0009__x0009_$archiveFileStreamArgs = @($destinationPath, $fileMode)_x000D__x000A__x0009__x0009__x0009__x0009_$archiveFileStream = New-Object -TypeName System.IO.FileStream -ArgumentList $archiveFileStreamArgs_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_$zipArchiveArgs = @($archiveFileStream, [System.IO.Compression.ZipArchiveMode]::Update, $false)_x000D__x000A__x0009__x0009__x0009__x0009_$zipArchive = New-Object -TypeName System.IO.Compression.ZipArchive -ArgumentList $zipArchiveArgs_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_$currentEntryCount = 0_x000D__x000A__x0009__x0009__x0009__x0009_$progressBarStatus = ($LocalizedData.CompressProgressBarText -f $destinationPath)_x000D__x000A__x0009__x0009__x0009__x0009_$bufferSize = 4kb_x000D__x000A__x0009__x0009__x0009__x0009_$buffer = New-Object Byte[] $bufferSize_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_foreach ($currentFilePath in $sourcePaths)_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_if ($modifiedSourceDirFullName -ne $null -and $modifiedSourceDirFullName.Length -gt 0)_x000D__x000A__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_$index = $currentFilePath.IndexOf($modifiedSourceDirFullName, [System.StringComparison]::OrdinalIgnoreCase)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_$currentFilePathSubString = $currentFilePath.Substring($index, $modifiedSourceDirFullName.Length)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_$relativeFilePath = $currentFilePath.Replace($currentFilePathSubString, "").Trim()_x000D__x000A__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009_else_x000D__x000A__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_$relativeFilePath = [System.IO.Path]::GetFileName($currentFilePath)_x000D__x000A__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009_# Update mode is selected._x000D__x000A__x0009__x0009__x0009__x0009__x0009_# Check to see if archive file already contains one or more zip files in it._x000D__x000A__x0009__x0009__x0009__x0009__x0009_if ($isUpdateMode -eq $true -and $zipArchive.Entries.Count -gt 0)_x000D__x000A__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_$entryToBeUpdated = $null_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_# Check if the file already exists in the archive file._x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_# If so replace it with new file from the input source._x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_# If the file does not exist in the archive file then default to_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_# create mode and create the entry in the archive file._x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_foreach ($currentArchiveEntry in $zipArchive.Entries)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_if ($currentArchiveEntry.FullName -eq $relativeFilePath)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$entryToBeUpdated = $currentArchiveEntry_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_break_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_if ($entryToBeUpdated -ne $null)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$addItemtoArchiveFileMessage = ($LocalizedData.AddItemtoArchiveFile -f $currentFilePath)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$entryToBeUpdated.Delete()_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009_$compression = CompressionLevelMapper $compressionLevel_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009_# If a directory needs to be added to an archive file,_x000D__x000A__x0009__x0009__x0009__x0009__x0009_# by convention the .Net API's expect the path of the diretcory_x000D__x000A__x0009__x0009__x0009__x0009__x0009_# to end with '\' to detect the path as an directory._x000D__x000A__x0009__x0009__x0009__x0009__x0009_if (!$relativeFilePath.EndsWith("\", [StringComparison]::OrdinalIgnoreCase))_x000D__x000A__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_try_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_try_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$currentFileStream = [System.IO.File]::Open($currentFilePath, [System.IO.FileMode]::Open, [System.IO.FileAccess]::Read)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_catch_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# Failed to access the file. Write a non terminating error to the pipeline_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# and move on with the remaining files._x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$exception = $_.Exception_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_if ($null -ne $_.Exception -and_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$null -ne $_.Exception.InnerException)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$exception = $_.Exception.InnerException_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$errorRecord = CreateErrorRecordHelper "CompressArchiveUnauthorizedAccessError" $null ([System.Management.Automation.ErrorCategory]::PermissionDenied) $exception $currentFilePath_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_Write-Error -ErrorRecord $errorRecord_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_if ($null -ne $currentFileStream)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$srcStream = New-Object System.IO.BinaryReader $currentFileStream_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$currentArchiveEntry = $zipArchive.CreateEntry($relativeFilePath, $compression)_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# Updating the File Creation time so that the same timestamp would be retained after expanding the compressed file._x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# At this point we are sure that Get-ChildItem would succeed._x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$currentArchiveEntry.LastWriteTime = (Get-Item -LiteralPath $currentFilePath).LastWriteTime_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$destStream = New-Object System.IO.BinaryWriter $currentArchiveEntry.Open()_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_while ($numberOfBytesRead = $srcStream.Read($buffer, 0, $bufferSize))_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$destStream.Write($buffer, 0, $numberOfBytesRead)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$destStream.Flush()_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$numberOfItemsArchived += 1_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$addItemtoArchiveFileMessage = ($LocalizedData.AddItemtoArchiveFile -f $currentFilePath)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_finally_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_If ($null -ne $currentFileStream)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$currentFileStream.Dispose()_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_If ($null -ne $srcStream)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$srcStream.Dispose()_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_If ($null -ne $destStream)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$destStream.Dispose()_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009_else_x000D__x000A__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_$currentArchiveEntry = $zipArchive.CreateEntry("$relativeFilePath", $compression)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_$numberOfItemsArchived += 1_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_$addItemtoArchiveFileMessage = ($LocalizedData.AddItemtoArchiveFile -f $currentFilePath)_x000D__x000A__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009_if ($null -ne $addItemtoArchiveFileMessage)_x000D__x000A__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_Write-Verbose $addItemtoArchiveFileMessage_x000D__x000A__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009_$currentEntryCount += 1_x000D__x000A__x0009__x0009__x0009__x0009__x0009_ProgressBarHelper "Compress-Archive" $progressBarStatus $previousSegmentWeight $currentSegmentWeight $sourcePaths.Count $currentEntryCount_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_finally_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_If ($null -ne $zipArchive)_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$zipArchive.Dispose()_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_If ($null -ne $archiveFileStream)_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$archiveFileStream.Dispose()_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_# Complete writing progress._x000D__x000A__x0009__x0009__x0009__x0009_Write-Progress -Activity "Compress-Archive" -Completed_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009_return $numberOfItemsArchived_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A_<############################################################################################_x000D__x000A_# ValidateArchivePathHelper: This is a helper function used to validate the archive file_x000D__x000A_# path & its file format. The only supported archive file format is .zip_x000D__x000A_############################################################################################>_x000D__x000A__x0009__x0009_function ValidateArchivePathHelper_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_param_x000D__x000A__x0009__x0009__x0009_(_x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$archiveFile_x000D__x000A__x0009__x0009__x0009_)_x000D__x000A__x000D__x000A__x0009__x0009__x0009_if ([System.IO.File]::Exists($archiveFile))_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_$extension = [system.IO.Path]::GetExtension($archiveFile)_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_# Invalid file extension is specifed for the zip file._x000D__x000A__x0009__x0009__x0009__x0009_if ($extension -ne $zipFileExtension)_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$errorMessage = ($LocalizedData.InvalidZipFileExtensionError -f $extension, $zipFileExtension)_x000D__x000A__x0009__x0009__x0009__x0009__x0009_ThrowTerminatingErrorHelper "NotSupportedArchiveFileExtension" $errorMessage ([System.Management.Automation.ErrorCategory]::InvalidArgument) $extension_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_else_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_$errorMessage = ($LocalizedData.PathNotFoundError -f $archiveFile)_x000D__x000A__x0009__x0009__x0009__x0009_ThrowTerminatingErrorHelper "PathNotFound" $errorMessage ([System.Management.Automation.ErrorCategory]::InvalidArgument) $archiveFile_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A_<############################################################################################_x000D__x000A_# ExpandArchiveHelper: This is a helper function used to expand the archive file contents_x000D__x000A_# to the specified directory._x000D__x000A_############################################################################################>_x000D__x000A__x0009__x0009_function ExpandArchiveHelper_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_param_x000D__x000A__x0009__x0009__x0009_(_x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$archiveFile,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$expandedDir,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[ref]_x000D__x000A__x0009__x0009__x0009__x0009_$expandedItems,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[boolean]_x000D__x000A__x0009__x0009__x0009__x0009_$force,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[boolean]_x000D__x000A__x0009__x0009__x0009__x0009_$isVerbose,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[boolean]_x000D__x000A__x0009__x0009__x0009__x0009_$isConfirm_x000D__x000A__x0009__x0009__x0009_)_x000D__x000A__x000D__x000A__x0009__x0009__x0009_Add-CompressionAssemblies_x000D__x000A__x000D__x000A__x0009__x0009__x0009_try_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_# The existance of archive file has already been validated by ValidateArchivePathHelper_x000D__x000A__x0009__x0009__x0009__x0009_# before calling this helper function._x000D__x000A__x0009__x0009__x0009__x0009_$archiveFileStreamArgs = @($archiveFile, [System.IO.FileMode]::Open, [System.IO.FileAccess]::Read)_x000D__x000A__x0009__x0009__x0009__x0009_$archiveFileStream = New-Object -TypeName System.IO.FileStream -ArgumentList $archiveFileStreamArgs_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_$zipArchiveArgs = @($archiveFileStream, [System.IO.Compression.ZipArchiveMode]::Read, $false)_x000D__x000A__x0009__x0009__x0009__x0009_$zipArchive = New-Object -TypeName System.IO.Compression.ZipArchive -ArgumentList $zipArchiveArgs_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_if ($zipArchive.Entries.Count -eq 0)_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$archiveFileIsEmpty = ($LocalizedData.ArchiveFileIsEmpty -f $archiveFile)_x000D__x000A__x0009__x0009__x0009__x0009__x0009_Write-Verbose $archiveFileIsEmpty_x000D__x000A__x0009__x0009__x0009__x0009__x0009_return_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_$currentEntryCount = 0_x000D__x000A__x0009__x0009__x0009__x0009_$progressBarStatus = ($LocalizedData.ExpandProgressBarText -f $archiveFile)_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_# The archive entries can either be empty directories or files._x000D__x000A__x0009__x0009__x0009__x0009_foreach ($currentArchiveEntry in $zipArchive.Entries)_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$currentArchiveEntryPath = Join-Path -Path $expandedDir -ChildPath $currentArchiveEntry.FullName_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$extension = [system.IO.Path]::GetExtension($currentArchiveEntryPath)_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009_# The current archive entry is an empty directory_x000D__x000A__x0009__x0009__x0009__x0009__x0009_# The FullName of the Archive Entry representing a directory would end with a trailing '\'._x000D__x000A__x0009__x0009__x0009__x0009__x0009_if ($extension -eq [string]::Empty -and_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_$currentArchiveEntryPath.EndsWith("\", [StringComparison]::OrdinalIgnoreCase))_x000D__x000A__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_$pathExists = Test-Path -LiteralPath $currentArchiveEntryPath_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_# The current archive entry expects an empty directory._x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_# Check if the existing directory is empty. If its not empty_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_# then it means that user has added this directory by other means._x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_if ($pathExists -eq $false)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_New-Item $currentArchiveEntryPath -ItemType Directory -Confirm:$isConfirm | Out-Null_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_if (Test-Path -LiteralPath $currentArchiveEntryPath -PathType Container)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$addEmptyDirectorytoExpandedPathMessage = ($LocalizedData.AddItemtoArchiveFile -f $currentArchiveEntryPath)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_Write-Verbose $addEmptyDirectorytoExpandedPathMessage_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$expandedItems.Value += $currentArchiveEntryPath_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009_else_x000D__x000A__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_try_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$currentArchiveEntryFileInfo = New-Object -TypeName System.IO.FileInfo -ArgumentList $currentArchiveEntryPath_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$parentDirExists = Test-Path -LiteralPath $currentArchiveEntryFileInfo.DirectoryName -PathType Container_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# If the Parent directory of the current entry in the archive file does not exist, then create it._x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_if ($parentDirExists -eq $false)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_New-Item $currentArchiveEntryFileInfo.DirectoryName -ItemType Directory -Confirm:$isConfirm | Out-Null_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_if (!(Test-Path -LiteralPath $currentArchiveEntryFileInfo.DirectoryName -PathType Container))_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# The directory referred by $currentArchiveEntryFileInfo.DirectoryName was not successfully created._x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# This could be because the user has specified -Confirm paramter when Expand-Archive was invoked_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# and authorization was not provided when confirmation was prompted. In such a scenario,_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# we skip the current file in the archive and continue with the remaining archive file contents._x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_Continue_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$expandedItems.Value += $currentArchiveEntryFileInfo.DirectoryName_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$hasNonTerminatingError = $false_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# Check if the file in to which the current archive entry contents_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# would be expanded already exists._x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_if ($currentArchiveEntryFileInfo.Exists)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_if ($force)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_Remove-Item -LiteralPath $currentArchiveEntryFileInfo.FullName -Force -ErrorVariable ev -Verbose:$isVerbose -Confirm:$isConfirm_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_if ($ev -ne $null)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$hasNonTerminatingError = $true_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_if (Test-Path -LiteralPath $currentArchiveEntryFileInfo.FullName -PathType Leaf)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# The file referred by $currentArchiveEntryFileInfo.FullName was not successfully removed._x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# This could be because the user has specified -Confirm paramter when Expand-Archive was invoked_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# and authorization was not provided when confirmation was prompted. In such a scenario,_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# we skip the current file in the archive and continue with the remaining archive file contents._x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_Continue_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_else_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# Write non-terminating error to the pipeline._x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$errorMessage = ($LocalizedData.FileExistsError -f $currentArchiveEntryFileInfo.FullName, $archiveFile, $currentArchiveEntryFileInfo.FullName, $currentArchiveEntryFileInfo.FullName)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$errorRecord = CreateErrorRecordHelper "ExpandArchiveFileExists" $errorMessage ([System.Management.Automation.ErrorCategory]::InvalidOperation) $null $currentArchiveEntryFileInfo.FullName_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_Write-Error -ErrorRecord $errorRecord_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$hasNonTerminatingError = $true_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_if (!$hasNonTerminatingError)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_[System.IO.Compression.ZipFileExtensions]::ExtractToFile($currentArchiveEntry, $currentArchiveEntryPath, $false)_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# Add the expanded file path to the $expandedItems array,_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# to keep track of all the expanded files created while expanding the archive file._x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# If user enters CTRL + C then at that point of time, all these expanded files_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_# would be deleted as part of the clean up process._x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$expandedItems.Value += $currentArchiveEntryPath_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$addFiletoExpandedPathMessage = ($LocalizedData.CreateFileAtExpandedPath -f $currentArchiveEntryPath)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_Write-Verbose $addFiletoExpandedPathMessage_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_finally_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_If ($null -ne $destStream)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$destStream.Dispose()_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_If ($null -ne $srcStream)_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009__x0009_$srcStream.Dispose()_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009_$currentEntryCount += 1_x000D__x000A__x0009__x0009__x0009__x0009__x0009_# $currentSegmentWeight is Set to 100 giving equal weightage to each file that is getting expanded._x000D__x000A__x0009__x0009__x0009__x0009__x0009_# $previousSegmentWeight is set to 0 as there are no prior segments._x000D__x000A__x0009__x0009__x0009__x0009__x0009_$previousSegmentWeight = 0_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$currentSegmentWeight = 100_x000D__x000A__x0009__x0009__x0009__x0009__x0009_ProgressBarHelper "Expand-Archive" $progressBarStatus $previousSegmentWeight $currentSegmentWeight $zipArchive.Entries.Count $currentEntryCount_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_finally_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_If ($null -ne $zipArchive)_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$zipArchive.Dispose()_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_If ($null -ne $archiveFileStream)_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$archiveFileStream.Dispose()_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_# Complete writing progress._x000D__x000A__x0009__x0009__x0009__x0009_Write-Progress -Activity "Expand-Archive" -Completed_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A_<############################################################################################_x000D__x000A_# ProgressBarHelper: This is a helper function used to display progress message._x000D__x000A_# This function is used by both Compress-Archive & Expand-Archive to display archive file_x000D__x000A_# creation/expansion progress._x000D__x000A_############################################################################################>_x000D__x000A__x0009__x0009_function ProgressBarHelper_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_param_x000D__x000A__x0009__x0009__x0009_(_x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$cmdletName,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$status,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[double]_x000D__x000A__x0009__x0009__x0009__x0009_$previousSegmentWeight,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[double]_x000D__x000A__x0009__x0009__x0009__x0009_$currentSegmentWeight,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[int]_x000D__x000A__x0009__x0009__x0009__x0009_$totalNumberofEntries,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[int]_x000D__x000A__x0009__x0009__x0009__x0009_$currentEntryCount_x000D__x000A__x0009__x0009__x0009_)_x000D__x000A__x000D__x000A__x0009__x0009__x0009_if ($currentEntryCount -gt 0 -and_x000D__x000A__x0009__x0009__x0009__x0009_$totalNumberofEntries -gt 0 -and_x000D__x000A__x0009__x0009__x0009__x0009_$previousSegmentWeight -ge 0 -and_x000D__x000A__x0009__x0009__x0009__x0009_$currentSegmentWeight -gt 0)_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_$entryDefaultWeight = $currentSegmentWeight/[double]$totalNumberofEntries_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_$percentComplete = $previousSegmentWeight + ($entryDefaultWeight * $currentEntryCount)_x000D__x000A__x0009__x0009__x0009__x0009_Write-Progress -Activity $cmdletName -Status $status -PercentComplete $percentComplete_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A_<############################################################################################_x000D__x000A_# CSVHelper: This is a helper function used to append comma after each path specifid by_x000D__x000A_# the SourcePath array. This helper function is used to display all the user supplied paths_x000D__x000A_# in the WhatIf message._x000D__x000A_############################################################################################>_x000D__x000A__x0009__x0009_function CSVHelper_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_param_x000D__x000A__x0009__x0009__x0009_(_x000D__x000A__x0009__x0009__x0009__x0009_[string[]]_x000D__x000A__x0009__x0009__x0009__x0009_$sourcePath_x000D__x000A__x0009__x0009__x0009_)_x000D__x000A__x000D__x000A__x0009__x0009__x0009_# SourcePath has already been validated by the calling funcation._x000D__x000A__x0009__x0009__x0009_if ($sourcePath.Count -gt 1)_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_$sourcePathInCsvFormat = "`n"_x000D__x000A__x0009__x0009__x0009__x0009_for ($currentIndex = 0; $currentIndex -lt $sourcePath.Count; $currentIndex++)_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_if ($currentIndex -eq $sourcePath.Count - 1)_x000D__x000A__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_$sourcePathInCsvFormat += $sourcePath[$currentIndex]_x000D__x000A__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009__x0009_else_x000D__x000A__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_$sourcePathInCsvFormat += $sourcePath[$currentIndex] + "`n"_x000D__x000A__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_else_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_$sourcePathInCsvFormat = $sourcePath_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009_return $sourcePathInCsvFormat_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A_<############################################################################################_x000D__x000A_# ThrowTerminatingErrorHelper: This is a helper function used to throw terminating error._x000D__x000A_############################################################################################>_x000D__x000A__x0009__x0009_function ThrowTerminatingErrorHelper_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_param_x000D__x000A__x0009__x0009__x0009_(_x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$errorId,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$errorMessage,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[System.Management.Automation.ErrorCategory]_x000D__x000A__x0009__x0009__x0009__x0009_$errorCategory,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[object]_x000D__x000A__x0009__x0009__x0009__x0009_$targetObject,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[Exception]_x000D__x000A__x0009__x0009__x0009__x0009_$innerException_x000D__x000A__x0009__x0009__x0009_)_x000D__x000A__x000D__x000A__x0009__x0009__x0009_if ($innerException -eq $null)_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_$exception = New-object System.IO.IOException $errorMessage_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_else_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_$exception = New-Object System.IO.IOException $errorMessage, $innerException_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009_$exception = New-Object System.IO.IOException $errorMessage_x000D__x000A__x0009__x0009__x0009_$errorRecord = New-Object System.Management.Automation.ErrorRecord $exception, $errorId, $errorCategory, $targetObject_x000D__x000A__x0009__x0009__x0009_$PSCmdlet.ThrowTerminatingError($errorRecord)_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A_<############################################################################################_x000D__x000A_# CreateErrorRecordHelper: This is a helper function used to create an ErrorRecord_x000D__x000A_############################################################################################>_x000D__x000A__x0009__x0009_function CreateErrorRecordHelper_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_param_x000D__x000A__x0009__x0009__x0009_(_x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$errorId,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[string]_x000D__x000A__x0009__x0009__x0009__x0009_$errorMessage,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[System.Management.Automation.ErrorCategory]_x000D__x000A__x0009__x0009__x0009__x0009_$errorCategory,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[Exception]_x000D__x000A__x0009__x0009__x0009__x0009_$exception,_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_[object]_x000D__x000A__x0009__x0009__x0009__x0009_$targetObject_x000D__x000A__x0009__x0009__x0009_)_x000D__x000A__x000D__x000A__x0009__x0009__x0009_if ($null -eq $exception)_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_$exception = New-Object System.IO.IOException $errorMessage_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009_$errorRecord = New-Object System.Management.Automation.ErrorRecord $exception, $errorId, $errorCategory, $targetObject_x000D__x000A__x0009__x0009__x0009_return $errorRecord_x000D__x000A__x0009__x0009_}_x000D__x000A__x0009__x0009_#endregion Utility Functions_x000D__x000A__x000D__x000A__x0009__x0009_$isVerbose = $psboundparameters.ContainsKey("Verbose")_x000D__x000A__x0009__x0009_$isConfirm = $psboundparameters.ContainsKey("Confirm")_x000D__x000A__x000D__x000A__x0009__x0009_$isDestinationPathProvided = $true_x000D__x000A__x0009__x0009_if ($DestinationPath -eq [string]::Empty)_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_$resolvedDestinationPath = $pwd_x000D__x000A__x0009__x0009__x0009_$isDestinationPathProvided = $false_x000D__x000A__x0009__x0009_}_x000D__x000A__x0009__x0009_else_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_$destinationPathExists = Test-Path -Path $DestinationPath -PathType Container_x000D__x000A__x0009__x0009__x0009_if ($destinationPathExists)_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_$resolvedDestinationPath = GetResolvedPathHelper $DestinationPath $false $PSCmdlet_x000D__x000A__x0009__x0009__x0009__x0009_if ($resolvedDestinationPath.Count -gt 1)_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$errorMessage = ($LocalizedData.InvalidExpandedDirPathError -f $DestinationPath)_x000D__x000A__x0009__x0009__x0009__x0009__x0009_ThrowTerminatingErrorHelper "InvalidDestinationPath" $errorMessage ([System.Management.Automation.ErrorCategory]::InvalidArgument) $DestinationPath_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_# At this point we are sure that the provided path resolves to a valid single path._x000D__x000A__x0009__x0009__x0009__x0009_# Calling Resolve-Path again to get the underlying provider name._x000D__x000A__x0009__x0009__x0009__x0009_$suppliedDestinationPath = Resolve-Path -Path $DestinationPath_x000D__x000A__x0009__x0009__x0009__x0009_if ($suppliedDestinationPath.Provider.Name -ne "FileSystem")_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$errorMessage = ($LocalizedData.ExpandArchiveInValidDestinationPath -f $DestinationPath)_x000D__x000A__x0009__x0009__x0009__x0009__x0009_ThrowTerminatingErrorHelper "InvalidDirectoryPath" $errorMessage ([System.Management.Automation.ErrorCategory]::InvalidArgument) $DestinationPath_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_else_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_$createdItem = New-Item -Path $DestinationPath -ItemType Directory -Confirm:$isConfirm -Verbose:$isVerbose -ErrorAction Stop_x000D__x000A__x0009__x0009__x0009__x0009_if ($createdItem -ne $null -and $createdItem.PSProvider.Name -ne "FileSystem")_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_Remove-Item "$DestinationPath" -Force -Recurse -ErrorAction SilentlyContinue_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$errorMessage = ($LocalizedData.ExpandArchiveInValidDestinationPath -f $DestinationPath)_x000D__x000A__x0009__x0009__x0009__x0009__x0009_ThrowTerminatingErrorHelper "InvalidDirectoryPath" $errorMessage ([System.Management.Automation.ErrorCategory]::InvalidArgument) $DestinationPath_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_$resolvedDestinationPath = GetResolvedPathHelper $DestinationPath $true $PSCmdlet_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009_$isWhatIf = $psboundparameters.ContainsKey("WhatIf")_x000D__x000A__x0009__x0009_if (!$isWhatIf)_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_$preparingToExpandVerboseMessage = ($LocalizedData.PreparingToExpandVerboseMessage)_x000D__x000A__x0009__x0009__x0009_Write-Verbose $preparingToExpandVerboseMessage_x000D__x000A__x000D__x000A__x0009__x0009__x0009_$progressBarStatus = ($LocalizedData.ExpandProgressBarText -f $DestinationPath)_x000D__x000A__x0009__x0009__x0009_ProgressBarHelper "Expand-Archive" $progressBarStatus 0 100 100 1_x000D__x000A__x0009__x0009_}_x000D__x000A__x0009_}_x000D__x000A__x0009_PROCESS_x000D__x000A__x0009_{_x000D__x000A__x0009__x0009_switch ($PsCmdlet.ParameterSetName)_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_"Path"_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_$resolvedSourcePaths = GetResolvedPathHelper $Path $false $PSCmdlet_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_if ($resolvedSourcePaths.Count -gt 1)_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$errorMessage = ($LocalizedData.InvalidArchiveFilePathError -f $Path, $PsCmdlet.ParameterSetName, $PsCmdlet.ParameterSetName)_x000D__x000A__x0009__x0009__x0009__x0009__x0009_ThrowTerminatingErrorHelper "InvalidArchiveFilePath" $errorMessage ([System.Management.Automation.ErrorCategory]::InvalidArgument) $Path_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_"LiteralPath"_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_$resolvedSourcePaths = GetResolvedPathHelper $LiteralPath $true $PSCmdlet_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_if ($resolvedSourcePaths.Count -gt 1)_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$errorMessage = ($LocalizedData.InvalidArchiveFilePathError -f $LiteralPath, $PsCmdlet.ParameterSetName, $PsCmdlet.ParameterSetName)_x000D__x000A__x0009__x0009__x0009__x0009__x0009_ThrowTerminatingErrorHelper "InvalidArchiveFilePath" $errorMessage ([System.Management.Automation.ErrorCategory]::InvalidArgument) $LiteralPath_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009_ValidateArchivePathHelper $resolvedSourcePaths_x000D__x000A__x000D__x000A__x0009__x0009_if ($pscmdlet.ShouldProcess($resolvedSourcePaths))_x000D__x000A__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009_$expandedItems = @()_x000D__x000A__x000D__x000A__x0009__x0009__x0009_try_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_# StopProcessing is not avaliable in Script cmdlets. However the pipleline execution_x000D__x000A__x0009__x0009__x0009__x0009_# is terminated when ever 'CTRL + C' is entered by user to terminate the cmdlet execution._x000D__x000A__x0009__x0009__x0009__x0009_# The finally block is executed whenever pipleline is terminated._x000D__x000A__x0009__x0009__x0009__x0009_# $isArchiveFileProcessingComplete variable is used to track if 'CTRL + C' is entered by the_x000D__x000A__x0009__x0009__x0009__x0009_# user._x000D__x000A__x0009__x0009__x0009__x0009_$isArchiveFileProcessingComplete = $false_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_# The User has not provided a destination path, hence we use '$pwd\ArchiveFileName' as the directory where the_x000D__x000A__x0009__x0009__x0009__x0009_# archive file contents would be expanded. If the path '$pwd\ArchiveFileName' already exists then we use the_x000D__x000A__x0009__x0009__x0009__x0009_# Windows default mechanism of appending a counter value at the end of the directory name where the contents_x000D__x000A__x0009__x0009__x0009__x0009_# would be expanded._x000D__x000A__x0009__x0009__x0009__x0009_if (!$isDestinationPathProvided)_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$archiveFile = New-Object System.IO.FileInfo $resolvedSourcePaths_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$resolvedDestinationPath = Join-Path -Path $resolvedDestinationPath -ChildPath $archiveFile.BaseName_x000D__x000A__x0009__x0009__x0009__x0009__x0009_$destinationPathExists = Test-Path -LiteralPath $resolvedDestinationPath -PathType Container_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009__x0009_if (!$destinationPathExists)_x000D__x000A__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_New-Item -Path $resolvedDestinationPath -ItemType Directory -Confirm:$isConfirm -Verbose:$isVerbose -ErrorAction Stop | Out-Null_x000D__x000A__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_ExpandArchiveHelper $resolvedSourcePaths $resolvedDestinationPath ([ref]$expandedItems) $Force $isVerbose $isConfirm_x000D__x000A__x000D__x000A__x0009__x0009__x0009__x0009_$isArchiveFileProcessingComplete = $true_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_finally_x000D__x000A__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009_# The $isArchiveFileProcessingComplete would be set to $false if user has typed 'CTRL + C' to_x000D__x000A__x0009__x0009__x0009__x0009_# terminate the cmdlet execution or if an unhandled exception is thrown._x000D__x000A__x0009__x0009__x0009__x0009_if ($isArchiveFileProcessingComplete -eq $false)_x000D__x000A__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009_if ($expandedItems.Count -gt 0)_x000D__x000A__x0009__x0009__x0009__x0009__x0009_{_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_# delete the expanded file/directory as the archive_x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_# file was not completly expanded._x000D__x000A__x0009__x0009__x0009__x0009__x0009__x0009_$expandedItems | ForEach-Object { Remove-Item $_ -Force -Recurse }_x000D__x000A__x0009__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009__x0009_}_x000D__x000A__x0009__x0009_}_x000D__x000A__x0009_}_x000D__x000A_}_x000D__x000A__x000D__x000A_function Write-LocalMessage_x000D__x000A_{_x000D__x000A_ [CmdletBinding()]_x000D__x000A_ Param (_x000D__x000A_ [string]$Message_x000D__x000A_ )_x000D__x000A__x000D__x000A_ if (Test-Path function:Write-PSFMessage) { Write-PSFMessage -Level Important -Message $Message }_x000D__x000A_ else { Write-Host $Message }_x000D__x000A_}_x000D__x000A_#endregion Utility Functions_x000D__x000A__x000D__x000A_try_x000D__x000A_{_x000D__x000A__x0009_[System.Net.ServicePointManager]::SecurityProtocol = "Tls12"_x000D__x000A__x000D__x000A__x0009_Write-LocalMessage -Message "Downloading repository from '$($BaseUrl)/archive/$($Branch).zip'"_x000D__x000A__x0009_Invoke-WebRequest -Uri "$($BaseUrl)/archive/$($Branch).zip" -UseBasicParsing -OutFile "$($env:TEMP)\$($ModuleName).zip" -ErrorAction Stop_x000D__x000A__x0009__x000D__x000A__x0009_Write-LocalMessage -Message "Creating temporary project folder: '$($env:TEMP)\$($ModuleName)'"_x000D__x000A__x0009_$null = New-Item -Path $env:TEMP -Name $ModuleName -ItemType Directory -Force -ErrorAction Stop_x000D__x000A__x0009__x000D__x000A__x0009_Write-LocalMessage -Message "Extracting archive to '$($env:TEMP)\$($ModuleName)'"_x000D__x000A__x0009_Expand-Archive -Path "$($env:TEMP)\$($ModuleName).zip" -DestinationPath "$($env:TEMP)\$($ModuleName)" -ErrorAction Stop_x000D__x000A__x0009__x000D__x000A__x0009_$basePath = Get-ChildItem "$($env:TEMP)\$($ModuleName)\*" | Select-Object -First 1_x000D__x000A__x0009_if ($SubFolder) { $basePath = "$($basePath)\$($SubFolder)" }_x000D__x000A__x0009__x000D__x000A__x0009_# Only needed for PS v5+ but doesn't hurt anyway_x000D__x000A__x0009_$manifest = "$($basePath)\$($ModuleName).psd1"_x000D__x000A__x0009_$manifestData = Invoke-Expression ([System.IO.File]::ReadAllText($manifest))_x000D__x000A__x0009_$moduleVersion = $manifestData.ModuleVersion_x000D__x000A__x0009_Write-LocalMessage -Message "Download concluded: $($ModuleName) | Branch $($Branch) | Version $($moduleVersion)"_x000D__x000A__x0009__x000D__x000A__x0009_# Determine output path_x000D__x000A__x0009_$path = "$($env:ProgramFiles)\WindowsPowerShell\Modules\$($ModuleName)"_x000D__x000A__x0009_if ($doUserMode) { $path = "$(Split-Path $profile.CurrentUserAllHosts)\Modules\$($ModuleName)" }_x000D__x000A__x0009_if ($PSVersionTable.PSVersion.Major -ge 5) { $path += "\$moduleVersion" }_x000D__x000A__x0009__x000D__x000A__x0009_if ((Test-Path $path) -and (-not $Force))_x000D__x000A__x0009_{_x000D__x000A__x0009__x0009_Write-LocalMessage -Message "Module already installed, interrupting installation"_x000D__x000A__x0009__x0009_return_x000D__x000A__x0009_}_x000D__x000A__x0009__x000D__x000A__x0009_Write-LocalMessage -Message "Creating folder: $($path)"_x000D__x000A__x0009_$null = New-Item -Path $path -ItemType Directory -Force -ErrorAction Stop_x000D__x000A__x0009__x000D__x000A__x0009_Write-LocalMessage -Message "Copying files to $($path)"_x000D__x000A__x0009_foreach ($file in (Get-ChildItem -Path $basePath))_x000D__x000A__x0009_{_x000D__x000A__x0009__x0009_Move-Item -Path $file.FullName -Destination $path -ErrorAction Stop_x000D__x000A__x0009_}_x000D__x000A__x0009__x000D__x000A__x0009_Write-LocalMessage -Message "Cleaning up temporary files"_x000D__x000A__x0009_Remove-Item -Path "$($env:TEMP)\$($ModuleName)" -Force -Recurse_x000D__x000A__x0009_Remove-Item -Path "$($env:TEMP)\$($ModuleName).zip" -Force_x000D__x000A__x0009__x000D__x000A__x0009_Write-LocalMessage -Message "Installation of the module $($ModuleName), Branch $($Branch), Version $($moduleVersion) completed successfully!"_x000D__x000A_}_x000D__x000A_catch_x000D__x000A_{_x000D__x000A__x0009_Write-LocalMessage -Message "Installation of the module $($ModuleName) failed!"_x000D__x000A__x0009__x000D__x000A__x0009_Write-LocalMessage -Message "Cleaning up temporary files"_x000D__x000A__x0009_Remove-Item -Path "$($env:TEMP)\$($ModuleName)" -Force -Recurse_x000D__x000A__x0009_Remove-Item -Path "$($env:TEMP)\$($ModuleName).zip" -Force_x000D__x000A__x0009__x000D__x000A__x0009_throw_x000D__x000A_}</S> <B N="PlainText">true</B> <Obj N="ContentParameterFlat" RefId="38"> <TNRef RefId="2" /> <LST> <S>name</S> </LST> </Obj> <Obj N="ContentParameterScript" RefId="39"> <TNRef RefId="2" /> <LST /> </Obj> <S N="Name">install.ps1</S> <S N="RelativePath">install.ps1</S> <S N="Identifier">þ</S> <Obj N="FileSystemParameterFlat" RefId="40"> <TNRef RefId="2" /> <LST /> </Obj> <Obj N="FileSystemParameterScript" RefId="41"> <TNRef RefId="2" /> <LST /> </Obj> </Props> <MS> <BA N="SerializationData">AAEAAAD/////AQAAAAAAAAAMAgAAAEpQU01vZHVsZURldmVsb3BtZW50LCBWZXJzaW9uPTIuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbAUBAAAALVBTTW9kdWxlRGV2ZWxvcG1lbnQuVGVtcGxhdGUuVGVtcGxhdGVJdGVtRmlsZQkAAAAFVmFsdWUJUGxhaW5UZXh0FENvbnRlbnRQYXJhbWV0ZXJGbGF0FkNvbnRlbnRQYXJhbWV0ZXJTY3JpcHQETmFtZQxSZWxhdGl2ZVBhdGgKSWRlbnRpZmllchdGaWxlU3lzdGVtUGFyYW1ldGVyRmxhdBlGaWxlU3lzdGVtUGFyYW1ldGVyU2NyaXB0AQADAwEBAQMDAX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UClcJCgkTW9kdWxlTmFtZSkuemlwIiAtRm9yY2UNCgkNCgl0aHJvdw0KfQEJBAAAAAkFAAAABgYAAAALaW5zdGFsbC5wczEGBwAAAAtpbnN0YWxsLnBzMQYIAAAAAsO+CQkAAAAJCgAAAAQEAAAAf1N5c3RlbS5Db2xsZWN0aW9ucy5HZW5lcmljLkxpc3RgMVtbU3lzdGVtLlN0cmluZywgbXNjb3JsaWIsIFZlcnNpb249NC4wLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1iNzdhNWM1NjE5MzRlMDg5XV0DAAAABl9pdGVtcwVfc2l6ZQhfdmVyc2lvbgYAAAgICQsAAAABAAAAAQAAAAEFAAAABAAAAAkMAAAAAAAAAAAAAAABCQAAAAQAAAAJDAAAAAAAAAAAAAAAAQoAAAAEAAAACQwAAAAAAAAAAAAAABELAAAABAAAAAYNAAAABG5hbWUNAxEMAAAAAAAAAAs=</BA> </MS> </Obj> <Obj RefId="42"> <TNRef RefId="7" /> <ToString>PSModuleDevelopment.Template.TemplateItemFile</ToString> <Props> <S N="Value">MIT License_x000D__x000A__x000D__x000A_Copyright (c) þ!year!þ þauthorþ_x000D__x000A__x000D__x000A_Permission is hereby granted, free of charge, to any person obtaining a copy_x000D__x000A_of this software and associated documentation files (the "Software"), to deal_x000D__x000A_in the Software without restriction, including without limitation the rights_x000D__x000A_to use, copy, modify, merge, publish, distribute, sublicense, and/or sell_x000D__x000A_copies of the Software, and to permit persons to whom the Software is_x000D__x000A_furnished to do so, subject to the following conditions:_x000D__x000A__x000D__x000A_The above copyright notice and this permission notice shall be included in all_x000D__x000A_copies or substantial portions of the Software._x000D__x000A__x000D__x000A_THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR_x000D__x000A_IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,_x000D__x000A_FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE_x000D__x000A_AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER_x000D__x000A_LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,_x000D__x000A_OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE_x000D__x000A_SOFTWARE.</S> <B N="PlainText">true</B> <Obj N="ContentParameterFlat" RefId="43"> <TNRef RefId="2" /> <LST> <S>author</S> </LST> </Obj> <Obj N="ContentParameterScript" RefId="44"> <TNRef RefId="2" /> <LST> <S>year</S> </LST> </Obj> <S N="Name">LICENSE</S> <S N="RelativePath">LICENSE</S> <S N="Identifier">þ</S> <Obj N="FileSystemParameterFlat" RefId="45"> <TNRef RefId="2" /> <LST /> </Obj> <Obj N="FileSystemParameterScript" RefId="46"> <TNRef RefId="2" /> <LST /> </Obj> </Props> <MS> <BA N="SerializationData">AAEAAAD/////AQAAAAAAAAAMAgAAAEpQU01vZHVsZURldmVsb3BtZW50LCBWZXJzaW9uPTIuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbAUBAAAALVBTTW9kdWxlRGV2ZWxvcG1lbnQuVGVtcGxhdGUuVGVtcGxhdGVJdGVtRmlsZQkAAAAFVmFsdWUJUGxhaW5UZXh0FENvbnRlbnRQYXJhbWV0ZXJGbGF0FkNvbnRlbnRQYXJhbWV0ZXJTY3JpcHQETmFtZQxSZWxhdGl2ZVBhdGgKSWRlbnRpZmllchdGaWxlU3lzdGVtUGFyYW1ldGVyRmxhdBlGaWxlU3lzdGVtUGFyYW1ldGVyU2NyaXB0AQADAwEBAQMDAX9TeXN0ZW0uQ29sbGVjdGlvbnMuR2VuZXJpYy5MaXN0YDFbW1N5c3RlbS5TdHJpbmcsIG1zY29ybGliLCBWZXJzaW9uPTQuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS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GxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tTeXN0ZW0uU3RyaW5nLCBtc2NvcmxpYiwgVmVyc2lvbj00LjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODldXQMAAAAGX2l0ZW1zBV9zaXplCF92ZXJzaW9uBgAACAgJCwAAAAEAAAABAAAAAQUAAAAEAAAACQwAAAABAAAAAQAAAAEJAAAABAAAAAkNAAAAAAAAAAAAAAABCgAAAAQAAAAJDQAAAAAAAAAAAAAAEQsAAAAEAAAABg4AAAAGYXV0aG9yDQMRDAAAAAQAAAAGDwAAAAR5ZWFyDQMRDQAAAAAAAAAL</BA> </MS> </Obj> <Obj RefId="47"> <TNRef RefId="7" /> <ToString>PSModuleDevelopment.Template.TemplateItemFile</ToString> <Props> <S N="Value"># Description_x000D__x000A__x000D__x000A_Insert a useful description for the þnameþ project here._x000D__x000A__x000D__x000A_Remember, it's the first thing a visitor will see._x000D__x000A__x000D__x000A_# Project Setup Instructions_x000D__x000A_## Working with the layout_x000D__x000A__x000D__x000A_ - Don't touch the psm1 file_x000D__x000A_ - Place functions you export in `functions/` (can have subfolders)_x000D__x000A_ - Place private/internal functions invisible to the user in `internal/functions` (can have subfolders)_x000D__x000A_ - Don't add code directly to the `postimport.ps1` or `preimport.ps1`._x000D__x000A_ Those files are designed to import other files only._x000D__x000A_ - When adding files you load during `preimport.ps1`, be sure to add corresponding entries to `filesBefore.txt`._x000D__x000A_ The text files are used as reference when compiling the module during the build script._x000D__x000A_ - When adding files you load during `postimport.ps1`, be sure to add corresponding entries to `filesAfter.txt`._x000D__x000A_ The text files are used as reference when compiling the module during the build script._x000D__x000A__x000D__x000A_## Setting up CI/CD_x000D__x000A__x000D__x000A_> To create a PR validation pipeline, set up tasks like this:_x000D__x000A__x000D__x000A_ - Install Prerequisites (PowerShell Task; VSTS-Prerequisites.ps1)_x000D__x000A_ - Validate (PowerShell Task; VSTS-Validate.ps1)_x000D__x000A_ - Publish Test Results (Publish Test Results; NUnit format; Run no matter what)_x000D__x000A__x000D__x000A_> To create a build/publish pipeline, set up tasks like this:_x000D__x000A__x000D__x000A_ - Install Prerequisites (PowerShell Task; VSTS-Prerequisites.ps1)_x000D__x000A_ - Validate (PowerShell Task; VSTS-Validate.ps1)_x000D__x000A_ - Build (PowerShell Task; VSTS-Build.ps1)_x000D__x000A_ - Publish Test Results (Publish Test Results; NUnit format; Run no matter what)</S> <B N="PlainText">true</B> <Obj N="ContentParameterFlat" RefId="48"> <TNRef RefId="2" /> <LST> <S>name</S> </LST> </Obj> <Obj N="ContentParameterScript" RefId="49"> <TNRef RefId="2" /> <LST /> </Obj> <S N="Name">README.md</S> <S N="RelativePath">README.md</S> <S N="Identifier">þ</S> <Obj N="FileSystemParameterFlat" RefId="50"> <TNRef RefId="2" /> <LST /> </Obj> <Obj N="FileSystemParameterScript" RefId="51"> <TNRef RefId="2" /> <LST /> </Obj> </Props> <MS> <BA N="SerializationData">AAEAAAD/////AQAAAAAAAAAMAgAAAEpQU01vZHVsZURldmVsb3BtZW50LCBWZXJzaW9uPTIuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbAUBAAAALVBTTW9kdWxlRGV2ZWxvcG1lbnQuVGVtcGxhdGUuVGVtcGxhdGVJdGVtRmlsZQkAAAAFVmFsdWUJUGxhaW5UZXh0FENvbnRlbnRQYXJhbWV0ZXJGbGF0FkNvbnRlbnRQYXJhbWV0ZXJTY3JpcHQETmFtZQxSZWxhdGl2ZVBhdGgKSWRlbnRpZmllchdGaWxlU3lzdGVtUGFyYW1ldGVyRmxhdBlGaWxlU3lzdGVtUGFyYW1ldGVyU2NyaXB0AQADAwEBAQMDAX9TeXN0ZW0uQ29sbGVjdGlvbnMuR2VuZXJpYy5MaXN0YDFbW1N5c3RlbS5TdHJpbmcsIG1zY29ybGliLCBWZXJzaW9uPTQuMC4wLjAsIEN1bHR1cmU9bmV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yYW1ldGVyTmFtZSA6IGluICRjb21tYW5kTmFtZSIgew0KICAgICAgICAgICAgICAgICAgICAgICAgJHBhcmFtZXRlckhlbHAuRGVzY3JpcHRpb24uVGV4dCB8IFNob3VsZCAtTm90IC1CZU51bGxPckVtcHR5DQogICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAgICAgJHRlc3RwYXJhbXNlcnJvcnMgKz0gMQ0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICANCiAgICAgICAgICAgICAgICAkdGVzdHBhcmFtc2FsbCArPSAxDQogICAgICAgICAgICAgICAgJGNvZGVNYW5kYXRvcnkgPSAkcGFyYW1ldGVyLklzTWFuZGF0b3J5LnRvU3RyaW5nKCkNCiAgICAgICAgICAgICAgICBpZiAoJHBhcmFtZXRlckhlbHAuUmVxdWlyZWQgLW5lICRjb2RlTWFuZGF0b3J5KSB7DQogICAgICAgICAgICAgICAgICAgICMgUmVxdWlyZWQgdmFsdWUgaW4gSGVscCBzaG91bGQgbWF0Y2ggSXNNYW5kYXRvcnkgcHJvcGVydHkgb2YgcGFyYW1ldGVyDQogICAgICAgICAgICAgICAgICAgIEl0ICJoZWxwIGZvciAkcGFyYW1ldGVyTmFtZSBwYXJhbWV0ZXIgaW4gJGNvbW1hbmROYW1lIGhhcyBjb3JyZWN0IE1hbmRhdG9yeSB2YWx1ZSIgew0KICAgICAgICAgICAgICAgICAgICAgICAgJHBhcmFtZXRlckhlbHAuUmVxdWlyZWQgfCBTaG91bGQgLUJlICRjb2RlTWFuZGF0b3J5DQogICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAgICAgJHRlc3RwYXJhbXNlcnJvcnMgKz0gMQ0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICANCiAgICAgICAgICAgICAgICBpZiAoJEhlbHBUZXN0U2tpcFBhcmFtZXRlclR5cGVbJGNvbW1hbmROYW1lXSAtY29udGFpbnMgJHBhcmFtZXRlck5hbWUpIHsgY29udGludWUgfQ0KICAgICAgICAgICAgICAgIA0KICAgICAgICAgICAgICAgICRjb2RlVHlwZSA9ICRwYXJhbWV0ZXIuUGFyYW1ldGVyVHlwZS5OYW1lDQogICAgICAgICAgICAgICAgDQogICAgICAgICAgICAgICAgJHRlc3RwYXJhbXNhbGwgKz0gMQ0KICAgICAgICAgICAgICAgIGlmICgkcGFyYW1ldGVyLlBhcmFtZXRlclR5cGUuSXNFbnVtKSB7DQogICAgICAgICAgICAgICAgICAgICMgRW51bWVyYXRpb25zIG9mdGVuIGhhdmUgaXNzdWVzIHdpdGggdGhlIHR5cGVuYW1lIG5vdCBiZWluZyByZWxpYWJseSBhdmFpbGFibGUNCiAgICAgICAgICAgICAgICAgICAgJG5hbWVzID0gJHBhcmFtZXRlci5QYXJhbWV0ZXJUeXBlOjpHZXROYW1lcygkcGFyYW1ldGVyLlBhcmFtZXRlclR5cGUpDQogICAgICAgICAgICAgICAgICAgIGlmICgkcGFyYW1ldGVySGVscC5wYXJhbWV0ZXJWYWx1ZUdyb3VwLnBhcmFtZXRlclZhbHVlIC1uZSAkbmFtZXMpIHsNCiAgICAgICAgICAgICAgICAgICAgICAgICMgUGFyYW1ldGVyIHR5cGUgaW4gSGVscCBzaG91bGQgbWF0Y2ggY29kZQ0KICAgICAgICAgICAgICAgICAgICAgICAgSXQgImhlbHAgZm9yICRjb21tYW5kTmFtZSBoYXMgY29ycmVjdCBwYXJhbWV0ZXIgdHlwZSBmb3IgJHBhcmFtZXRlck5hbWUiIHsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAkcGFyYW1ldGVySGVscC5wYXJhbWV0ZXJWYWx1ZUdyb3VwLnBhcmFtZXRlclZhbHVlIHwgU2hvdWxkIC1iZSAkbmFtZXMNCiAgICAgICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAgICAgICAgICR0ZXN0cGFyYW1zZXJyb3JzICs9IDENCiAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICBlbHNlaWYgKCRwYXJhbWV0ZXIuUGFyYW1ldGVyVHlwZS5GdWxsTmFtZSAtaW4gJEhlbHBUZXN0RW51bWVyYXRlZEFycmF5cykgew0KICAgICAgICAgICAgICAgICAgICAjIEVudW1lcmF0aW9ucyBvZnRlbiBoYXZlIGlzc3VlcyB3aXRoIHRoZSB0eXBlbmFtZSBub3QgYmVpbmcgcmVsaWFibHkgYXZhaWxhYmxlDQogICAgICAgICAgICAgICAgICAgICRuYW1lcyA9IFtFbnVtXTo6R2V0TmFtZXMoJHBhcmFtZXRlci5QYXJhbWV0ZXJUeXBlLkRlY2xhcmVkTWVtYmVyc1swXS5SZXR1cm5UeXBlKQ0KICAgICAgICAgICAgICAgICAgICBpZiAoJHBhcmFtZXRlckhlbHAucGFyYW1ldGVyVmFsdWVHcm91cC5wYXJhbWV0ZXJWYWx1ZSAtbmUgJG5hbWVzKSB7DQogICAgICAgICAgICAgICAgICAgICAgICAjIFBhcmFtZXRlciB0eXBlIGluIEhlbHAgc2hvdWxkIG1hdGNoIGNvZGUNCiAgICAgICAgICAgICAgICAgICAgICAgIEl0ICJoZWxwIGZvciAkY29tbWFuZE5hbWUgaGFzIGNvcnJlY3QgcGFyYW1ldGVyIHR5cGUgZm9yICRwYXJhbWV0ZXJOYW1lIiB7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgJHBhcmFtZXRlckhlbHAucGFyYW1ldGVyVmFsdWVHcm91cC5wYXJhbWV0ZXJWYWx1ZSB8IFNob3VsZCAtYmUgJG5hbWVzDQogICAgICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgICAgICAkdGVzdHBhcmFtc2Vycm9ycyArPSAxDQogICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgZWxzZSB7DQogICAgICAgICAgICAgICAgICAgICMgVG8gYXZvaWQgY2FsbGluZyBUcmltIG1ldGhvZCBvbiBhIG51bGwgb2JqZWN0Lg0KICAgICAgICAgICAgICAgICAgICAkaGVscFR5cGUgPSBpZiAoJHBhcmFtZXRlckhlbHAucGFyYW1ldGVyVmFsdWUpIHsgJHBhcmFtZXRlckhlbHAucGFyYW1ldGVyVmFsdWUuVHJpbSgpIH0NCiAgICAgICAgICAgICAgICAgICAgaWYgKCRoZWxwVHlwZSAtbmUgJGNvZGVUeXBlKSB7DQogICAgICAgICAgICAgICAgICAgICAgICAjIFBhcmFtZXRlciB0eXBlIGluIEhlbHAgc2hvdWxkIG1hdGNoIGNvZGUNCiAgICAgICAgICAgICAgICAgICAgICAgIEl0ICJoZWxwIGZvciAkY29tbWFuZE5hbWUgaGFzIGNvcnJlY3QgcGFyYW1ldGVyIHR5cGUgZm9yICRwYXJhbWV0ZXJOYW1lIiB7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgJGhlbHBUeXBlIHwgU2hvdWxkIC1iZSAkY29kZVR5cGUNCiAgICAgICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAgICAgICAgICR0ZXN0cGFyYW1zZXJyb3JzICs9IDENCiAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgIH0NCiAgICAgICAgICAgIGZvcmVhY2ggKCRoZWxwUGFybSBpbiAkSGVscFBhcmFtZXRlck5hbWVzKSB7DQogICAgICAgICAgICAgICAgJHRlc3RwYXJhbXNhbGwgKz0gMQ0KICAgICAgICAgICAgICAgIGlmICgkaGVscFBhcm0gLW5vdGluICRwYXJhbWV0ZXJOYW1lcykgew0KICAgICAgICAgICAgICAgICAgICAjIFNob3VsZG4ndCBmaW5kIGV4dHJhIHBhcmFtZXRlcnMgaW4gaGVscC4NCiAgICAgICAgICAgICAgICAgICAgSXQgImZpbmRzIGhlbHAgcGFyYW1ldGVyIGluIGNvZGU6ICRoZWxwUGFybSIgew0KICAgICAgICAgICAgICAgICAgICAgICAgJGhlbHBQYXJtIC1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