How to get the \filter directory from registry (or other) during installation of the plugin

Hello
I made a script to install the plugin because it needs some libraries to be installed as well, but during the installation, the filter directory isn't defined (it isn't the same for each platform or language)
for example my filter folder is :
E:\Program_Files\Photoshop CS2\Modules externes\Filtres
how do i get this filter directory from registry (or with another way)
thanks a lot
Jeff

sorry i made a little mistake (didn't poste the updated version of my code)
here is the right code:
[Code]
var
  maxnb8bf : Integer;
  maxDirectory:        String;
  nb8bf : Integer;
  PreviousDirectory:        String;
procedure ProcessDirectory (RootDir: String; Progress: Boolean);
var
NewRoot:        String;
FilePath:        String;
FindRec:        TFindRec;
n1 : Integer;
n2 : Integer;
begin
NewRoot := AddBackSlash (RootDir);
if FindFirst (NewRoot + '*', FindRec) then
begin
try
repeat
if (FindRec.Name <> '.') AND (FindRec.Name <> '..') then
begin
FilePath := NewRoot + FindRec.Name;
if FindRec.Attributes AND FILE_ATTRIBUTE_DIRECTORY > 0 then
ProcessDirectory (FilePath, Progress)
else
begin
        if (NewRoot <> PreviousDirectory) THEN
        begin;
           if (maxnb8bf < nb8bf) THEN
           begin;
               maxnb8bf := nb8bf;
               maxDirectory := PreviousDirectory;
           end;
           nb8bf := 0;
        end;
        n1 := Pos('.8bf', FilePath);
        n2 := Pos('.8BF', FilePath);
        if ((n1 > 0) or (n2 > 0)) THEN
        begin;
           nb8bf := nb8bf + 1;
        end;
        PreviousDirectory := NewRoot;
end;
end;
until NOT FindNext (FindRec);
finally
FindClose(FindRec);
end;
end;
end;
function InitializeSetup(): Boolean;
var
  V: string;
begin
  if RegQueryStringValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Photoshop.exe', 'Path', V) then
    MsgBox('Value is "' + V + '"', mbInformation, MB_OK);
  Result := TRUE;
   maxDirectory := '';
   nb8bf := 0;
   PreviousDirectory := '';
   maxnb8bf := 0;
   ProcessDirectory (V, true);
   //if (maxDirectory <> '') THEN
   // begin;
   //      MsgBox('Value is "' + maxDirectory + '"', mbInformation, MB_OK);
   // end;
end;
function NewTargetDir(Param: String): String;
begin
  Result := maxDirectory;
end;
Regards

Similar Messages

  • For some reason the system is telling me my birth date is wrong when it's not and it won't let me proceed to reset my password. Can someone tell me how to get a "real" person from tech on line?

    For some reason the system is telling me my birth date is wrong when it's not and it won't let me proceed to reset my password. Can someone tell me how to get a "real" person from tech on line?

    contact itunes support

  • How to get  current working directory of the ftp server,in java application

    Hi All,
    I?m FTP?ing the file using java.net.url.
    Here is the snippet of the code:
    public void ftpFile()throws ChrsException
    try
    System.out.println("FTPing the file '"+localfile+"'");
    OutputStream os = openUploadStream(targetfile);
    FileInputStream is = new FileInputStream(localfile);
    byte[] buf = new byte[16384];
    int noOfBytesRead;
    while (true)
    //Read the data from the source File into buf
    noOfBytesRead = is.read(buf);
    if (noOfBytesRead <= 0)
    break;
    //Writes the data present in the buf to the target file
    os.write(buf, 0, noOfBytesRead);
    os.close();
    is.close();
    close();
    System.out.println ("The file '"+localfile+"' is Sucessfully FTP'd to '"+targetfile+"'");
    catch (MalformedURLException malExcp)
    System.out.println ("Invalid URL. Error in FTP'ing the file: \""+localfile+"\"");
    catch(IOException ioe)
    System.out.println ("Error in FTP'ing the file: \""+localfile+"\"");
    private OutputStream openUploadStream(String targetfile) throws MalformedURLException, IOException
    URL url = null;
    //Creates a URL object with FTP protocol
    if (user == null)
    url = new URL("ftp://" + host + "/" + targetfile + ";type=i");
    else
    url = new URL("ftp://" + user + ":" + password + "@" + host + "/" + targetfile + ";type=i");
    urlc = url.openConnection();
    //Get the OutputStream that writes to this connection.
    OutputStream os = urlc.getOutputStream();
    return os;
    Now I need to find what the current directory is when the user logs in with username and password on to the FTP server in java.
    Thanks in Advance.

    as soon as user logs in he is taken to the directory
    "ftproot/pub/abc".
    now If I execute pwd command , is hould be able to
    get to know tht user is under "ftproot/pub/abc"Three respected posters, well two plus me ;-), have just told you otherwise. The information about the current directory is (a) secure and (b) useless to the user, as he can't do anything with it. The user doesn't want to know that at all and you shouldn't try to tell him. And in any case FTP doesn't support it, again for security reasons, so you can't do it.
    Just accept it.

  • HT201269 I just bought a 5S Iphone and will be retiring my Iphone 4.   The music copied from Itunes to my new phone, but the apps did not.  How do I get the apps to copy to my new Iphone?

    I just bought a 5S Iphone and will be retiring my Iphone 4.   The music copied from Itunes to my new phone, but the apps did not.  How do I get the apps to copy to my new Iphone?

    The same way they were put on the previous iPhone, sync them.
    Alternatively, read the article from which the question was posted and follow the explicit instructions provided.

  • How to find the tomcat path from registry?

    Hi,
    How can I find the tomcat path from registry?
    please tell me.
    Thanks
    Gaurav Agrawal

    gauravjlj wrote:
    listen,
    I'm about to create a exe which will do these things.....
    1. first install java
    2. install tomcat
    3. install mysql
    4. deploy my web application with out use of tomcat manager
    first three steps I have done with the help of installer maker. let assume that my tomcat has been installed. but now please tell me how can I deploy my web application.
    that's why I need the tomcat path.
    please tell me.Well, if you've just installed Tomcat you do know where it is so what's the problem? Why not, in fact, include your application in the tomcat directories as you install them? That's all there is to installing tomcat, installing the directories, setting %JAVA_HOME% and (possibly) running the service.bat file.

  • I can't get anything to print from my ipad mini since I got the new update.  Does anyone know how to remedy this situation?   Thanks.

    I can't get anything to print from my ipad mini since I did the software update.  It recognizes the printer, but nothing happens when I tap print.  Can anyone help with this situation?  Thanks!

    Hi Justinescc,
    The bottom of this article contains some steps you can try if you're unable to AirPrint:
    AirPrint Basics
    http://support.apple.com/kb/HT4356
    Cheers,
    - Ari

  • Clear the Filter Criteria from java code programmatically

    Hi All,
    I am using jdev version 11.1.1.6.0.
    I do have ADF table for which I have added filter to each column .
    I created table using java class data control.
    Filter is working Fine .
    My use case is-
    When I click on search button data is populated in table.
    When anybody enters filter value in column suppose product and hit enter ,it filters data.
    if he clears and do not hit enter key and search again then it does not show all data it only show filtered data.
    So how can I programmatically clear all filters so on click of  search it will show all the values not filtered values.
    I have not used default Filter Behavior.
    Please check below code for reference
      <af:table value="#{bindings.AfMyAccOrderStatusHistorySearchVO.rangeSet}"
                                  var="row"
                                  rows="#{bindings.AfMyAccOrderStatusHistorySearchVO.rangeSize}"
                                  emptyText="#{bindings.AfMyAccOrderStatusHistorySearchVO.viewable ? 'No data to display.' : 'Access Denied.'}"
                                  fetchSize="#{bindings.AfMyAccOrderStatusHistorySearchVO.rangeSize}"
                                  rowBandingInterval="0" id="tblStatusHistoryList"
                                  autoHeightRows="#{bindings.AfMyAccOrderStatusHistorySearchVO.rangeSize}"
                                  rowSelection="single"      
                                  width="100%"
                                  partialTriggers="::cb5 ::cb8 ::cb1 ::cb2"
                                  filterModel="#{bindings.AfMyAccOrderStatusHistorySearchVO1Query.queryDescriptor}"
                                  queryListener="#{bindings.AfMyAccOrderStatusHistorySearchVO1Query.processQuery}"
                                  filterVisible="true" varStatus="vs"
                                  binding="#{AfMyAccOrderStatusHistoryAction.orderStatusHistorySearchList}">
    <af:column headerText="#{alfaprojectBundle['ordstatushistory.column.invoiceDate']}"
                                      width="70"
                                      sortProperty="invoiceDate"
                                      sortable="true" filterable="true"
                                      id="c7" filterFeatures="caseInsensitive">
                              <af:outputText value="#{row.invoiceDate}" id="ot16"/>
                            </af:column>                     
                            <af:column headerText="#{alfaprojectBundle['ordstatushistory.column.soldto']}"
                                       width="100"   
                                       sortProperty="soldTo"
                                       sortable="true" filterable="true"
                                       id="c14" filterFeatures="caseInsensitive">
                              <af:outputText value="#{row.soldTo}"
                                             visible="#{row.visibilityIsOrdrFirstItem}"
                                             id="ot23"/>
                            </af:column>
    So how to clear all filter values from java code.

    I can't get the example "Programmatically Manipulating a Table's QBE Filter Fields"
    Where is it ?
    https://smuenchadf.samplecode.oracle.com/samples/ClearTableColumnFilterFields.zip
    Thks

  • How to get warranty service claim from nokia c5-03...

    how to get warranty service claim from nokia c5-03 in india because i have problem with nokia c5-03 I Purchase 2 week ago a new nokia c5-03 but from day 1 i facing same problem like 1) app close itself 2) internet browse close if any thing is downloading or downloading over 3) memory full always then i should reboot the phone then it work. 4) ovi map is open it shows memory full close the app So kindly help me how to get warranty service claim from nokia c5-03 in india i am unhappy with nokia c5-03
    Solved!
    Go to Solution.

    i updated software also but the same problem cont... I want to know that nokia will give back money or exchange for other new mobile

  • How to get RMAN catalog information from Target database?

    Hi,
    How to get RMAN catalog information from Target database because i don't know about catalog database? is it possible?
    Thanks

    If you run RMAN backups of a target database using a Catalog schema in another database, the target is not aware of the catalog.
    The RMAN backup script would have the connection identifier for the Catalog.
    Hemant K Chitale

  • How to get name of table from front end

    Hi,
    How to get name of table from front end in EBS 11i?
    thanx
    Ashish

    Hi
    Sandeep is correct. The "Help"/"Record History" will give you the table/view name, but sometimes this particular menu function give me a "Record History is not available here." error message.
    I then use the following menu functions (this will also give you additional information, like column details).
    1) Open Forms
    2) Click on Help/Diagnostics/Examine (*you might have to enter the APPS password at this point)
    3) Change "Block" to "System"
    4) Change "Field" to "Last_query"
    The system will populate the "Value" field with the query that was executed in order to populate the form.
    Regards
    Frank

  • HT1338 how could iI upgrade my OS from Mac OS 10.5.8 to the Latest version Mountain Lion

    how could iI upgrade my OS from Mac OS 10.5.8 to the Latest version Mountain Lion

    Hello,
    You need to get 10.6 & update to 10.6.8 first to be able to buy it from the App Store & download it.
    Snow Leopard/10.6.x Requirements...
    General requirements
       * Mac computer with an Intel processor
        * 1GB of memory (I say 4GB at least, more if you can afford it)
        * 5GB of available disk space (I say 30GB at least)
        * DVD drive for installation
        * Some features require a compatible Internet service provider; fees may apply.
        * Some features require Apple’s MobileMe service; fees and terms apply.
    Which apps work with Mac OS X 10.6?...
    http://snowleopard.wikidot.com/
    It's been pulled from the online store, so you have to call Apple to buy it, last I heard, but quick, call before it's gone!
    Call Apple 1-800-MY-APPLE
    You have to get 10.6.8 first to go even higher to 10.7 or 10.8

  • HT1937 how to get back 3g option from lte on iphone 5s

    how to get back 3g option from lte on iphone 5s

    You don't. The presence of that option is at the discretion of your carrier.

  • How to get second maximum salary from employee table(sql query)

    how to get second maximum salary from employee table(sql query)

    dude there is no matter of structure .........that user already said its from employee table ...............its basic table in sql and there is no need to specify the table structure
    .........i think u got my point I think you are the one who didn't understand Sarma's point.
    Give a man a fish and you feed him once. Teach a man how to fish and you feed him a life long.
    >
    and the query is
    select max(sal) from emp where sal<(select max(sal)
    from emp);
    this will give the 2nd max salary from the emp tableBtw: You solution is bad, because it needs to scan and sort the table emp twice. And a better solution has been given already.
    Message was edited by:
    Sven W. - reordered statements

  • How to get day of week from NSDate?

    How to get day of week from NSDate?

    Here's a way to get the name of the weekday as an NSString if you've already got an NSDate...
    NSDate * testDate = [NSDate date];
    NSString * weekdayString = [testDate descriptionWithCalendarFormat:@"%A" timeZone:nil
    locale:[[NSUserDefaults standardUserDefaults] dictionaryRepresentation]];
    NSLog(@"Day of the week: %@", weekdayString);
    The output is something like:
    Day of the week: Monday
    You can use a lower-case "%a" as the descriptionWithCalendarFormat if you just want the three character weekday abbreviation ("Mon", "Tue", "Wed", etc).
    Steve

  • How to get updated table values from objectlistdataproviders

    how to get updated table values from objectlistdataproviders

    Hi,
    Here is a sample code
    start-of-selection.
    *Select the data you need into an internal table
      loop at it_mara into wa_mara.
    data that needs to be displayed in the output list
        write:/ box as checkbox,
                wa_mara-matnr under text-001,
                wa_mara-maktx under text-002,
                wa_mara-lgort under text-003.
    Hide the data that needs to moved to internal table
        hide:wa_mara-matnr, wa_mara-maktx, wa_mara-lgort.
      endloop.
      clear wa_mara.
    end-of-selection.
      lines = sy-linno.
    at line-selection.
      clear:it_matnr. 
      do lines times.
        check sy-index > 1.
        box = space.
        read line sy-index field value box.
        if box = 'X'.
    *data selected using check box is moved to internal table
          append wa_mara to it_matnr.
        endif.
      enddo.
    Regards,
    Jisha.

Maybe you are looking for

  • Anyone's mini throw up this video pattern?

    Brand new Mac mini 5,1 running 10.7.2. Randomly, it will crash every few hours and throw up this semi-checkboard pattern on my monitor, which is a Samsung 2333SW. The dark areas are approx. 2" x 2" and they're made up of a series of horizontal 1/4" l

  • File Adapter with Dynamic routing????

    Hi I need to send a csv file and determine the receiver at runtime. Does anybody know if this is possible? What I would actually need is a field that, after reading the csv file into the payload, I could still use in order to conduct a dynamic receiv

  • Best way to get feedback to Apple?

    I'm finding Pages significantly less useful since the "Save As" function was removed in the latest version.  What's the best way to convince Apple that in the process of fixing something that wasn't broken, they've impaired functionality?

  • Purchased Adobe PDFannual pack and my computer crashed during download how can I access download again

    I upgraded to an Adobe PDF annual pack a few hours ago but my computer crashed during download. Does anyone know if/how I can access the download again

  • Re: Report painter - Creation of Profit center report (New GL enabled)

    Hello all, I am trying to create profit center report using report painter. I am trying to create formula variable to show the cumulative values for the elements assigned to the profit center.  I want to get values for cumulative period ie for eg if