cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Registry "Search and Replace"

Is is possible to create an .msi that will search the entire registry for a specific key and then replace all existences of that key with a new value?

Thanks,

Bryan
(5) Replies
Can you elaborate on the kind of key you want to replace? Is it in the form of "absolute path", e.g., HKLM\SOFTWARE\YourSoftware\YourKey, or just a string, ToBeReplaced? In either case, a custom action, most likely in the form of DLL, will be required. The later case will be more involved.
TsungH,

What I want to do is search for value XXX.XXX, if value XXX.XXX exist then replace it with ZZZ.ZZZ everywhere its found in the registry.

I believe this value will exist in a "string"...

Bryan
MSI does not natively support "find and replace all" operation. As far as I know in VBScript, there isn't a method to do the same either. The next thing I will suggest is to look into a more full-fledged language like InstallScript or VC++.
TsungH,

You wouldn't happen to have an installscript that would perform a search and replace all of the registry would you? 😉

Thanks for your help,

Bryan
Unfortunately, I don't.