I have a SolidWorks installation that I’m trying to push via PSADT… I have the files zipped because they are huge (5gb zipped ~ 10 gb unzipped)…
When I try to use the built in function:
Expand-Archive -Path “$dirFiles\SOLIDWORKS 2022 SP3.1.zip” -DestinationPath “C:\SolidWorksSetup” -Force -Verbose *>&1 | Out-String | write-log
The files seem to expand correctly but the install fails every time… If I manually unzip the archive with 7Zip and then run the install, it works…
So, I tried using 7Zip to expand it…
`Execute-Process -FilePath “C:\Program Files\7-Zip\7z.exe” -Parameters “x “”$dirFiles\SOLIDWORKS 2022 SP3.1.zip”" -OC:\SolidWorksSetup"
it appeared to be unzipping as the process was running and PSADT was waiting for it to unzip but I waited over 2 hours and constantly monitored the disk space to see if it was extracting and it appeared to be hung or something…
So I tried piping it to a log:
Execute-Process -FilePath "C:\Program Files\7-Zip\7z.exe" -Parameters "x ""$dirFiles\SOLIDWORKS 2022 SP3.1.zip"" -OC:\SolidWorksSetup -bb > C:\Windows\Logs\Software\SolidWorks7ZipLog.log"
Which works when I run it via CMD but when I run it via PSADT it doesn’t wait and flies right past the extract and goes to try and run the install but of course fails because the files aren’t there…
So then I created an EXE of the files with 7Zip and run this:
Execute-Process -FilePath "$dirFiles\SOLIDWORKS 2022 SP3.1.exe" -Parameters "-oc:\SolidWorksSetup -y"
This actually works, and the install succeeds after the extract… However, it shows the 7Zip extract window to the user even though I have the deploy type as silent…
Anyone have any ideas how I can’t do this? It shouldn’t be this hard I wouldn’t think…Thanks