auto install .net framework 2

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • deciacco

    auto install .net framework 2

    I created a deployment project for my .net 2 application in vs 2005. In the properties of the deployment project, under prerequisites i have "Create
    setup program to install prerequisite components" checked and the ".Net Framework 2.0" prerequisite selected. The install location is set to "Download
    prerequisite from component's vendor's web site".

    After I create the setup file I click on the msi file and if the .Net framework is not installed on the machine it asks if I want to download it from
    the vendors website. If I click yes, it takes me to this (http://go.microsoft.com/fwlink/?LinkId=9832) url so I can download dotnetfx.exe and install
    it manually.

    This is not the behavior I want. I want it to automatically download the framework and install it, then run my install again.

    Can someone please explain how I can get vs2005 deployment project to do this?

    Thanks!
  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: auto install .net framework 2

    You aren't going to be able to get this easily. You are basically going
    to have to write an unmanaged piece of code that will check to see if the
    framework is installed, and if not, download and install it yourself.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "deciacco" <a@awrote in message
    news:DaudnU7xcY lbQwHbnZ2dnUVZ_ oq3nZ2d@giganew s.com...
    >I created a deployment project for my .net 2 application in vs 2005. In the
    >properties of the deployment project, under prerequisites i have "Create
    >setup program to install prerequisite components" checked and the ".Net
    >Framework 2.0" prerequisite selected. The install location is set to
    >"Download prerequisite from component's vendor's web site".
    >
    After I create the setup file I click on the msi file and if the .Net
    framework is not installed on the machine it asks if I want to download it
    from the vendors website. If I click yes, it takes me to this
    (http://go.microsoft.com/fwlink/?LinkId=9832) url so I can download
    dotnetfx.exe and install it manually.
    >
    This is not the behavior I want. I want it to automatically download the
    framework and install it, then run my install again.
    >
    Can someone please explain how I can get vs2005 deployment project to do
    this?
    >
    Thanks!

    Comment

    • Egghead

      #3
      Re: auto install .net framework 2

      WOW, I thought Microsoft has the .Net 2.0 in the Redistributable already.
      Actually, can you extract the msi from the setup.exe and do the merge module
      (just an idea)?
      --
      cheers,
      RL
      "Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard .caspershouse.c omwrote in
      message news:eBaY3eIyHH A.4928@TK2MSFTN GP03.phx.gbl...
      You aren't going to be able to get this easily. You are basically
      going to have to write an unmanaged piece of code that will check to see
      if the framework is installed, and if not, download and install it
      yourself.
      >
      >
      --
      - Nicholas Paldino [.NET/C# MVP]
      - mvp@spam.guard. caspershouse.co m
      >
      "deciacco" <a@awrote in message
      news:DaudnU7xcY lbQwHbnZ2dnUVZ_ oq3nZ2d@giganew s.com...
      >>I created a deployment project for my .net 2 application in vs 2005. In
      >>the properties of the deployment project, under prerequisites i have
      >>"Create setup program to install prerequisite components" checked and the
      >>".Net Framework 2.0" prerequisite selected. The install location is set to
      >>"Download prerequisite from component's vendor's web site".
      >>
      >After I create the setup file I click on the msi file and if the .Net
      >framework is not installed on the machine it asks if I want to download
      >it from the vendors website. If I click yes, it takes me to this
      >(http://go.microsoft.com/fwlink/?LinkId=9832) url so I can download
      >dotnetfx.exe and install it manually.
      >>
      >This is not the behavior I want. I want it to automatically download the
      >framework and install it, then run my install again.
      >>
      >Can someone please explain how I can get vs2005 deployment project to do
      >this?
      >>
      >Thanks!
      >
      >

      Comment

      • John Vottero

        #4
        Re: auto install .net framework 2

        That unmanaged piece of code is already there (see the GenerateBootstr apper
        task or class). The problem is that some genius at Microsoft moved the
        target of that link thus breaking everyone's installer. This used to work
        just as the OP (and I) want.

        "Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard .caspershouse.c omwrote in
        message news:eBaY3eIyHH A.4928@TK2MSFTN GP03.phx.gbl...
        You aren't going to be able to get this easily. You are basically
        going to have to write an unmanaged piece of code that will check to see
        if the framework is installed, and if not, download and install it
        yourself.
        >
        >
        --
        - Nicholas Paldino [.NET/C# MVP]
        - mvp@spam.guard. caspershouse.co m
        >
        "deciacco" <a@awrote in message
        news:DaudnU7xcY lbQwHbnZ2dnUVZ_ oq3nZ2d@giganew s.com...
        >>I created a deployment project for my .net 2 application in vs 2005. In
        >>the properties of the deployment project, under prerequisites i have
        >>"Create setup program to install prerequisite components" checked and the
        >>".Net Framework 2.0" prerequisite selected. The install location is set to
        >>"Download prerequisite from component's vendor's web site".
        >>
        >After I create the setup file I click on the msi file and if the .Net
        >framework is not installed on the machine it asks if I want to download
        >it from the vendors website. If I click yes, it takes me to this
        >(http://go.microsoft.com/fwlink/?LinkId=9832) url so I can download
        >dotnetfx.exe and install it manually.
        >>
        >This is not the behavior I want. I want it to automatically download the
        >framework and install it, then run my install again.
        >>
        >Can someone please explain how I can get vs2005 deployment project to do
        >this?
        >>
        >Thanks!
        >
        >

        Comment

        • John Vottero

          #5
          Re: auto install .net framework 2

          "John Vottero" <JVottero@mvpsi .comwrote in message
          news:3CAF31EA-F92D-4861-BA9B-458C703B4117@mi crosoft.com...
          That unmanaged piece of code is already there (see the
          GenerateBootstr apper task or class). The problem is that some genius at
          Microsoft moved the target of that link thus breaking everyone's
          installer. This used to work just as the OP (and I) want.
          Upon further review, I can see that the OP must be doing something wrong (or
          different) because he's got the wrong URL. I apologize to all of the
          genius' at Microsoft for jumping to conclusions. :)
          "Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard .caspershouse.c omwrote
          in message news:eBaY3eIyHH A.4928@TK2MSFTN GP03.phx.gbl...
          > You aren't going to be able to get this easily. You are basically
          >going to have to write an unmanaged piece of code that will check to see
          >if the framework is installed, and if not, download and install it
          >yourself.
          >>
          >>
          >--
          > - Nicholas Paldino [.NET/C# MVP]
          > - mvp@spam.guard. caspershouse.co m
          >>
          >"deciacco" <a@awrote in message
          >news:DaudnU7xc YlbQwHbnZ2dnUVZ _oq3nZ2d@gigane ws.com...
          >>>I created a deployment project for my .net 2 application in vs 2005. In
          >>>the properties of the deployment project, under prerequisites i have
          >>>"Create setup program to install prerequisite components" checked and the
          >>>".Net Framework 2.0" prerequisite selected. The install location is set
          >>>to "Download prerequisite from component's vendor's web site".
          >>>
          >>After I create the setup file I click on the msi file and if the .Net
          >>framework is not installed on the machine it asks if I want to download
          >>it from the vendors website. If I click yes, it takes me to this
          >>(http://go.microsoft.com/fwlink/?LinkId=9832) url so I can download
          >>dotnetfx.ex e and install it manually.
          >>>
          >>This is not the behavior I want. I want it to automatically download the
          >>framework and install it, then run my install again.
          >>>
          >>Can someone please explain how I can get vs2005 deployment project to do
          >>this?
          >>>
          >>Thanks!
          >>
          >>
          >

          Comment

          • John Vottero

            #6
            Re: auto install .net framework 2

            "deciacco" <a@awrote in message
            news:DaudnU7xcY lbQwHbnZ2dnUVZ_ oq3nZ2d@giganew s.com...
            >I created a deployment project for my .net 2 application in vs 2005. In the
            >properties of the deployment project, under prerequisites i have "Create
            >setup program to install prerequisite components" checked and the ".Net
            >Framework 2.0" prerequisite selected. The install location is set to
            >"Download prerequisite from component's vendor's web site".
            >
            After I create the setup file I click on the msi file and if the .Net
            framework is not installed on the machine it asks if I want to download it
            from the vendors website. If I click yes, it takes me to this
            (http://go.microsoft.com/fwlink/?LinkId=9832) url so I can download
            dotnetfx.exe and install it manually.
            You're doing something wrong (or different) because the link should be:



            What language are you building on?


            Comment

            • Phil Wilson

              #7
              Re: auto install .net framework 2

              There are two ways that the framework can be downloaded. One is from the
              setup.exe bootstrapper, the other is from the actual MSI file. You checked
              the prerequisites box to use the first of these, and then ran the MSI file
              (not the exe!) and invoked the second.
              So it's the setup.exe that downloads the framework (and other dependencies)
              from the prerequisites settings, and in the MSI file there are some settings
              that are in the Properties window of the NET Framework launch condition in
              the Launch Conditions view, including an InstallURL that you can edit.
              --
              Phil Wilson
              [MVP Windows Installer]


              "deciacco" <a@awrote in message
              news:DaudnU7xcY lbQwHbnZ2dnUVZ_ oq3nZ2d@giganew s.com...
              >I created a deployment project for my .net 2 application in vs 2005. In the
              >properties of the deployment project, under prerequisites i have "Create
              >setup program to install prerequisite components" checked and the ".Net
              >Framework 2.0" prerequisite selected. The install location is set to
              >"Download prerequisite from component's vendor's web site".
              >
              After I create the setup file I click on the msi file and if the .Net
              framework is not installed on the machine it asks if I want to download it
              from the vendors website. If I click yes, it takes me to this
              (http://go.microsoft.com/fwlink/?LinkId=9832) url so I can download
              dotnetfx.exe and install it manually.
              >
              This is not the behavior I want. I want it to automatically download the
              framework and install it, then run my install again.
              >
              Can someone please explain how I can get vs2005 deployment project to do
              this?
              >
              Thanks!

              Comment

              • Rad [Visual C# MVP]

                #8
                Re: auto install .net framework 2

                On Tue, 17 Jul 2007 10:24:18 -0500, deciacco <a@awrote:
                >I created a deployment project for my .net 2 application in vs 2005. In the properties of the deployment project, under prerequisites i have "Create
                >setup program to install prerequisite components" checked and the ".Net Framework 2.0" prerequisite selected. The install location is set to "Download
                >prerequisite from component's vendor's web site".
                >
                >After I create the setup file I click on the msi file and if the .Net framework is not installed on the machine it asks if I want to download it from
                >the vendors website. If I click yes, it takes me to this (http://go.microsoft.com/fwlink/?LinkId=9832) url so I can download dotnetfx.exe and install
                >it manually.
                >
                >This is not the behavior I want. I want it to automatically download the framework and install it, then run my install again.
                >
                >Can someone please explain how I can get vs2005 deployment project to do this?
                >
                >Thanks!
                Why don't you set the install location to be the same folder as
                application have visual studio copy the MSI to your installation
                folder?

                --

                Comment

                • RobinS

                  #9
                  Re: auto install .net framework 2

                  Are you using ClickOnce deployment, or did you write your own Windows
                  Installer app?

                  My company is using ClickOnce, and we are installing .Net 2.0 from the MSFT
                  site with no problems. It downloads it for the user and installs it, then
                  continues with the ClickOnce deployment.

                  Robin S.
                  -------------------
                  "Rad [Visual C# MVP]" <rad@nospam.com wrote in message
                  news:tcos93tc37 imsqcnc9m2v79g1 htk5l82pa@4ax.c om...
                  On Tue, 17 Jul 2007 10:24:18 -0500, deciacco <a@awrote:
                  >
                  >>I created a deployment project for my .net 2 application in vs 2005. In
                  >>the properties of the deployment project, under prerequisites i have
                  >>"Create
                  >>setup program to install prerequisite components" checked and the ".Net
                  >>Framework 2.0" prerequisite selected. The install location is set to
                  >>"Download
                  >>prerequisit e from component's vendor's web site".
                  >>
                  >>After I create the setup file I click on the msi file and if the .Net
                  >>framework is not installed on the machine it asks if I want to download
                  >>it from
                  >>the vendors website. If I click yes, it takes me to this
                  >>(http://go.microsoft.com/fwlink/?LinkId=9832) url so I can download
                  >>dotnetfx.ex e and install
                  >>it manually.
                  >>
                  >>This is not the behavior I want. I want it to automatically download the
                  >>framework and install it, then run my install again.
                  >>
                  >>Can someone please explain how I can get vs2005 deployment project to do
                  >>this?
                  >>
                  >>Thanks!
                  Why don't you set the install location to be the same folder as
                  application have visual studio copy the MSI to your installation
                  folder?
                  >
                  --
                  http://bytes.thinkersroom.com

                  Comment

                  Working...