Wrong path delimiters in archive (non-UNC)
The "compress-archive" module stores path delimiters in non UNC format (backslashes instead of slashes) which differs from the builtin zipper in Win10 (Send to Zip-Archive).
This leads to unrecognized files on decompression by i.e. Microsoft Dynamics NAV 2016 (decrompression of an imported zipfile "ControlAddIn.Zip")
If you build the same archive with the Win10-Zipper, the files are recognized correctly.
Used PS-Version : 5.1 build 18362 rev 145
Win10-Pro 64bit version: 10.0.18362.267
Command executed from Visual Studio:
powershell Compress-Archive -Path ".\ControlAddIn\AddIn\*" -CompressionLevel Fastest -DestinationPath "$(SolutionDir)ControlAddIn.zip"
I cannot append the two Zip-Archives to let you compare these files by yourself therefore I post an image of the differences ("PS-Compress-Archive Bug.jpg")
- "ControlAddIn.zip" was created with powershell
- "ControlAddIn_M.zip" was created with Send to Zip-Archive in Windows Explorer