I'm running this command in a Winbatch section :
Code: Alles auswählen
comment "Uninstall program found, starting uninstall"
Winbatch_uninstall /RunElevated
set $tmpExit$ = getLastExitCode
sub_check_exitcode
[Winbatch_uninstall]
wmic /OUTPUT:c:\tmp\wmic.log product where name="IBM Content Navigator for Microsoft Office" call uninstall
It get a error code 0 even though wmic exit with a code 1603
- wmic log
opsi log
Code: Alles auswählen
Executing (\\LAP-0966\ROOT\CIMV2:Win32_Product.IdentifyingNumber="{A3A27FE7-626C-4B49-B620-10C4324554B3}",Name="IBM Content Navigator for Microsoft Office",Version="2.0.3.4")->Uninstall() Method execution successful. Out Parameters: instance of __PARAMETERS { ReturnValue = 1603; };
Code: Alles auswählen
Call "wmic /OUTPUT:c:\tmp\wmic.log product where name="IBM Content Navigator for Microsoft Office" call uninstall" Waiting until the called process is finished Start process elevated ExitCode 0Executed process "wmic /OUTPUT:c:\tmp\wmic.log product where name="IBM Content Navigator for Microsoft Office" call uninstall" Set$tmpExit$ = getLastExitCode The value of the variable "$tmpExit$" is now: "0"
OS is windows 10 1607 LTSB (build 14393.0)
opsi agent 4.0.7.24-2
opsi version
Code: Alles auswählen
opsi-atftp 0.7.dfsg-7 advanced TFTP client
opsi-atftpd 0.7.dfsg-7 advanced TFTP server - opsi version with pcre, fifo and max-blksize patches
opsi-configed 4.0.7.5.22-2 OPSI config editor
opsi-depotserver 4.0.7.3-2 opsi depotserver configuration package
opsi-linux-bootimage 20170720-1 opsi bootimage for netboot tasks.
opsi-utils 4.0.7.18-7 utilites for working with opsi.
opsiconfd 4.0.7.14-1 opsi configuration service
opsipxeconfd 4.0.7.9-1 opsi pxe configuration daemon
python-opsi 4.0.7.52-1 opsi python library