Hi all,
I'm trying to write a VBScript that will run through HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall searching for any key whose DisplayName value contains a certain string. If it matches, I would need it to go into that key, read the UninstallString and run it.
I tried enumerating the keys in HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall into some sort of collection then delving into each key with For...Next loops looking for UninstallString's, but for some reason it really didn't work out.
Could someone tell me if I'm going about it all wrong or help me out with a bit of code?
Thanks,
Chris
I'm trying to write a VBScript that will run through HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall searching for any key whose DisplayName value contains a certain string. If it matches, I would need it to go into that key, read the UninstallString and run it.
I tried enumerating the keys in HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall into some sort of collection then delving into each key with For...Next loops looking for UninstallString's, but for some reason it really didn't work out.
Could someone tell me if I'm going about it all wrong or help me out with a bit of code?
Thanks,
Chris
