to clarify what I mean:
Code:
$=createobject("windowsinstaller.installer")
$bk="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"
for each $product in $.products
"MSI key: " $product ?
"Soft name: " readvalue($bk+$product,"displayname") ?
"productInfo: " $.productinfo($product,"PackageName") ?
?
next
get $
k, there you got all msi's, right?
so here is msi installed udf:
Code:
function msiInstalled(optional $msi)
$msiInstalled=0
$=createobject("windowsinstaller.installer")
for each $product in $.products
if $msi = $.productinfo($product,"PackageName")
$msiInstalled=1
endif
next
endfunction
so, to see if netframework is installed:
Code:
msiInstalled("netFX.msi") ?
function msiInstalled(optional $msi)
$msiInstalled=0
$=createobject("windowsinstaller.installer")
for each $product in $.products
if $msi = $.productinfo($product,"PackageName")
$msiInstalled=1
endif
next
endfunction
get $