Johan
You can use the following to enumerate the uninstall info, this will create: ProgInfo.ini
An ini-file containing the uninstall string for all software installed (Known by Windows)
Can be used on Win95 - XP
If your inifile contains enties like:
{00170806-79E1-11D8-E60F-006097A988F7}
These are applications that are installed using the windows installer. You should use the windows installer to uninstall these application.
If the application dosn't contain a QuietUninstallString, you can try adding the parameters:
-a
/a
-s
/s
-u
/u
To the UninstallString, try them out, one by one to see if any of them works.
code:
$WsInfoFile = %TEMP% + '\ProgInfo.ini'
$RootKey = "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"
$Index = 0
$Key = EnumKey($RootKey,$Index)
While @Error = 0
$RC = EnumValue($RootKey + $Key,1)
If @Error = 0
$Value = ReadValue($RootKey + $Key,"QuietUninstallString")
If $Value = ""
$Value = ReadValue($RootKey + $Key,"UninstallString")
If $Value = ""
$Value = $Key
EndIf
EndIf
$RC = WriteProfileString($WsInfoFile,"UnInstInfo",$Key,$Value)
EndIf
$Index = $Index + 1
$Key = EnumKey($RootKey,$Index)
Loop
-Erik