Error Script powershell
-
Hello,
I want to create a scripting powershell to install programe 7zip for example :
Script in ZIP i have file install.xex and script PS1
My scrip ps1 is :
.\7z2409-x64.exe /S
:Associate
assoc .7z=7-Zip.7z
assoc .bz2=7-Zip.bz2
assoc .gz=7-Zip.gz
assoc .tar=7-Zip.tar
assoc .tgz=7-Zip.tgz
assoc .zip=7-Zip.zipftype 7-Zip.7z=“C:\Program Files\7-Zip\7zFM.exe” “%1”
ftype 7-Zip.bz2=“C:\Program Files\7-Zip\7zFM.exe” “%1”
ftype 7-Zip.gz=“C:\Program Files\7-Zip\7zFM.exe” “%1”
ftype 7-Zip.tar=“C:\Program Files\7-Zip\7zFM.exe” “%1”
ftype 7-Zip.tgz=“C:\Program Files\7-Zip\7zFM.exe” “%1”
ftype 7-Zip.zip=“C:\Program Files\7-Zip\7zFM.exe” “%1”I have this error il fog.log:
20/12/2024 11:50:08 Client-Info Client Version: 0.13.0
20/12/2024 11:50:08 Client-Info Client OS: Windows
20/12/2024 11:50:08 Client-Info Server Version: 1.5.10.1629
20/12/2024 11:50:08 Middleware::Response Success
20/12/2024 11:50:08 SnapinClient Running snapin 0.7-ZIP-2409
20/12/2024 11:50:08 Middleware::Communication Download: http://10.176.227.217/fog/service/snapins.file.php?mac=08:00:27:98:62:07&taskid=12
20/12/2024 11:50:08 SnapinClient C:\Program Files (x86)\FOG\tmp\0-7ZIP-2409.zip
20/12/2024 11:50:08 SnapinClient Processing SnapinPack 0-7ZIP-2409.zip
20/12/2024 11:50:08 SnapinClient Extracting SnapinPack
20/12/2024 11:50:08 Bus Emmiting message on channel: Notification
20/12/2024 11:50:08 SnapinClient Starting snapin
20/12/2024 11:50:08 SnapinClient Snapin finished
20/12/2024 11:50:08 SnapinClient Return Code: -196608
20/12/2024 11:50:08 Bus Emmiting message on channel: Notification
20/12/2024 11:50:08 Middleware::Communication URL: http://10.176.227.217/fog/service/snapins.checkin.php?taskid=12&exitcode=-196608&mac=08:00:27:98:62:07&newService&jsondo you have an idea?
Thank for your help