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-09-08T00: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">psframework</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-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">guid4</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">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">year</S>
            <Obj N="Value" RefId="7">
              <TNRef RefId="4" />
              <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="8">
              <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">date</S>
            <Obj N="Value" RefId="9">
              <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">guid</S>
            <Obj N="Value" RefId="10">
              <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="11">
              <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>
        </DCT>
      </Obj>
      <Obj N="Children" RefId="12">
        <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="13">
            <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="14">
                <TNRef RefId="5" />
                <LST>
                  <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="15">
                <TNRef RefId="2" />
                <LST />
              </Obj>
              <Obj N="FileSystemParameterScript" RefId="16">
                <TNRef RefId="2" />
                <LST />
              </Obj>
            </Props>
            <MS>
              <BA N="SerializationData">AAEAAAD/////AQAAAAAAAAAMAgAAAEpQU01vZHVsZURldmVsb3BtZW50LCBWZXJzaW9uPTIuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCw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2J1aWxkXHZzdHMtdmFsaWRhdGUucHMxCQYAAAAJJAAAAAklAAAAAQ8AAAAHAAAACSYAAAABAAAAAQAAAAEQAAAABwAAAAkKAAAAAAAAAAAAAAABFAAAAAcAAAAJCgAAAAAAAAAAAAAAARUAAAAHAAAACQoAAAAAAAAAAAAAAAEXAAAABwAAAAkKAAAAAAAAAAAAAAABGAAAAAcAAAAJCgAAAAAAAAAAAAAAARwAAAAHAAAACQoAAAAAAAAAAAAAAAEdAAAABwAAAAkKAAAAAAAAAAAAAAABHwAAAAcAAAAJKAAAAAEAAAABAAAAASAAAAAHAAAACQoAAAAAAAAAAAAAAAEkAAAABwAAAAkKAAAAAAAAAAAAAAABJQAAAAcAAAAJCgAAAAAAAAAAAAAAESYAAAAEAAAABioAAAAEbmFtZQ0DESgAAAAEAAAABisAAAAEbmFtZQ0DCw==</BA>
            </MS>
          </Obj>
          <Obj RefId="17">
            <TNRef RefId="6" />
            <ToString>PSModuleDevelopment.Template.TemplateItemFolder</ToString>
            <Props>
              <Obj N="Children" RefId="18">
                <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="19">
                <TNRef RefId="2" />
                <LST />
              </Obj>
              <Obj N="FileSystemParameterScript" RefId="20">
                <TNRef RefId="2" />
                <LST />
              </Obj>
            </Props>
            <MS>
              <BA N="SerializationData">AAEAAAD/////AQAAAAAAAAAMAgAAAEpQU01vZHVsZURldmVsb3BtZW50LCBWZXJzaW9uPTIuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbAUBAAAAL1BTTW9kdWxlRGV2ZWxvcG1lbnQuVGVtcGxhdGUuVGVtcGxhdGVJdGVtRm9sZGVyBgAAAAhDaGlsZHJlbgROYW1lDFJlbGF0aXZlUGF0aApJZGVudGlmaWV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A>
            </MS>
          </Obj>
          <Obj RefId="21">
            <TNRef RefId="6" />
            <ToString>PSModuleDevelopment.Template.TemplateItemFolder</ToString>
            <Props>
              <Obj N="Children" RefId="22">
                <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>
                </LST>
              </Obj>
              <S N="Name">þnameþ</S>
              <S N="RelativePath">þnameþ</S>
              <S N="Identifier">þ</S>
              <Obj N="FileSystemParameterFlat" RefId="23">
                <TNRef RefId="2" />
                <LST>
                  <S>name</S>
                </LST>
              </Obj>
              <Obj N="FileSystemParameterScript" RefId="24">
                <TNRef RefId="2" />
                <LST />
              </Obj>
            </Props>
            <MS>
              <BA N="SerializationData">AAEAAAD/////AQAAAAAAAAAMAgAAAEpQU01vZHVsZURldmVsb3BtZW50LCBWZXJzaW9uPTIuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbAUBAAAAL1BTTW9kdWxlRGV2ZWxvcG1lbnQuVGVtcGxhdGUuVGVtcGxhdGVJdGVtRm9sZGVyBgAAAAhDaGlsZHJlbgROYW1lDFJlbGF0aXZlUGF0aApJZGVudGlmaWVyF0ZpbGVTeXN0ZW1QYXJhbWV0ZXJGbGF0GUZpbGVTeXN0ZW1QYXJhbWV0ZXJTY3JpcHQDAQEBAwOeAVN5c3RlbS5Db2xsZWN0aW9ucy5HZW5lcmljLkxpc3RgMVtbUFNNb2R1bGVEZXZlbG9wbWVudC5UZW1wbGF0ZS5UZW1wbGF0ZUl0ZW1CYXNlLCBQU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CiAgICAgICAgfQ0KICAgICAgICANCiAgICAgICAgJHRlc3RoZWxwYWxsICs9IDENCiAgICAgICAgaWYgKFtTdHJpbmddOjpJc051bGxPckVtcHR5KCRIZWxwLkRlc2NyaXB0aW9uLlRleHQpKSB7DQogICAgICAgICAgICAjIFNob3VsZCBiZSBhIGRlc2NyaXB0aW9uIGZvciBldmVyeSBmdW5jdGlvbg0KICAgICAgICAgICAgSXQgImdldHMgZGVzY3JpcHRpb24gZm9yICRjb21tYW5kTmFtZSIgew0KICAgICAgICAgICAgICAgICRIZWxwLkRlc2NyaXB0aW9uIHwgU2hvdWxkIC1Ob3QgLUJlTnVsbE9yRW1wdHkNCiAgICAgICAgICAgIH0NCiAgICAgICAgICAgICR0ZXN0aGVscGVycm9ycyArPSAxDQogICAgICAgIH0NCiAgICAgICAgDQogICAgICAgICR0ZXN0aGVscGFsbCArPSAxDQogICAgICAgIGlmIChbU3RyaW5nXTo6SXNOdWxsT3JFbXB0eSgoJEhlbHAuRXhhbXBsZXMuRXhhbXBsZSB8IFNlbGVjdC1PYmplY3QgLUZpcnN0IDEpLkNvZGUpKSB7DQogICAgICAgICAgICAjIFNob3VsZCBiZSBhdCBsZWFzdCBvbmUgZXhhbXBsZQ0KICAgICAgICAgICAgSXQgImdldHMgZXhhbXBsZSBjb2RlIGZyb20gJGNvbW1hbmROYW1lIiB7DQogICAgICAgICAgICAgICAgKCRIZWxwLkV4YW1wbGVzLkV4YW1wbGUgfCBTZWxlY3QtT2JqZWN0IC1GaXJzdCAxKS5Db2RlIHwgU2hvdWxkIC1Ob3QgLUJlTnVsbE9yRW1wdHkNCiAgICAgICAgICAgIH0NCiAgICAgICAgICAgICR0ZXN0aGVscGVycm9ycyArPSAxDQogICAgICAgIH0NCiAgICAgICAgDQogICAgICAgICR0ZXN0aGVscGFsbCArPSAxDQogICAgICAgIGlmIChbU3RyaW5nXTo6SXNOdWxsT3JFbXB0eSgoJEhlbHAuRXhhbXBsZXMuRXhhbXBsZS5SZW1h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lRleHQgfCBTaG91bGQgLU5vdCAtQmVOdWxsT3JFbXB0eQ0KICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgICR0ZXN0cGFyYW1zZXJyb3JzICs9IDENCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgDQogICAgICAgICAgICAgICAgJHRlc3RwYXJhbXNhbGwgKz0gMQ0KICAgICAgICAgICAgICAgICRjb2RlTWFuZGF0b3J5ID0gJHBhcmFtZXRlci5Jc01hbmRhdG9yeS50b1N0cmluZygpDQogICAgICAgICAgICAgICAgaWYgKCRwYXJhbWV0ZXJIZWxwLlJlcXVpcmVkIC1uZSAkY29kZU1hbmRhdG9yeSkgew0KICAgICAgICAgICAgICAgICAgICAjIFJlcXVpcmVkIHZhbHVlIGluIEhlbHAgc2hvdWxkIG1hdGNoIElzTWFuZGF0b3J5IHByb3BlcnR5IG9mIHBhcmFtZXRlcg0KICAgICAgICAgICAgICAgICAgICBJdCAiaGVscCBmb3IgJHBhcmFtZXRlck5hbWUgcGFyYW1ldGVyIGluICRjb21tYW5kTmFtZSBoYXMgY29ycmVjdCBNYW5kYXRvcnkgdmFsdWUiIHsNCiAgICAgICAgICAgICAgICAgICAgICAgICRwYXJhbWV0ZXJIZWxwLlJlcXVpcmVkIHwgU2hvdWxkIC1CZSAkY29kZU1hbmRhdG9yeQ0KICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgICR0ZXN0cGFyYW1zZXJyb3JzICs9IDENCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgDQogICAgICAgICAgICAgICAgaWYgKCRIZWxwVGVzdFNraXBQYXJhbWV0ZXJUeXBlWyRjb21tYW5kTmFtZV0gLWNvbnRhaW5zICRwYXJhbWV0ZXJOYW1lKSB7IGNvbnRpbnVlIH0NCiAgICAgICAgICAgICAgICANCiAgICAgICAgICAgICAgICAkY29kZVR5cGUgPSAkcGFyYW1ldGVyLlBhcmFtZXRlclR5cGUuTmFtZQ0KICAgICAgICAgICAgICAgIA0KICAgICAgICAgICAgICAgICR0ZXN0cGFyYW1zYWxsICs9IDENCiAgICAgICAgICAgICAgICBpZiAoJHBhcmFtZXRlci5QYXJhbWV0ZXJUeXBlLklzRW51bSkgew0KICAgICAgICAgICAgICAgICAgICAjIEVudW1lcmF0aW9ucyBvZnRlbiBoYXZlIGlzc3VlcyB3aXRoIHRoZSB0eXBlbmFtZSBub3QgYmVpbmcgcmVsaWFibHkgYXZhaWxhYmxlDQogICAgICAgICAgICAgICAgICAgICRuYW1lcyA9ICRwYXJhbWV0ZXIuUGFyYW1ldGVyVHlwZTo6R2V0TmFtZXMoJHBhcmFtZXRlci5QYXJhbWV0ZXJUeXBlKQ0KICAgICAgICAgICAgICAgICAgICBpZiAoJHBhcmFtZXRlckhlbHAucGFyYW1ldGVyVmFsdWVHcm91cC5wYXJhbWV0ZXJWYWx1ZSAtbmUgJG5hbWVzKSB7DQogICAgICAgICAgICAgICAgICAgICAgICAjIFBhcmFtZXRlciB0eXBlIGluIEhlbHAgc2hvdWxkIG1hdGNoIGNvZGUNCiAgICAgICAgICAgICAgICAgICAgICAgIEl0ICJoZWxwIGZvciAkY29tbWFuZE5hbWUgaGFzIGNvcnJlY3QgcGFyYW1ldGVyIHR5cGUgZm9yICRwYXJhbWV0ZXJOYW1lIiB7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgJHBhcmFtZXRlckhlbHAucGFyYW1ldGVyVmFsdWVHcm91cC5wYXJhbWV0ZXJWYWx1ZSB8IFNob3VsZCAtYmUgJG5hbWVzDQogICAgICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgICAgICAkdGVzdHBhcmFtc2Vycm9ycyArPSAxDQogICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgZWxzZWlmICgkcGFyYW1ldGVyLlBhcmFtZXRlclR5cGUuRnVsbE5hbWUgLWluICRIZWxwVGVzdEVudW1lcmF0ZWRBcnJheXMpIHsNCiAgICAgICAgICAgICAgICAgICAgIyBFbnVtZXJhdGlvbnMgb2Z0ZW4gaGF2ZSBpc3N1ZXMgd2l0aCB0aGUgdHlwZW5hbWUgbm90IGJlaW5nIHJlbGlhYmx5IGF2YWlsYWJsZQ0KICAgICAgICAgICAgICAgICAgICAkbmFtZXMgPSBbRW51bV06OkdldE5hbWVzKCRwYXJhbWV0ZXIuUGFyYW1ldGVyVHlwZS5EZWNsYXJlZE1lbWJlcnNbMF0uUmV0dXJuVHlwZSkNCiAgICAgICAgICAgICAgICAgICAgaWYgKCRwYXJhbWV0ZXJIZWxwLnBhcmFtZXRlclZhbHVlR3JvdXAucGFyYW1ldGVyVmFsdWUgLW5lICRuYW1lcykgew0KICAgICAgICAgICAgICAgICAgICAgICAgIyBQYXJhbWV0ZXIgdHlwZSBpbiBIZWxwIHNob3VsZCBtYXRjaCBjb2RlDQogICAgICAgICAgICAgICAgICAgICAgICBJdCAiaGVscCBmb3IgJGNvbW1hbmROYW1lIGhhcyBjb3JyZWN0IHBhcmFtZXRlciB0eXBlIGZvciAkcGFyYW1ldGVyTmFtZSIgew0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICRwYXJhbWV0ZXJIZWxwLnBhcmFtZXRlclZhbHVlR3JvdXAucGFyYW1ldGVyVmFsdWUgfCBTaG91bGQgLWJlICRuYW1lcw0KICAgICAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgICAgICAgICAgJHRlc3RwYXJhbXNlcnJvcnMgKz0gMQ0KICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgIGVsc2Ugew0KICAgICAgICAgICAgICAgICAgICAjIFRvIGF2b2lkIGNhbGxpbmcgVHJpbSBtZXRob2Qgb24gYSBudWxsIG9iamVjdC4NCiAgICAgICAgICAgICAgICAgICAgJGhlbHBUeXBlID0gaWYgKCRwYXJhbWV0ZXJIZWxwLnBhcmFtZXRlclZhbHVlKSB7ICRwYXJhbWV0ZXJIZWxwLnBhcmFtZXRlclZhbHVlLlRyaW0oKSB9DQogICAgICAgICAgICAgICAgICAgIGlmICgkaGVscFR5cGUgLW5lICRjb2RlVHlwZSkgew0KICAgICAgICAgICAgICAgICAgICAgICAgIyBQYXJhbWV0ZXIgdHlwZSBpbiBIZWxwIHNob3VsZCBtYXRjaCBjb2RlDQogICAgICAgICAgICAgICAgICAgICAgICBJdCAiaGVscCBmb3IgJGNvbW1hbmROYW1lIGhhcyBjb3JyZWN0IHBhcmFtZXRlciB0eXBlIGZvciAkcGFyYW1ldGVyTmFtZSIgew0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICRoZWxwVHlwZSB8IFNob3VsZCAtYmUgJGNvZGVUeXBlDQogICAgICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgICAgICAkdGVzdHBhcmFtc2Vycm9ycyArPSAxDQogICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICB9DQogICAgICAgICAgICBmb3JlYWNoICgkaGVscFBhcm0gaW4gJEhlbHBQYXJhbWV0ZXJOYW1lcykgew0KICAgICAgICAgICAgICAgICR0ZXN0cGFyYW1zYWxsICs9IDENCiAgICAgICAgICAgICAgICBpZiAoJGhlbHBQYXJtIC1ub3RpbiAkcGFyYW1ldGVyTmFtZXMpIHsNCiAgICAgICAgICAgICAgICAgICAgIyBTaG91bGRuJ3QgZmluZCBleHRyYSBwYXJhbWV0ZXJzIGluIGhlbHAuDQogICAgICAgICAgICAgICAgICAgIEl0ICJmaW5kcyBoZWxwIHBhcmFtZXRlciBpbiBjb2RlOiAkaGVscFBhcm0iIHsNCiAgICAgICAgICAgICAgICAgICAgICAgICRoZWxwUGFybSAtaW4gJHBhcmFtZXRlck5hbWVzIHwgU2hvdWxkIC1CZSAkdHJ1ZQ0KICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgICR0ZXN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AAAAAAAAAAABYgEAAAcAAAAJCwAAAAAAAAAAAAAAAWYBAAAHAAAACQsAAAAAAAAAAAAAAAFnAQAABwAAAAkLAAAAAAAAAAAAAAABaQEAAAcAAAAJCwAAAAAAAAAAAAAAAWoBAAAHAAAACQsAAAAAAAAAAAAAAAFuAQAABwAAAAkLAAAAAAAAAAAAAAABbwEAAAcAAAAJCwAAAAAAAAAAAAAAAXEBAAAHAAAACZEBAAABAAAAAQAAAAFyAQAABwAAAAkLAAAAAAAAAAAAAAABdgEAAAcAAAAJCwAAAAAAAAAAAAAAAXcBAAAHAAAACQsAAAAAAAAAAAAAAAF5AQAABwAAAAmTAQAAAQAAAAEAAAABegEAAAcAAAAJCwAAAAAAAAAAAAAAAX4BAAAHAAAACQsAAAAAAAAAAAAAAAF/AQAABwAAAAkLAAAAAAAAAAAAAAABgQEAAAcAAAAJCwAAAAAAAAAAAAAAAYIBAAAHAAAACQsAAAAAAAAAAAAAAAGGAQAABwAAAAkLAAAAAAAAAAAAAAABhwEAAAcAAAAJCwAAAAAAAAAAAAAAEYgBAAAEAAAABpUBAAAEbmFtZQ0DEYoBAAAEAAAABpYBAAAEbmFtZQaXAQAABmF1dGhvcg0CEYsBAAAEAAAABpgBAAAEZGF0ZQaZAQAABHllYXINAhGNAQAABAAAAAaaAQAABG5hbWUNAxGPAQAABAAAAAabAQAABG5hbWUNAxGRAQAABAAAAAacAQAABG5hbWUNAxGTAQAABAAAAAadAQAABG5hbWUNAws=</BA>
            </MS>
          </Obj>
          <Obj RefId="25">
            <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="26">
                <TNRef RefId="2" />
                <LST />
              </Obj>
              <Obj N="ContentParameterScript" RefId="27">
                <TNRef RefId="2" />
                <LST />
              </Obj>
              <S N="Name">.gitattributes</S>
              <S N="RelativePath">.gitattributes</S>
              <S N="Identifier">þ</S>
              <Obj N="FileSystemParameterFlat" RefId="28">
                <TNRef RefId="2" />
                <LST />
              </Obj>
              <Obj N="FileSystemParameterScript" RefId="29">
                <TNRef RefId="2" />
                <LST />
              </Obj>
            </Props>
            <MS>
              <BA N="SerializationData">AAEAAAD/////AQAAAAAAAAAMAgAAAEpQU01vZHVsZURldmVsb3BtZW50LCBWZXJzaW9uPTIuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbAUBAAAALVBTTW9kdWxlRGV2ZWxvcG1lbnQuVGVtcGxhdGUuVGVtcGxhdGVJdGVtRmlsZQkAAAAFVmFsdWUJUGxhaW5UZXh0FENvbnRlbnRQYXJhbWV0ZXJGbGF0FkNvbnRlbnRQYXJhbWV0ZXJTY3JpcHQETmFtZQxSZWxhdGl2ZVBhdGgKSWRlbnRpZmllchdGaWxlU3lzdGVtUGFyYW1ldGVyRmxhdBlGaWxlU3lzdGVtUGFyYW1ldGVyU2NyaXB0AQADAwEBAQMDAX9TeXN0ZW0uQ29sbGVjdGlvbnMuR2VuZXJpYy5MaXN0YDFbW1N5c3RlbS5TdHJpbmcsIG1zY29ybGliLCBWZXJzaW9uPTQuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49Yjc3YTVjNTYxOTM0ZTA4OV1df1N5c3RlbS5Db2xsZWN0aW9ucy5HZW5lcmljLkxpc3RgMVtbU3lzdGVtLlN0cmluZywgbXNjb3JsaWIsIFZlcnNpb249NC4wLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1iNzdhNWM1NjE5MzRlMDg5XV1/U3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tTeXN0ZW0uU3RyaW5nLCBtc2NvcmxpYiwgVmVyc2lvbj00LjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODldXX9TeXN0ZW0uQ29sbGVjdGlvbnMuR2VuZXJpYy5MaXN0YDFbW1N5c3RlbS5TdHJpbmcsIG1zY29ybGliLCBWZXJzaW9uPTQuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49Yjc3YTVjNTYxOTM0ZTA4OV1dAgAAAAYDAAAAQiMgQXV0byBkZXRlY3QgdGV4dCBmaWxlcyBhbmQgcGVyZm9ybSBMRiBub3JtYWxpemF0aW9uDQoqIHRleHQ9YXV0bwEJBAAAAAkFAAAABgYAAAAOLmdpdGF0dHJpYnV0ZXMGBwAAAA4uZ2l0YXR0cmlidXRlcwYIAAAAAsO+CQkAAAAJCgAAAAQEAAAAf1N5c3RlbS5Db2xsZWN0aW9ucy5HZW5lcmljLkxpc3RgMVtbU3lzdGVtLlN0cmluZywgbXNjb3JsaWIsIFZlcnNpb249NC4wLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1iNzdhNWM1NjE5MzRlMDg5XV0DAAAABl9pdGVtcwVfc2l6ZQhfdmVyc2lvbgYAAAgICQsAAAAAAAAAAAAAAAEFAAAABAAAAAkLAAAAAAAAAAAAAAABCQAAAAQAAAAJCwAAAAAAAAAAAAAAAQoAAAAEAAAACQsAAAAAAAAAAAAAABELAAAAAAAAAAs=</BA>
            </MS>
          </Obj>
          <Obj RefId="30">
            <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_</S>
              <B N="PlainText">true</B>
              <Obj N="ContentParameterFlat" RefId="31">
                <TNRef RefId="2" />
                <LST>
                  <S>name</S>
                </LST>
              </Obj>
              <Obj N="ContentParameterScript" RefId="32">
                <TNRef RefId="2" />
                <LST />
              </Obj>
              <S N="Name">.gitignore</S>
              <S N="RelativePath">.gitignore</S>
              <S N="Identifier">þ</S>
              <Obj N="FileSystemParameterFlat" RefId="33">
                <TNRef RefId="2" />
                <LST />
              </Obj>
              <Obj N="FileSystemParameterScript" RefId="34">
                <TNRef RefId="2" />
                <LST />
              </Obj>
            </Props>
            <MS>
              <BA N="SerializationData">AAEAAAD/////AQAAAAAAAAAMAgAAAEpQU01vZHVsZURldmVsb3BtZW50LCBWZXJzaW9uPTIuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbAUBAAAALVBTTW9kdWxlRGV2ZWxvcG1lbnQuVGVtcGxhdGUuVGVtcGxhdGVJdGVtRmlsZQkAAAAFVmFsdWUJUGxhaW5UZXh0FENvbnRlbnRQYXJhbWV0ZXJGbGF0FkNvbnRlbnRQYXJhbWV0ZXJTY3JpcHQETmFtZQxSZWxhdGl2ZVBhdGgKSWRlbnRpZmllchdGaWxlU3lzdGVtUGFyYW1ldGVyRmxhdBlGaWxlU3lzdGVtUGFyYW1ldGVyU2NyaXB0AQADAwEBAQMDAX9TeXN0ZW0uQ29sbGVjdGlvbnMuR2VuZXJpYy5MaXN0YDFbW1N5c3RlbS5TdHJpbmcsIG1zY29ybGliLCBWZXJzaW9uPTQuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5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5hbWXDvi5wc3Byb2oNCgEJBAAAAAkFAAAABgYAAAAKLmdpdGlnbm9yZQYHAAAACi5naXRpZ25vcmUGCAAAAALDvgkJAAAACQoAAAAEBAAAAH9TeXN0ZW0uQ29sbGVjdGlvbnMuR2VuZXJpYy5MaXN0YDFbW1N5c3RlbS5TdHJpbmcsIG1zY29ybGliLCBWZXJzaW9uPTQuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49Yjc3YTVjNTYxOTM0ZTA4OV1dAwAAAAZfaXRlbXMFX3NpemUIX3ZlcnNpb24GAAAICAkLAAAAAQAAAAEAAAABBQAAAAQAAAAJDAAAAAAAAAAAAAAAAQkAAAAEAAAACQwAAAAAAAAAAAAAAAEKAAAABAAAAAkMAAAAAAAAAAAAAAARCwAAAAQAAAAGDQAAAARuYW1lDQMRDAAAAAAAAAAL</BA>
            </MS>
          </Obj>
          <Obj RefId="35">
            <TNRef RefId="7" />
            <ToString>PSModuleDevelopment.Template.TemplateItemFile</ToString>
            <Props>
              <S N="Value">&lt;#_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__x000D__x000A__x0009_.PARAMETER Force_x000D__x000A__x0009__x0009_The install script will overwrite an existing module._x000D__x000A_#&gt;_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_[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/&lt;InsertUsernameHere&gt;/þ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 Utility Functions_x000D__x000A_function Compress-Archive_x000D__x000A_{_x000D__x000A__x0009_&lt;#_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:\&gt;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:\&gt;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:\&gt;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:\&gt;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_#&gt;_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 &amp; 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_&lt;############################################################################################_x000D__x000A_# ValidateArchivePathHelper: This is a helper function used to validate the archive file_x000D__x000A_# path &amp; its file format. The only supported archive file format is .zip_x000D__x000A_############################################################################################&gt;_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_&lt;############################################################################################_x000D__x000A_# ExpandArchiveHelper: This is a helper function used to expand the archive file contents_x000D__x000A_# to the specified directory._x000D__x000A_############################################################################################&gt;_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_&lt;############################################################################################_x000D__x000A_# ProgressBarHelper: This is a helper function used to display progress message._x000D__x000A_# This function is used by both Compress-Archive &amp; Expand-Archive to display archive file_x000D__x000A_# creation/expansion progress._x000D__x000A_############################################################################################&gt;_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_&lt;############################################################################################_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_############################################################################################&gt;_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_&lt;############################################################################################_x000D__x000A_# ThrowTerminatingErrorHelper: This is a helper function used to throw terminating error._x000D__x000A_############################################################################################&gt;_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_&lt;############################################################################################_x000D__x000A_# CreateErrorRecordHelper: This is a helper function used to create an ErrorRecord_x000D__x000A_############################################################################################&gt;_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_&lt;#_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:\&gt;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:\&gt;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_#&gt;_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 &amp; 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_&lt;############################################################################################_x000D__x000A_# ValidateArchivePathHelper: This is a helper function used to validate the archive file_x000D__x000A_# path &amp; its file format. The only supported archive file format is .zip_x000D__x000A_############################################################################################&gt;_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_&lt;############################################################################################_x000D__x000A_# ExpandArchiveHelper: This is a helper function used to expand the archive file contents_x000D__x000A_# to the specified directory._x000D__x000A_############################################################################################&gt;_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_&lt;############################################################################################_x000D__x000A_# ProgressBarHelper: This is a helper function used to display progress message._x000D__x000A_# This function is used by both Compress-Archive &amp; Expand-Archive to display archive file_x000D__x000A_# creation/expansion progress._x000D__x000A_############################################################################################&gt;_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_&lt;############################################################################################_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_############################################################################################&gt;_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_&lt;############################################################################################_x000D__x000A_# ThrowTerminatingErrorHelper: This is a helper function used to throw terminating error._x000D__x000A_############################################################################################&gt;_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_&lt;############################################################################################_x000D__x000A_# CreateErrorRecordHelper: This is a helper function used to create an ErrorRecord_x000D__x000A_############################################################################################&gt;_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="36">
                <TNRef RefId="2" />
                <LST>
                  <S>name</S>
                </LST>
              </Obj>
              <Obj N="ContentParameterScript" RefId="37">
                <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="38">
                <TNRef RefId="2" />
                <LST />
              </Obj>
              <Obj N="FileSystemParameterScript" RefId="39">
                <TNRef RefId="2" />
                <LST />
              </Obj>
            </Props>
            <MS>
              <BA N="SerializationData">AAEAAAD/////AQAAAAAAAAAMAgAAAEpQU01vZHVsZURldmVsb3BtZW50LCBWZXJzaW9uPTIuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbAUBAAAALVBTTW9kdWxlRGV2ZWxvcG1lbnQuVGVtcGxhdGUuVGVtcGxhdGVJdGVtRmlsZQkAAAAFVmFsdWUJUGxhaW5UZXh0FENvbnRlbnRQYXJhbWV0ZXJGbGF0FkNvbnRlbnRQYXJhbWV0ZXJTY3JpcHQETmFtZQxSZWxhdGl2ZVBhdGgKSWRlbnRpZmllchdGaWxlU3lzdGVtUGFyYW1ldGVyRmxhdBlGaWxlU3lzdGVtUGFyYW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NhdGNoDQp7DQoJV3JpdGUtTG9jYWxNZXNzYWdlIC1NZXNzYWdlICJJbnN0YWxsYXRpb24gb2YgdGhlIG1vZHVsZSAkKCRNb2R1bGVOYW1lKSBmYWlsZWQhIg0KCQ0KCVdyaXRlLUxvY2FsTWVzc2FnZSAtTWVzc2FnZSAiQ2xlYW5pbmcgdXAgdGVtcG9yYXJ5IGZpbGVzIg0KCVJlbW92ZS1JdGVtIC1QYXRoICIkKCRlbnY6VEVNUClcJCgkTW9kdWxlTmFtZSkiIC1Gb3JjZSAtUmVjdXJzZQ0KCVJlbW92ZS1JdGVtIC1QYXRoICIkKCRlbnY6VEVNUClcJCgkTW9kdWxlTmFtZSkuemlwIiAtRm9yY2UNCgkNCgl0aHJvdw0KfQEJBAAAAAkFAAAABgYAAAALaW5zdGFsbC5wczEGBwAAAAtpbnN0YWxsLnBzMQYIAAAAAsO+CQkAAAAJCgAAAAQEAAAAf1N5c3RlbS5Db2xsZWN0aW9ucy5HZW5lcmljLkxpc3RgMVtbU3lzdGVtLlN0cmluZywgbXNjb3JsaWIsIFZlcnNpb249NC4wLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1iNzdhNWM1NjE5MzRlMDg5XV0DAAAABl9pdGVtcwVfc2l6ZQhfdmVyc2lvbgYAAAgICQsAAAABAAAAAQAAAAEFAAAABAAAAAkMAAAAAAAAAAAAAAABCQAAAAQAAAAJDAAAAAAAAAAAAAAAAQoAAAAEAAAACQwAAAAAAAAAAAAAABELAAAABAAAAAYNAAAABG5hbWUNAxEMAAAAAAAAAAs=</BA>
            </MS>
          </Obj>
          <Obj RefId="40">
            <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="41">
                <TNRef RefId="2" />
                <LST>
                  <S>author</S>
                </LST>
              </Obj>
              <Obj N="ContentParameterScript" RefId="42">
                <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="43">
                <TNRef RefId="2" />
                <LST />
              </Obj>
              <Obj N="FileSystemParameterScript" RefId="44">
                <TNRef RefId="2" />
                <LST />
              </Obj>
            </Props>
            <MS>
              <BA N="SerializationData">AAEAAAD/////AQAAAAAAAAAMAgAAAEpQU01vZHVsZURldmVsb3BtZW50LCBWZXJzaW9uPTIuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbAUBAAAALVBTT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9SUyBPUiBDT1BZUklHSFQgSE9MREVSUyBCRSBMSUFCTEUgRk9SIEFOWSBDTEFJTSwgREFNQUdFUyBPUiBPVEhFUg0KTElBQklMSVRZLCBXSEVUSEVSIElOIEFOIEFDVElPTiBPRiBDT05UUkFDVCwgVE9SVCBPUiBPVEhFUldJU0UsIEFSSVNJTkcgRlJPTSwNCk9VVCBPRiBPUiBJTiBDT05ORUNUSU9OIFdJVEggVEhFIFNPRlRXQVJFIE9SIFRIRSBVU0UgT1IgT1RIRVIgREVBTElOR1MgSU4gVEhFDQpTT0ZUV0FSRS4BCQQAAAAJBQAAAAYGAAAAB0xJQ0VOU0UGBwAAAAdMSUNFTlNFBggAAAACw74JCQAAAAkKAAAABAQAAAB/U3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tTeXN0ZW0uU3RyaW5nLCBtc2NvcmxpYiwgVmVyc2lvbj00LjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODldXQMAAAAGX2l0ZW1zBV9zaXplCF92ZXJzaW9uBgAACAgJCwAAAAEAAAABAAAAAQUAAAAEAAAACQwAAAABAAAAAQAAAAEJAAAABAAAAAkNAAAAAAAAAAAAAAABCgAAAAQAAAAJDQAAAAAAAAAAAAAAEQsAAAAEAAAABg4AAAAGYXV0aG9yDQMRDAAAAAQAAAAGDwAAAAR5ZWFyDQMRDQAAAAAAAAAL</BA>
            </MS>
          </Obj>
          <Obj RefId="45">
            <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.</S>
              <B N="PlainText">true</B>
              <Obj N="ContentParameterFlat" RefId="46">
                <TNRef RefId="2" />
                <LST>
                  <S>name</S>
                </LST>
              </Obj>
              <Obj N="ContentParameterScript" RefId="47">
                <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="48">
                <TNRef RefId="2" />
                <LST />
              </Obj>
              <Obj N="FileSystemParameterScript" RefId="49">
                <TNRef RefId="2" />
                <LST />
              </Obj>
            </Props>
            <MS>
              <BA N="SerializationData">AAEAAAD/////AQAAAAAAAAAMAgAAAEpQU01vZHVsZURldmVsb3BtZW50LCBWZXJzaW9uPTIuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49bnVsbAUBAAAALVBTTW9kdWxlRGV2ZWxvcG1lbnQuVGVtcGxhdGUuVGVtcGxhdGVJdGVtRmlsZQkAAAAFVmFsdWUJUGxhaW5UZXh0FENvbnRlbnRQYXJhbWV0ZXJGbGF0FkNvbnRlbnRQYXJhbWV0ZXJTY3JpcHQETmFtZQxSZWxhdGl2ZVBhdGgKSWRlbnRpZmllchdGaWxlU3lzdGVtUGFyYW1ldGVyRmxhdBlGaWxlU3lzdGVtUGFyYW1ldGVyU2NyaXB0AQADAwEBAQMDAX9TeXN0ZW0uQ29sbGVjdGlvbnMuR2VuZXJpYy5MaXN0YDFbW1N5c3RlbS5TdHJpbmcsIG1zY29ybGliLCBWZXJzaW9uPTQuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49Yjc3YTVjNTYxOTM0ZTA4OV1df1N5c3RlbS5Db2xsZWN0aW9ucy5HZW5lcmljLkxpc3RgMVtbU3lzdGVtLlN0cmluZywgbXNjb3JsaWIsIFZlcnNpb249NC4wLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1iNzdhNWM1NjE5MzRlMDg5XV1/U3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuTGlzdGAxW1tTeXN0ZW0uU3RyaW5nLCBtc2NvcmxpYiwgVmVyc2lvbj00LjAuMC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODldXX9TeXN0ZW0uQ29sbGVjdGlvbnMuR2VuZXJpYy5MaXN0YDFbW1N5c3RlbS5TdHJpbmcsIG1zY29ybGliLCBWZXJzaW9uPTQuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49Yjc3YTVjNTYxOTM0ZTA4OV1dAgAAAAYDAAAAgQEjIERlc2NyaXB0aW9uDQoNCkluc2VydCBhIHVzZWZ1bCBkZXNjcmlwdGlvbiBmb3IgdGhlIMO+bmFtZcO+IHByb2plY3QgaGVyZS4NCg0KUmVtZW1iZXIsIGl0J3MgdGhlIGZpcnN0IHRoaW5nIGEgdmlzaXRvciB3aWxsIHNlZS4BCQQAAAAJBQAAAAYGAAAACVJFQURNRS5tZAYHAAAACVJFQURNRS5tZAYIAAAAAsO+CQkAAAAJCgAAAAQEAAAAf1N5c3RlbS5Db2xsZWN0aW9ucy5HZW5lcmljLkxpc3RgMVtbU3lzdGVtLlN0cmluZywgbXNjb3JsaWIsIFZlcnNpb249NC4wLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1iNzdhNWM1NjE5MzRlMDg5XV0DAAAABl9pdGVtcwVfc2l6ZQhfdmVyc2lvbgYAAAgICQsAAAABAAAAAQAAAAEFAAAABAAAAAkMAAAAAAAAAAAAAAABCQAAAAQAAAAJDAAAAAAAAAAAAAAAAQoAAAAEAAAACQwAAAAAAAAAAAAAABELAAAABAAAAAYNAAAABG5hbWUNAxEMAAAAAAAAAAs=</BA>
            </MS>
          </Obj>
        </LST>
      </Obj>
    </Props>
    <MS>
      <BA N="SerializationData">AAEAAAD/////AQAAAAAAAAAMAgAAAEpQU01vZHVsZURldmVsb3BtZW50LCBWZXJzaW9uPTIuMC4wLjAsIEN1bHR1cmU9bmV1dHJhbCwgUHVibGljS2V5VG9rZW49b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CBmcm9tICRjb21tYW5kTmFtZSIgew0KICAgICAgICAgICAgICAgICgkSGVscC5FeGFtcGxlcy5FeGFtcGxlLlJlbWFya3MgfCBTZWxlY3QtT2JqZWN0IC1GaXJzdCAxKS5UZXh0IHwgU2hvdWxkIC1Ob3QgLUJlTnVsbE9yRW1wdHkNCiAgICAgICAgICAgIH0NCiAgICAgICAgICAgICR0ZXN0aGVscGVycm9ycyArPSAxDQogICAgICAgIH0NCiAgICAgICAgDQogICAgICAgIGlmICgkdGVzdGhlbHBlcnJvcnMgLWVxIDApIHsNCiAgICAgICAgICAgIEl0ICJSYW4gc2lsZW50bHkgJHRlc3RoZWxwYWxsIHRlc3RzIiB7DQogICAgICAgICAgICAgICAgJHRlc3RoZWxwZXJyb3JzIHwgU2hvdWxkIC1iZSAwDQogICAgICAgICAgICB9DQogICAgICAgIH0NCiAgICAgICAgDQogICAgICAgICR0ZXN0cGFyYW1zYWxsID0gMA0KICAgICAgICAkdGVzdHBhcmFtc2Vycm9ycyA9IDANCiAgICAgICAgQ29udGV4dCAiVGVzdCBwYXJhbWV0ZXIgaGVscCBmb3IgJGNvbW1hbmROYW1lIiB7DQogICAgICAgICAgICANCiAgICAgICAgICAgICRDb21tb24gPSAnRGVidWcnLCAnRXJyb3JBY3Rpb24nLCAnRXJyb3JWYXJpYWJsZScsICdJbmZvcm1hdGlvbkFjdGlvbicsICdJbmZvcm1hdGlvblZhcmlhYmxlJywgJ091dEJ1ZmZlcicsICdPdXRWYXJpYWJsZScsDQogICAgICAgICAgICAnUGlwZWxpbmVWYXJpYWJsZScsICdWZXJib3NlJywgJ1dhcm5pbmdBY3Rpb24nLCAnV2FybmluZ1ZhcmlhYmxlJw0KICAgICAgICAgICAgDQogICAgICAgICAgICAkcGFyYW1ldGVycyA9ICRjb21tYW5kLlBhcmFtZXRlclNldHMuUGFyYW1ldGVycyB8IFNvcnQtT2JqZWN0IC1Qcm9wZXJ0eSBOYW1lIC1VbmlxdWUgfCBXaGVyZS1PYmplY3QgTmFtZSAtbm90aW4gJGNvbW1vbg0KICAgICAgICAgICAgJHBhcmFtZXRlck5hbWVzID0gJHBhcmFtZXRlcnMuTmFtZQ0KICAgICAgICAgICAgJEhlbHBQYXJhbWV0ZXJOYW1lcyA9ICRIZWxwLlBhcmFtZXRlcnMuUGFyYW1ldGVyLk5hbWUgfCBTb3J0LU9iamVjdCAtVW5pcXVlDQogICAgICAgICAgICBmb3JlYWNoICgkcGFyYW1ldGVyIGluICRwYXJhbWV0ZXJzKSB7DQogICAgICAgICAgICAgICAgJHBhcmFtZXRlck5hbWUgPSAkcGFyYW1ldGVyLk5hbWUNCiAgICAgICAgICAgICAgICAkcGFyYW1ldGVySGVscCA9ICRIZWxwLnBhcmFtZXRlcnMucGFyYW1ldGVyIHwgV2hlcmUtT2JqZWN0IE5hbWUgLUVRICRwYXJhbWV0ZXJOYW1lDQogICAgICAgICAgICAgICAgDQogICAgICAgICAgICAgICAgJHRlc3RwYXJhbXNhbGwgKz0gMQ0KICAgICAgICAgICAgICAgIGlmIChbU3RyaW5nXTo6SXNOdWxsT3JFbXB0eSgkcGFyYW1ldGVySGVscC5EZXNjcmlwdGlvbi5UZXh0KSkgew0KICAgICAgICAgICAgICAgICAgICAjIFNob3VsZCBiZSBhIGRlc2NyaXB0aW9uIGZvciBldmVyeSBwYXJhbWV0ZXINCiAgICAgICAgICAgICAgICAgICAgSXQgImdldHMgaGVscCBmb3IgcGFyYW1ldGVyOiAkcGFyYW1ldGVyTmFtZSA6IGluICRjb21tYW5kTmFtZSIgew0KICAgICAgICAgICAgICAgICAgICAgICAgJHBhcmFtZXRlckhlbHAuRGVzY3JpcHRpb24uVGV4dCB8IFNob3VsZCAtTm90IC1CZU51bGxPckVtcHR5DQogICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAgICAgJHRlc3RwYXJhbXNlcnJvcnMgKz0gMQ0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICANCiAgICAgICAgICAgICAgICAkdGVzdHBhcmFtc2FsbCArPSAxDQogICAgICAgICAgICAgICAgJGNvZGVNYW5kYXRvcnkgPSAkcGFyYW1ldGVyLklzTWFuZGF0b3J5LnRvU3RyaW5nKCkNCiAgICAgICAgICAgICAgICBpZiAoJHBhcmFtZXRlckhlbHAuUmVxdWlyZWQgLW5lICRjb2RlTWFuZGF0b3J5KSB7DQogICAgICAgICAgICAgICAgICAgICMgUmVxdWlyZWQgdmFsdWUgaW4gSGVscCBzaG91bGQgbWF0Y2ggSXNNYW5kYXRvcnkgcHJvcGVydHkgb2YgcGFyYW1ldGVyDQogICAgICAgICAgICAgICAgICAgIEl0ICJoZWxwIGZvciAkcGFyYW1ldGVyTmFtZSBwYXJhbWV0ZXIgaW4gJGNvbW1hbmROYW1lIGhhcyBjb3JyZWN0IE1hbmRhdG9yeSB2YWx1ZSIgew0KICAgICAgICAgICAgICAgICAgICAgICAgJHBhcmFtZXRlckhlbHAuUmVxdWlyZWQgfCBTaG91bGQgLUJlICRjb2RlTWFuZGF0b3J5DQogICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAgICAgJHRlc3RwYXJhbXNlcnJvcnMgKz0gMQ0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICANCiAgICAgICAgICAgICAgICBpZiAoJEhlbHBUZXN0U2tpcFBhcmFtZXRlclR5cGVbJGNvbW1hbmROYW1lXSAtY29udGFpbnMgJHBhcmFtZXRlck5hbWUpIHsgY29udGludWUgfQ0KICAgICAgICAgICAgICAgIA0KICAgICAgICAgICAgICAgICRjb2RlVHlwZSA9ICRwYXJhbWV0ZXIuUGFyYW1ldGVyVHlwZS5OYW1lDQogICAgICAgICAgICAgICAgDQogICAgICAgICAgICAgICAgJHRlc3RwYXJhbXNhbGwgKz0gMQ0KICAgICAgICAgICAgICAgIGlmICgkcGFyYW1ldGVyLlBhcmFtZXRlclR5cGUuSXNFbnVtKSB7DQogICAgICAgICAgICAgICAgICAgICMgRW51bWVyYXRpb25zIG9mdGVuIGhhdmUgaXNzdWVzIHdpdGggdGhlIHR5cGVuYW1lIG5vdCBiZWluZyByZWxpYWJseSBhdmFpbGFibGUNCiAgICAgICAgICAgICAgICAgICAgJG5hbWVzID0gJHBhcmFtZXRlci5QYXJhbWV0ZXJUeXBlOjpHZXROYW1lcygkcGFyYW1ldGVyLlBhcmFtZXRlclR5cGUpDQogICAgICAgICAgICAgICAgICAgIGlmICgkcGFyYW1ldGVySGVscC5wYXJhbWV0ZXJWYWx1ZUdyb3VwLnBhcmFtZXRlclZhbHVlIC1uZSAkbmFtZXMpIHsNCiAgICAgICAgICAgICAgICAgICAgICAgICMgUGFyYW1ldGVyIHR5cGUgaW4gSGVscCBzaG91bGQgbWF0Y2ggY29kZQ0KICAgICAgICAgICAgICAgICAgICAgICAgSXQgImhlbHAgZm9yICRjb21tYW5kTmFtZSBoYXMgY29ycmVjdCBwYXJhbWV0ZXIgdHlwZSBmb3IgJHBhcmFtZXRlck5hbWUiIHsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAkcGFyYW1ldGVySGVscC5wYXJhbWV0ZXJWYWx1ZUdyb3VwLnBhcmFtZXRlclZhbHVlIHwgU2hvdWxkIC1iZSAkbmFtZXMNCiAgICAgICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAgICAgICAgICR0ZXN0cGFyYW1zZXJyb3JzICs9IDENCiAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICBlbHNlaWYgKCRwYXJhbWV0ZXIuUGFyYW1ldGVyVHlwZS5GdWxsTmFtZSAtaW4gJEhlbHBUZXN0RW51bWVyYXRlZEFycmF5cykgew0KICAgICAgICAgICAgICAgICAgICAjIEVudW1lcmF0aW9ucyBvZnRlbiBoYXZlIGlzc3VlcyB3aXRoIHRoZSB0eXBlbmFtZSBub3QgYmVpbmcgcmVsaWFibHkgYXZhaWxhYmxlDQogICAgICAgICAgICAgICAgICAgICRuYW1lcyA9IFtFbnVtXTo6R2V0TmFtZXMoJHBhcmFtZXRlci5QYXJhbWV0ZXJUeXBlLkRlY2xhcmVkTWVtYmVyc1swXS5SZXR1cm5UeXBlKQ0KICAgICAgICAgICAgICAgICAgICBpZiAoJHBhcmFtZXRlckhlbHAucGFyYW1ldGVyVmFsdWVHcm91cC5wYXJhbWV0ZXJWYWx1ZSAtbmUgJG5hbWVzKSB7DQogICAgICAgICAgICAgICAgICAgICAgICAjIFBhcmFtZXRlciB0eXBlIGluIEhlbHAgc2hvdWxkIG1hdGNoIGNvZGUNCiAgICAgICAgICAgICAgICAgICAgICAgIEl0ICJoZWxwIGZvciAkY29tbWFuZE5hbWUgaGFzIGNvcnJlY3QgcGFyYW1ldGVyIHR5cGUgZm9yICRwYXJhbWV0ZXJOYW1lIiB7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgJHBhcmFtZXRlckhlbHAucGFyYW1ldGVyVmFsdWVHcm91cC5wYXJhbWV0ZXJWYWx1ZSB8IFNob3VsZCAtYmUgJG5hbWVzDQogICAgICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgICAgICAkdGVzdHBhcmFtc2Vycm9ycyArPSAxDQogICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgZWxzZSB7DQogICAgICAgICAgICAgICAgICAgICMgVG8gYXZvaWQgY2FsbGluZyBUcmltIG1ldGhvZCBvbiBhIG51bGwgb2JqZWN0Lg0KICAgICAgICAgICAgICAgICAgICAkaGVscFR5cGUgPSBpZiAoJHBhcmFtZXRlckhlbHAucGFyYW1ldGVyVmFsdWUpIHsgJHBhcmFtZXRlckhlbHAucGFyYW1ldGVyVmFsdWUuVHJpbSgpIH0NCiAgICAgICAgICAgICAgICAgICAgaWYgKCRoZWxwVHlwZSAtbmUgJGNvZGVUeXBlKSB7DQogICAgICAgICAgICAgICAgICAgICAgICAjIFBhcmFtZXRlciB0eXBlIGluIEhlbHAgc2hvdWxkIG1hdGNoIGNvZGUNCiAgICAgICAgICAgICAgICAgICAgICAgIEl0ICJoZWxwIGZvciAkY29tbWFuZE5hbWUgaGFzIGNvcnJlY3QgcGFyYW1ldGVyIHR5cGUgZm9yICRwYXJhbWV0ZXJOYW1lIiB7DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgJGhlbHBUeXBlIHwgU2hvdWxkIC1iZSAkY29kZVR5cGUNCiAgICAgICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAgICAgICAgICR0ZXN0cGFyYW1zZXJyb3JzICs9IDENCiAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgIH0NCiAgICAgICAgICAgIGZvcmVhY2ggKCRoZWxwUGFybSBpbiAkSGVscFBhcmFtZXRlck5hbWVzKSB7DQogICAgICAgICAgICAgICAgJHRlc3RwYXJhbXNhbGwgKz0gMQ0KICAgICAgICAgICAgICAgIGlmICgkaGVscFBhcm0gLW5vdGluICRwYXJhbWV0ZXJOYW1lcykgew0KICAgICAgICAgICAgICAgICAgICAjIFNob3VsZG4ndCBmaW5kIGV4dHJhIHBhcmFtZXRlcnMgaW4gaGVscC4NCiAgICAgICAgICAgICAgICAgICAgSXQgImZpbmRzIGhlbHAgcGFyYW1ldGVyIGluIGNvZGU6ICRoZWxwUGFybSIgew0KICAgICAgICAgICAgICAgICAgICAgICAgJGhlbHBQYXJtIC1pbiAkcGFyYW1ldGVyTmFtZXMgfCBTaG91bGQgLUJlICR0cnVlDQogICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAgICAgJHRlc3RwYXJhbXNlcnJvcnMgKz0gMQ0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgIH0NCiAgICAgICAgICAgIGlmICgkdGVzdHBhcmFtc2Vycm9ycyAtZXEgMCkgew0KICAgICAgICAgICAgICAgIEl0ICJSYW4gc2lsZW50bHkgJHRlc3RwYXJhbXNh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