44)
55
66$ModuleName = ' SqlServer-Version-Management' ;
7- $ModuleVersion = ' 2.1.186 ' ;
7+ $ModuleVersion = ' 2.1.187 ' ;
88$ModuleFiles = @ (
99 @ {
1010 FileName = ' SqlServer-Version-Management\SqlServer-Version-Management.psd1' ;
@@ -15,7 +15,7 @@ $ModuleFiles = @(
1515 " ModuleToProcess = @('SqlServer-Version-Management.psm1')" ,
1616 " " ,
1717 " # Version below is automatically incremented on build" ,
18- " ModuleVersion = `" 2.1.186 `" " ,
18+ " ModuleVersion = `" 2.1.187 `" " ,
1919 " " ,
2020 " GUID = 'dd03b53d-575a-4056-ae08-e6dfea3384ea'" ,
2121 " " ,
@@ -945,19 +945,18 @@ $ModuleFiles = @(
945945 " " ,
946946 " function ExtractArchiveBy7zMini([string] `$ fromArchive, [string] `$ toDirectory) {" ,
947947 " New-Item -Path `"`$ (`$ toDirectory)`" -ItemType Directory -Force -EA SilentlyContinue | Out-Null" ,
948- " pushd `"`$ (`$ toDirectory)`" " ,
949948 " `$ mini7z = `"`$ (Get-Mini7z-Exe-FullPath-for-Windows)`" " ,
950- " # `" -o```"`$ plainFolder```"`" " ,
951- " `$ commandLine=@(`" x`" , `" -y`" , `"```"`$ fromArchive```"`" )" ,
949+ " `$ commandLine=@(`" x`" , `" -y`" , `" -o```"`$ (`$ toDirectory)```"`" , `"```"`$ fromArchive```"`" )" ,
952950 " `$ singleCore7z=@(); `$ memInfo = Get-Memory-Info; `$ procCount = ([Environment]::ProcessorCount); if (`$ memInfo -and (`$ memInfo.Free) -and (`$ memInfo.Free -lt (640*`$ procCount))) { `$ singleCore7z=@(`" -mmt=1`" ) }" ,
953951 " `$ commandLine += `$ singleCore7z" ,
954- " Troubleshoot-Info `" fromArchive : '`$ fromArchive '; commandLine: '`$ commandLine'`" " ,
952+ " Troubleshoot-Info `" 7z-mini : '`$ mini7z '; commandLine: '`$ commandLine' (' `$ fromArchive' ---> ' `$ toDirectory') `" " ,
955953 " # ok on pwsh and powersheel" ,
956- " & `"`$ mini7z`" @commandLine" ,
954+ " & `"`$ mini7z`" @commandLine > `$ null " ,
957955 " `$ isExtractOk = `$ ?;" ,
958956 " return `$ isExtractOk;" ,
959957 " }" ,
960958 " " ,
959+ " " ,
961960 " function ExtractArchiveByDefault7zFull([string] `$ fromArchive, [string] `$ toDirectory, `$ extractCommand = `" x`" ) {" ,
962961 " New-Item -Path `"`$ (`$ toDirectory)`" -ItemType Directory -Force -EA SilentlyContinue | Out-Null" ,
963962 " # pushd `"`$ (`$ toDirectory)`" " ,
0 commit comments