9 Replies Latest reply on May 15, 2009 7:05 AM by vcJunior

    OSID Generator returns invalid (not recognised) GUID

    FlexyDave

      Hi All,

       

      I'm trying to figure out how we can silently uninstall our AIR app.  I created a very simple app to test this.  I built the AIR file with a self signed cert.

       

      I plugged in the following 2 items to the OSID Generator

       

      Application ID : windows

       

      taken fromdeployed application.xml

       

      <!-- The application identifier string, unique to this application. Required. -->

      <id>windows</id>

      and taken from the deployed publisherid file
      Publisher ID   : 9043D4FB7FB8ACE91E195647F218B99C1D8BB40C.1

      and it spits out

       

      Windows GUID : {02872030-9873-8295-8E33-2B21D3C9837A}

       

      However, when i try to execute

       

      c:\> msiexec /x {02872030-9873-8295-8E33-2B21D3C9837A}

       

      I get the following error

      uninstall.jpg

       

      What could possibly be going wrong ?  What should I do next to try to figure out why it's not working?

       

      Thanks in advance....

       

      FlexyDave

        • 1. Re: OSID Generator returns invalid (not recognised) GUID
          JMSTrilsoft

          The OSID Gen gives you the upgrade code you need the actual product codes to uninstall via msiexec. Here's some quick C++ code that will return the correct product code for the upgrade code that the OSID returns. You'll need visual studio and the windows SDK.

           

          #include <stdio.h>
          #include <tchar.h>
          #include "windows.h"
          #include "msi.h"
          
          const int cchGUID = 38;
          int _tmain(int argc, _TCHAR* argv[])
          {
               if(argc < 0){
                    printf("Please provide a upgrade GUID i.e. {4408AA70-202E-068B-8C0C-B666B84AFD82}");
                    return 1;
               }
               TCHAR* code = argv[1];
               TCHAR resultCode[cchGUID+1] = {0};
               UINT result = ERROR_SUCCESS;
               int i = 0;
               while(ERROR_SUCCESS == result){
                    result = MsiEnumRelatedProducts(code,0,i,resultCode);
                    if(ERROR_SUCCESS == result){
                         printf("%S\n",resultCode);
                    } else {
                         switch(result){
                              case ERROR_BAD_CONFIGURATION:
                                   printf("ERROR_BAD_CONFIGURATION\n");
                              break;
                              case ERROR_INVALID_PARAMETER:
                                   printf("ERROR_INVALID_PARAMETER\n");
                              break;
                              case ERROR_NO_MORE_ITEMS:
                                   printf("ERROR_NO_MORE_ITEMS\n");
                              break;
                              case ERROR_NOT_ENOUGH_MEMORY:
                                   printf("ERROR_NOT_ENOUGH_MEMORY\n");
                              break;
                              default:
                                   printf("Unknown Error\n");
                              break;
          
                         }
                    }
                    i++;
               }
               getchar(); //Wait for user to hit enter
               return 0;
          }
          

          • 2. Re: OSID Generator returns invalid (not recognised) GUID
            vcJunior

            Where can I found OSID generator ? Is it application , function or something else?

            • 3. Re: OSID Generator returns invalid (not recognised) GUID
              Michael Borbor Level 4

              There's an small app that makes it easy for you to uninstall silently. 

              Look for a recently answered post, where the link is. Or type in 

              google the Pursuit of Simplicity and the first link that says Adobe 

              that's the one that you're looking for.

               

              Sincerely,

               

              Michael

               

              El 15/05/2009, a las 7:17, vcJunior <forums@adobe.com> escribió:

               

              >

              Where can I found OSID generator ? Is it application , function or 

              something else?

              >

              • 4. Re: OSID Generator returns invalid (not recognised) GUID
                vcJunior Level 1

                I have Application ID,

                I have Publisher ID,

                 

                But How to get upgrade code ?

                 

                Previous Post says I need OSID application to generate upgrade code.

                 

                But I don't know what is OSID application and where can I found this ?

                • 5. Re: OSID Generator returns invalid (not recognised) GUID
                  Michael Borbor Level 4

                  Did you go to the blog that I mentioned? I'd love to help you a little 

                  more but copying and pasting isn't yet a feature in the iPhone.

                   

                  Sincerely,

                   

                  Michael

                   

                  El 15/05/2009, a las 7:43, vcJunior <forums@adobe.com> escribió:

                   

                  >

                  I have Application ID,

                  I have Publisher ID,

                  >

                  But How to get upgrade code ?

                  >

                  Previous Post says I need OSID application to generate upgrade code.

                  >

                  But I don't know what is OSID application and where can I found this ?

                  >

                  • 7. Re: OSID Generator returns invalid (not recognised) GUID
                    Michael Borbor Level 4

                    Inicio del mensaje reenviado:

                     

                    De: Michael

                    Fecha: 15 de mayo de 2009 8:08:19 GMT-05:00

                    Para: "clearspace-1207439748-3DO-2-8fhh@mail.forums.adobe.com" <clearspace-1207439748-3DO-2-8fhh@mail.forums.adobe.com

                    >

                    Asunto: Re: Re: OSID Generator returns invalid (not 

                    recognised) GUID

                    >

                     

                    The OSID generator comes with the AIR redustributable package if you 

                    want instructions on how to use it read the Adobe AIR runtime 

                    redistribution Instructions on how to use the OSID ten with your app 

                    id and pub id.

                    >

                    Sincerely,

                    >

                    Michael

                    >

                    El 15/05/2009, a las 7:43, vcJunior <forums@adobe.com> escribió:

                    >

                    >>

                    >> I have Application ID,

                    >> I have Publisher ID,

                    >>

                    >> But How to get upgrade code ?

                    >>

                    >> Previous Post says I need OSID application to generate upgrade code.

                    >>

                    >> But I don't know what is OSID application and where can I found 

                    >> this ?

                    >>

                    • 8. Re: OSID Generator returns invalid (not recognised) GUID
                      Michael Borbor Level 4

                      The OSID generator comes with the AIR redustributable package if you 

                      want instructions on how to use it read the Adobe AIR runtime 

                      redistribution Instructions on how to use the OSID ten with your app 

                      id and pub id.

                       

                      Sincerely,

                       

                      Michael

                       

                      El 15/05/2009, a las 7:43, vcJunior <forums@adobe.com> escribió:

                       

                      >

                      I have Application ID,

                      I have Publisher ID,

                      >

                      But How to get upgrade code ?

                      >

                      Previous Post says I need OSID application to generate upgrade code.

                      >

                      But I don't know what is OSID application and where can I found this ?

                      >

                      • 9. Re: OSID Generator returns invalid (not recognised) GUID
                        vcJunior Level 1

                        Thanks Michael,

                         

                        I will do it tomorrow because it's my leaving time from office

                         

                        Bye,