I'm creating a installer for my Photoshop plugins, so I need to find out Photoshop installation directory. I did this by looking for registry 'HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Photoshop\', but I found that CS5.1 will override the CS5 registry entries - they are both in ’HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Photoshop\12.0‘
So how can I distinguish CS5 and CS5.1 in the registry? Or how can I get the correct installation direcotry for both CS5.1 and CS5?
You can't on Windows. On Mac they did the right thing and made a seperate .paths files. On Windows they just tromped on the CS5 registry entries with the CS5.1 entries, even though it's a completely seperate application installation with its own plugin path. Not too cool.
Although, it only matters if you encounter the probably rare corner case where a user has both CS5 and CS5.1 installed AND wants to put the plugins into the CS5 plugin path. We just punted and can only install into CS5.1 in that case, unless the user manually selects the installation location. It hasn't generated any significant support issues for us that I know of.
Yes, but you won't find that in the *.paths file. You'll have to get into their Photoshop preferences file and parse it out. Probably not recommended. Even if they set an external plugins folder, Photoshop still also looks in the default location for plug ins no matter what.
In other words the user can't really change the plug ins folder path, they can just add an extra one.