Powershell - Creating and unpacking a zip (archieve file)
Here are some way to create an archive
Compress-Archive -Path .\bin\$targetBuild\* -DestinationPath .\$serviceName.zip
To add to this archive, use the -update parameter
Compress-Archive -update -Path .\deployControlService.ps1 -DestinationPath
.\$serviceName.zip
To unzip your achieve, use the following command
Expand-Archive -Path .\ACC.IDS.ControlService.zip -DestinationPath $servicePath
Comments