5 Replies Latest reply: Apr 11, 2011 9:52 PM by Noel Carboni RSS

    Plugin with "NO VERSION"

    wleng Community Member

      I wrote an automation plugin and works fine. But, when look the System Info (Help | System Info), my plugin shows "NO VERSION". Can someone tell me how to specify a version.

       

      Thanks

       

      Bill

        • 1. Re: Plugin with "NO VERSION"
          Noel Carboni Community Member

          For filter plug-ins one implements code to handle the filterSelectorAbout selector.

           

          I think it's the same for an automation plug-in...  Have you handled the kSPInterfaceAboutSelector selector?

           

          -Noel

          • 2. Re: Plugin with "NO VERSION"
            Chris Cox Adobe Employee

            The version from System Info is the normal OS version numbering you would supply with an application (a resource with the version string).

            • 3. Re: Plugin with "NO VERSION"
              wleng Community Member

              Hi Noel,

               

              Yes, and that part is working now. My problem is a different issue. When you select "Help | System Info", a dialog comes up listing all plug-ins. For each plug-in, there is a version but my plug-in shows "NO VERSION".

               

              Thanks

               

              Bill

              • 4. Re: Plugin with "NO VERSION"
                wleng Community Member

                Where should I set this string. In my *.r file, there is an entry like

                 

                Version {(latestActionsPlugInVersion << 16) | latestActionsPlugInSubVersion},

                 

                Is it the place to set the version? If you could point me to a piece of sample code in the SDK's samplecode directory, that would be very helpful.

                 

                Thanks

                 

                Bill

                • 5. Re: Plugin with "NO VERSION"
                  Noel Carboni Community Member

                  Ah, sorry, I misread your question.  Are you developing on Mac or PC?

                   

                  If on PC, the version information is set in the VS_VERSION_INFO resource, which is in the .rc file.

                   

                  For example,

                   

                  /////////////////////////////////////////////////////////////////////////////
                  //
                  // Version
                  //
                  
                  VS_VERSION_INFO VERSIONINFO
                   FILEVERSION 2,1,0,0
                   PRODUCTVERSION 2,1,0,0
                   FILEFLAGSMASK 0x17L
                  #ifdef _DEBUG
                   FILEFLAGS 0x1L
                  #else
                   FILEFLAGS 0x0L
                  #endif
                   FILEOS 0x4L
                   FILETYPE 0x2L
                   FILESUBTYPE 0x0L
                  BEGIN
                      BLOCK "StringFileInfo"
                      BEGIN
                          BLOCK "040904b0"
                          BEGIN
                              VALUE "CompanyName", "Your company name here"
                              VALUE "FileDescription", "Your plug-in name here"
                              VALUE "FileVersion", "2, 1, 0, 0"
                              VALUE "InternalName", "Your internal name here"
                              VALUE "LegalCopyright", "Copyright (C) 2010 - 2011"
                              VALUE "OriginalFilename", "YourPlugInName.8bf"
                              VALUE "ProductName", "Your product name here"
                              VALUE "ProductVersion", "2, 1, 0, 0"
                          END
                      END
                      BLOCK "VarFileInfo"
                      BEGIN
                          VALUE "Translation", 0x409, 1200
                      END
                  END
                  

                   

                  -Noel