uninstallation routine to use windows wmic
I really like your opsi-package for Java. But maybe it is an easier way for the uninstallation routine to use windows wmic function. So, you don't need to handle construction of complex msi-strings and it would be much easier and shorter.
It would then look like:
uninstall.ins
...
DefVar local_wmic
DefVar local_wmic_actionstring
delsub.ins
...
Set local_wmic
= "wmic.exe"
Set local_wmic_actionstring
= EscapeString: product where "name like 'Java%%'" call uninstall /nointeractive
comment "Universal uninstaller via wmic" DosInAnIcon_uninstall Sub_check_exitcode
[DosInAnIcon_uninstall]
"local_wmic
" local_wmic_actionstring
This should be the whole code to uninstall all versions of Java (JDK and JRE).
Best regards, Andreas