Commit Graph

15 Commits (dcf4d7e6e5d86c518df5f91cc236b23b30fcdac0)

Author SHA1 Message Date
Andrea Scarpino 7f38638575 win_unzip: Use absolute path for src and dest
win_unzip fails to extract files when either src or dest contains
complex paths such as "..\..\" or "C:\\Program Files" (double slashes).
Fix this by fetching absolute path of both before invoking CopyHere
method.
9 years ago
Andrea Scarpino 7c99a60f2b win_unzip: overwrite any existing file 9 years ago
Corwin Brown 228b8707b7 Added Error messages to the Try/Catch blocks 9 years ago
Corwin Brown c4b4c412a2 Switching to Get-AnsibleParam
Switching to Win_Unzip
9 years ago
Corwin Brown f8e1600444 Made Powershell Strict Complient 9 years ago
Phil 311d73620b use convertto-bool for rm and recurse params 10 years ago
Phil 03ce40a62e removes restart functionality, and added creates param for idempotency 10 years ago
Phil 92744ef558 fixes typo 10 years ago
Phil 623a29cc0e update to not auto-install PSCX
- will use built-in powershell method instead for .zip files
- added example for installing pscx as a pretask
10 years ago
schwartzmx c6d5680967 fixes unzip bug for zip files, thanks to @ryanwalls
- also fixes possible import errors, and switches to use Start-Process on install to correctly wait
10 years ago
schwartzmx 99927a5c54 updates docs, adds unzip func for bz2 gz tar msu¬
- Added functionality for unzipping/decompressing bzip gzip tar exe (self extracting) and msu (ms update) files to coincide with added functionality to win_zip¬
  - Added functionality requires PSCX (it will be installed if it can't be imported)¬¬
    - First try with chocolatey, if fail, direct install from msi
- Added recurse param to recursively unzip files from a compressed folder¬
  - useful for example: unzipping a Log.zip file that contains a load of .gz files¬
    - setting rm param to true will remove all compressed files after decompressing¬
10 years ago
Phil Schwartz a95fabeeb2 fixes rm & restart param checks 10 years ago
Phil Schwartz 61d3f23c03 edit check for extension to use library func 10 years ago
Phil Schwartz fd12a5cc84 specifies creation of directory if !exists
- added try catch for creation of directory, in case of an invalid path specified
- added specification to documentation
10 years ago
Phil Schwartz a21e23846d init commit 10 years ago