add prerequisites and vcredistributable package to mfc setup application in vs2010
-
i have been trying to create setup file through setup and deployment template in vs2010. so now i have successfully added all files,folders,shortcuts and dlls etc.. but i have strucked at adding prerequisites to my setup application.i researched and found many articles but those all are telling to add prerequisites from the same computer,yes i followed and done it successfully, but when i try to install that setup in another computer(which is not installed vs2010 and .Net framework in it) its tending for .Net framework and redistribute components. the client computer installed with win7 32 or 64 bit OS (which will have no internet and not installed vs2010 as well). i just want to distribite my setup file which included prerequisites and redistributable components so that client simply install it and run the application.by the way i am using vs2010 ultimate to build the setup in win7. so is it possible to do that? i have been trying to do it from past three days but i couldn't, so finally i came here. please help me to solve this issue.thanks in advance.
-
i have been trying to create setup file through setup and deployment template in vs2010. so now i have successfully added all files,folders,shortcuts and dlls etc.. but i have strucked at adding prerequisites to my setup application.i researched and found many articles but those all are telling to add prerequisites from the same computer,yes i followed and done it successfully, but when i try to install that setup in another computer(which is not installed vs2010 and .Net framework in it) its tending for .Net framework and redistribute components. the client computer installed with win7 32 or 64 bit OS (which will have no internet and not installed vs2010 as well). i just want to distribite my setup file which included prerequisites and redistributable components so that client simply install it and run the application.by the way i am using vs2010 ultimate to build the setup in win7. so is it possible to do that? i have been trying to do it from past three days but i couldn't, so finally i came here. please help me to solve this issue.thanks in advance.
Start here: Microsoft .NET Framework 4.7.2 offline installer for Windows[^] - it's for the latest version of the .NET framework, but you should be able to find older versions as well.
Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!
-
Start here: Microsoft .NET Framework 4.7.2 offline installer for Windows[^] - it's for the latest version of the .NET framework, but you should be able to find older versions as well.
Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!
thanks for the reply but i think its not an issue about version of the .Net framework. my project using .Net 4.0 and i selected the same in the prerequisite dialog box, (FYU) i selected the third option like "download prerequisite from the following location" but after giving successful path and built the setup. when i install the setup in another computer its searching for .net framework from the web.this is what i can't understand. please suggest any link with detailed procedure (i am trying with MFC application).thank you
-
thanks for the reply but i think its not an issue about version of the .Net framework. my project using .Net 4.0 and i selected the same in the prerequisite dialog box, (FYU) i selected the third option like "download prerequisite from the following location" but after giving successful path and built the setup. when i install the setup in another computer its searching for .net framework from the web.this is what i can't understand. please suggest any link with detailed procedure (i am trying with MFC application).thank you
If they don't have access to the internet, then you have to provide the whole .NET framework as part of your installation: it is large and not normally included as it is downloaded as needed when the installer finds the right version isn't installed. Win 7 ships with .NET Framework 3.5.1 so any fresh(ish) installation that you try to add your .NET 4.0 app to will need to install a more recent framework before it gets anywhere else. No internet? You need to supply it.
Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!
-
If they don't have access to the internet, then you have to provide the whole .NET framework as part of your installation: it is large and not normally included as it is downloaded as needed when the installer finds the right version isn't installed. Win 7 ships with .NET Framework 3.5.1 so any fresh(ish) installation that you try to add your .NET 4.0 app to will need to install a more recent framework before it gets anywhere else. No internet? You need to supply it.
Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!
thanks for spending your time for me. we couldn't able to provide the internet there at workplace. now adding the prerequisites is raising this issue ain't i giving the exact path? C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\DotNetFX40 C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\vcredist_x86 C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\WindowsInstaller3_1 these are the paths i have tried till now from where to add the prerequisites to my setup,but i think those are not good choice and i tried to install my setup in winXP machine till now, may it cause this?
-
thanks for spending your time for me. we couldn't able to provide the internet there at workplace. now adding the prerequisites is raising this issue ain't i giving the exact path? C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\DotNetFX40 C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\vcredist_x86 C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\WindowsInstaller3_1 these are the paths i have tried till now from where to add the prerequisites to my setup,but i think those are not good choice and i tried to install my setup in winXP machine till now, may it cause this?
You can't just install the DLL's for .NET V4.0, you have to install the whole framework properly. That means following the link I gave you, and including that as a part of your installation. That's because you don't have the internet, which MS usually use to ensure the right version of .NET is installed prior to the main installer starting. Gawd knows if the V40 framework will work on XP at all: I don't! A quick check with MS says it will, if XP is at SP3 - which if it's not on the internet, it very probably isn't ...
Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!
-
i have been trying to create setup file through setup and deployment template in vs2010. so now i have successfully added all files,folders,shortcuts and dlls etc.. but i have strucked at adding prerequisites to my setup application.i researched and found many articles but those all are telling to add prerequisites from the same computer,yes i followed and done it successfully, but when i try to install that setup in another computer(which is not installed vs2010 and .Net framework in it) its tending for .Net framework and redistribute components. the client computer installed with win7 32 or 64 bit OS (which will have no internet and not installed vs2010 as well). i just want to distribite my setup file which included prerequisites and redistributable components so that client simply install it and run the application.by the way i am using vs2010 ultimate to build the setup in win7. so is it possible to do that? i have been trying to do it from past three days but i couldn't, so finally i came here. please help me to solve this issue.thanks in advance.
What kind of setup project do you use? VS2010 supports Visual Studio Installer and InstallShield LE. What redistributables do you add to the package, how exaclly? What is your application runtime requirements: C++/MFC redistributable, .NET Framework etc. Does it have another runtime dependencies? What is your development OS and target OS? 32 or 64 bit? Exact error after installation? You need to provide all these details to get help.
-
You can't just install the DLL's for .NET V4.0, you have to install the whole framework properly. That means following the link I gave you, and including that as a part of your installation. That's because you don't have the internet, which MS usually use to ensure the right version of .NET is installed prior to the main installer starting. Gawd knows if the V40 framework will work on XP at all: I don't! A quick check with MS says it will, if XP is at SP3 - which if it's not on the internet, it very probably isn't ...
Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!
yes,sorry for the late, i have moved to another bug. so i am using the template "Visual studio installer" on win7 32-bit OS.all prerequisites are added successfully like vc runtime components, my application related dlls, from the prerequisites dialog box i checked "microsoft dotnet 4.0 client,4.5" and "windows installer 3.1" but it couldn't be included in it i think.after built successfully the setup is going to run on winXP, Win7 (32/64) bit Operating systems. now i installed it on XP machine ,its searching for dotnet framework in the web,when i installed it on win7(32-bit) machine its showing the error like msvcp100d.dll is missing. my mfc vc++ application's target framework is dotnet4.0 so that's why i have checked 4.0 version also from prerequisite window,but i got same result as above. so what would be the exact missing in my setup..? thanks for your patience...
-
Start here: Microsoft .NET Framework 4.7.2 offline installer for Windows[^] - it's for the latest version of the .NET framework, but you should be able to find older versions as well.
Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!
thanks for the reply but i think its not an issue about version of the .Net framework. my project using .Net 4.0 and i selected the same in the prerequisite dialog box, (FYU) i selected the third option like "download prerequisite from the following location" but after giving successful path and built the setup. when i install the setup in another computer its searching for .net framework from the web.this is what i can't understand. please suggest any link with detailed procedure (i am trying with MFC application).thank you