Monday, March 29, 2010

How can I write an installer for filter...

Hi,



My filter works with several files.

I should take some files in different folders (Actions, Filters, Styles, Textures...)

Which installer can I use? Which installer knows the Photoshop directory?



Thnx for any help

Felix
How can I write an installer for filter...
For windows systems I'd recomend the inno setup compiler (free):

http://www.jrsoftware.org/isinfo.php

It's quite easy to use, you should be able to ''click-together'' a setup

in no time. The paht to photoshop-plugins can be obtained through the registry (Inno supports this), its stored under :

''HKEY_LOCAL_MACHINE\SOFTWARE\ADOBE\PHOSTOSHOP\10.0\PLUGINPATH''
How can I write an installer for filter...
thnx

Opp,

If somebody use CS2 or CS1?



Is this PHOSTOSHOP\9.0\PLUGINPATH..., PHOSTOSHOP\8.0\PLUGINPATH'' ???

You can also use this to find the photoshop executable:



RegQueryStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Photoshp.exe', 'Path', sPath);

(''HKEY_LOCA_MACHINE\SOftware\Microsoft\Windows\CurrentVersion\App Paths\Photoshop.exe'')



The problem with the plugin path is that its named differently depending on your os language, e.g. ''Zusatzmodule'' in german. Now, since you do not know wich version is installed, you can't query the reg-key I stated first and without it you can never be sure how the plugin folder is named on the target platform.

Now either you try a reg-key for each version 1.0 to 10.0 until you get a valid entry or you can use the reg-key from above and put your plugin directly into photoshops root folder - it will be found there too. Of course that's a bit messy, but you don't have to worry about plugin-folder name and/or ps version that way.

No comments:

Post a Comment