Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Visual studio 2010 VB Setup Project - Uninstalls wrong program

Visual studio 2010 VB Setup Project - Uninstalls wrong program

Scheduled Pinned Locked Moved .NET (Core and Framework)
visual-studiocsharphelpquestionworkspace
12 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Richard Andrew x64R Richard Andrew x64

    Most likely the Product Code got duplicated from the first to the second setup. Each installer must have a unique Product Code which is a GUID. I can't help you find it in Visual Studio, though, because I never use those setup projects. I use InstallShield. Try looking for the Product Code and change it in the second setup. NOTE: The Upgrade Code must also be unique for a separate product installer. If product 2 is only an upgrade of product 1, then the Upgrade Codes should be the same, otherwise they should be different.

    The difficult we do right away... ...the impossible takes slightly longer.

    Q Offline
    Q Offline
    QuickBooksDev
    wrote on last edited by
    #3

    I have changed the Guid in the Assembly. I do not know where else to look. I have done this with several other programs and this is the only one giving us trouble.

    D 1 Reply Last reply
    0
    • Q QuickBooksDev

      I have changed the Guid in the Assembly. I do not know where else to look. I have done this with several other programs and this is the only one giving us trouble.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #4

      You need to change the ProductCode in the install. The GUID in the Assmebly (whichever GUID you're talking about) means nothing to the installer. I also never use the VS setup project, instead going for InstallShield.

      A guide to posting questions on CodeProject

      Click this: Asking questions is a skill. Seriously, do it.
      Dave Kreskowiak

      Q 1 Reply Last reply
      0
      • D Dave Kreskowiak

        You need to change the ProductCode in the install. The GUID in the Assmebly (whichever GUID you're talking about) means nothing to the installer. I also never use the VS setup project, instead going for InstallShield.

        A guide to posting questions on CodeProject

        Click this: Asking questions is a skill. Seriously, do it.
        Dave Kreskowiak

        Q Offline
        Q Offline
        QuickBooksDev
        wrote on last edited by
        #5

        Thanks Mark, I found it in Setup1.vbproj under "ProductCode" = "8:{....}" But if I change it to any other value then I cannot build the setup project and get an error Invalid product code '{...}'. Must be formatted as (xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx) but it is. I compared them in notepad and they have the same format. If I put back the old (duplicate code) it compiles. Any idea?

        Richard DeemingR 1 Reply Last reply
        0
        • Q QuickBooksDev

          Thanks Mark, I found it in Setup1.vbproj under "ProductCode" = "8:{....}" But if I change it to any other value then I cannot build the setup project and get an error Invalid product code '{...}'. Must be formatted as (xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx) but it is. I compared them in notepad and they have the same format. If I put back the old (duplicate code) it compiles. Any idea?

          Richard DeemingR Offline
          Richard DeemingR Offline
          Richard Deeming
          wrote on last edited by
          #6

          What did you change it to? Each of the "x" characters needs to be a hexadecimal digit - either 0-9 or A-F. If you changed one of the characters to "x", for example, it wouldn't be valid.


          "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

          "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

          Q 1 Reply Last reply
          0
          • Richard DeemingR Richard Deeming

            What did you change it to? Each of the "x" characters needs to be a hexadecimal digit - either 0-9 or A-F. If you changed one of the characters to "x", for example, it wouldn't be valid.


            "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

            Q Offline
            Q Offline
            QuickBooksDev
            wrote on last edited by
            #7

            I used GuidGen to create a new valid Guid. Tried 2 of them. I did not manually type them but copied/pasted the Guid from the GuidGen. This is the dup one that was there and works. "ProductCode" = "8:{0266BF84-C385-4430-A15A-3B5C497FCC33}" The below failed. "ProductCode" = "8:{4d787188-0f42-443d-9553-71ecbd950a29}" "ProductCode" = "8:{7FCA517C-F1D6-4e10-8837-B4C281D44428}"

            D Richard Andrew x64R 2 Replies Last reply
            0
            • Q QuickBooksDev

              I used GuidGen to create a new valid Guid. Tried 2 of them. I did not manually type them but copied/pasted the Guid from the GuidGen. This is the dup one that was there and works. "ProductCode" = "8:{0266BF84-C385-4430-A15A-3B5C497FCC33}" The below failed. "ProductCode" = "8:{4d787188-0f42-443d-9553-71ecbd950a29}" "ProductCode" = "8:{7FCA517C-F1D6-4e10-8837-B4C281D44428}"

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #8

              What's with the "8 colon" in the strings? Those don't belong there in a GUID.

              A guide to posting questions on CodeProject

              Click this: Asking questions is a skill. Seriously, do it.
              Dave Kreskowiak

              Q 1 Reply Last reply
              0
              • D Dave Kreskowiak

                What's with the "8 colon" in the strings? Those don't belong there in a GUID.

                A guide to posting questions on CodeProject

                Click this: Asking questions is a skill. Seriously, do it.
                Dave Kreskowiak

                Q Offline
                Q Offline
                QuickBooksDev
                wrote on last edited by
                #9

                I did not put it there. It is in all our VB2010 setup projects. Here is portion of a different project that works fine. "ProductCode" = "8:{DD570CBF-BEA4-42C8-B8CE-FF8CD4FB6CE8}" "PackageCode" = "8:{B00FFBD9-1D7F-4861-9BAF-422BA6C34596}" "UpgradeCode" = "8:{94029DC3-8EC2-4EB5-BA96-984C17CBD641}"

                D 1 Reply Last reply
                0
                • Q QuickBooksDev

                  I did not put it there. It is in all our VB2010 setup projects. Here is portion of a different project that works fine. "ProductCode" = "8:{DD570CBF-BEA4-42C8-B8CE-FF8CD4FB6CE8}" "PackageCode" = "8:{B00FFBD9-1D7F-4861-9BAF-422BA6C34596}" "UpgradeCode" = "8:{94029DC3-8EC2-4EB5-BA96-984C17CBD641}"

                  D Offline
                  D Offline
                  Dave Kreskowiak
                  wrote on last edited by
                  #10

                  Weird. Like I said, I never use the VS installer project. They don't even exist in VS2012 and above.

                  A guide to posting questions on CodeProject

                  Click this: Asking questions is a skill. Seriously, do it.
                  Dave Kreskowiak

                  1 Reply Last reply
                  0
                  • Q QuickBooksDev

                    I used GuidGen to create a new valid Guid. Tried 2 of them. I did not manually type them but copied/pasted the Guid from the GuidGen. This is the dup one that was there and works. "ProductCode" = "8:{0266BF84-C385-4430-A15A-3B5C497FCC33}" The below failed. "ProductCode" = "8:{4d787188-0f42-443d-9553-71ecbd950a29}" "ProductCode" = "8:{7FCA517C-F1D6-4e10-8837-B4C281D44428}"

                    Richard Andrew x64R Offline
                    Richard Andrew x64R Offline
                    Richard Andrew x64
                    wrote on last edited by
                    #11

                    Try making sure all the letters in the GUID are UPPER CASE.

                    The difficult we do right away... ...the impossible takes slightly longer.

                    Q 1 Reply Last reply
                    0
                    • Richard Andrew x64R Richard Andrew x64

                      Try making sure all the letters in the GUID are UPPER CASE.

                      The difficult we do right away... ...the impossible takes slightly longer.

                      Q Offline
                      Q Offline
                      QuickBooksDev
                      wrote on last edited by
                      #12

                      That worked. THANKS!

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups