The value returned is UNKNOWN$TYPE. I have searched but can't seem to find a solution to this.
I would like to use this list to populate a combo in my installer.
Here is the IA code:
I can certainly replicate the problem you are having. The only thing I can say for certain, is that if I create a new key value as type REG_SZ then it'll accept anything I put into it but if I create it as REG_MULTI_SZ I get the same error as you. That makes me wonder then if you can't actually read such a key type in IA?
EDIT: I think, only think, that you might be able to utilise the Call DLL Function statement and drill into the advap32.dll. You might be able to call the RegOpenKeyEx and RegQueryValueValueEx functions to get the REG_MULTI_SZ value. Just an idea...
Peter. Smartly dressed, he still resembles an unmade bed.
InstallAware MVP
Will that be an IA plug-in? If so, would you be ok to share the source code for it? The reason I ask is that I'm no C++ developer. I did last use Delphi back in the early 1990's when it was version 2.0 but I'm more at ease with Pascal than C++.
I'd like to try and find a working Delphi plug-in sample that I could use as a template for some plug-ins I have in mind.
Peter. Smartly dressed, he still resembles an unmade bed.
InstallAware MVP
I'll pop you through some source when I've done it.
Just send me a PM with your email address.
Cheers,
Drew
Drew, I'm not sure if my PM got through as I got no confirmation from the forum software that it was successfully sent to you. It might but I'll let you confirm.
Peter. Smartly dressed, he still resembles an unmade bed.
InstallAware MVP