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. C / C++ / MFC
  4. software update solution

software update solution

Scheduled Pinned Locked Moved C / C++ / MFC
announcementdatabasesysadminjsonhelp
8 Posts 2 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.
  • K Offline
    K Offline
    koll Zhu
    wrote on last edited by
    #1

    i develop a update .exe and its on a web server. when i start my main program, it'll query the version first.if there is a new version on the web server, it'll create a process and execute the update .exe. whats the update doing is that downloading the new setup.msi and setting up automatically.i use the the api MsiInstallProduct(path,"action=install"). but there's someting unfriendly, it'll popup the setup dialog and make the user to choose to restore or to delete. how can i make it to execute reinstallation action directly. msdn says the second parameter mapping to an action,but i just dont find anyting userful. help me .plz thank u in advance.

    Richard Andrew x64R 1 Reply Last reply
    0
    • K koll Zhu

      i develop a update .exe and its on a web server. when i start my main program, it'll query the version first.if there is a new version on the web server, it'll create a process and execute the update .exe. whats the update doing is that downloading the new setup.msi and setting up automatically.i use the the api MsiInstallProduct(path,"action=install"). but there's someting unfriendly, it'll popup the setup dialog and make the user to choose to restore or to delete. how can i make it to execute reinstallation action directly. msdn says the second parameter mapping to an action,but i just dont find anyting userful. help me .plz thank u in advance.

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

      Instead of updating your application with an MSI, you're supposed to create a "patch". The MSI is only for installing, repairing and removing the application. If you are only distributing an update, then use a patch instead. What software are you using to author your MSI's?

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

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

        Instead of updating your application with an MSI, you're supposed to create a "patch". The MSI is only for installing, repairing and removing the application. If you are only distributing an update, then use a patch instead. What software are you using to author your MSI's?

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

        K Offline
        K Offline
        koll Zhu
        wrote on last edited by
        #3

        there'r 2 cases. one maybe means a "patch" for adding some more resources. in the other case , i need an entirely new version. my question is about the second case. so i want to take a solution of reinstallation,though, im not sure whether its resonable or not... and i cant understand whats ur mean about authoring my msi's.

        Richard Andrew x64R 2 Replies Last reply
        0
        • K koll Zhu

          there'r 2 cases. one maybe means a "patch" for adding some more resources. in the other case , i need an entirely new version. my question is about the second case. so i want to take a solution of reinstallation,though, im not sure whether its resonable or not... and i cant understand whats ur mean about authoring my msi's.

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

          Try running the installer with the "\quiet" option. This prevents any user interface. See: Installer Command Line Options[^]

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

          K 1 Reply Last reply
          0
          • K koll Zhu

            there'r 2 cases. one maybe means a "patch" for adding some more resources. in the other case , i need an entirely new version. my question is about the second case. so i want to take a solution of reinstallation,though, im not sure whether its resonable or not... and i cant understand whats ur mean about authoring my msi's.

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

            You might want to look into this function: MsiSetInternalUI[^]

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

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

              Try running the installer with the "\quiet" option. This prevents any user interface. See: Installer Command Line Options[^]

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

              K Offline
              K Offline
              koll Zhu
              wrote on last edited by
              #6

              yes,it works.there's also a doubt why i cant run the uninstall .exe if it has a different productcode from setup.msi. and how can i get the productcode. thank u for ur reply,its very useful

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

                You might want to look into this function: MsiSetInternalUI[^]

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

                K Offline
                K Offline
                koll Zhu
                wrote on last edited by
                #7

                yeah

                1 Reply Last reply
                0
                • K koll Zhu

                  yes,it works.there's also a doubt why i cant run the uninstall .exe if it has a different productcode from setup.msi. and how can i get the productcode. thank u for ur reply,its very useful

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

                  If you need to get the product code from the MSI, you could use the tool called Orca. It's part of the Windows SDK: Orca[^] You can see the contents of the MSI file with this tool.

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

                  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