VC++ Redists...
#1
Posted 24 October 2012 - 11:37 AM
Got a strange OCD type question...I have collected a LOT of Visual C++ Redists over the years due to games that I play requiring specific exact versions, otherwise I get crashes and/or errors in the Event Log.
Whenever I have to install Windows 7 fresh (about every 3-6 months) and (repeated 3 times for 3 different PCs in my home) I have to go through the painstaking and mind numbing process of installing these redists one by one. I'm not familiar with CMD prompts, so could anyone help me with some way to install these redists (EXE files) automatically, one after another, AND ensuring that they install in the correct order (x86 version installs, then x64 version installs, etc)?
I've attached a screenshot of my redists (so you can get an idea of my pain)...
I'd also like to find a way to batch install my MSU windows updates into a similiar package, or anything else automated...there are about 60 of them now...(Windows 7 Ultimate x64)
Thank you friends.
#2
Posted 24 October 2012 - 12:14 PM
#3
Posted 24 October 2012 - 12:36 PM
Attached File(s)
-
Visual C++ Redists.JPG (104.03K)
Number of downloads: 32
This post has been edited by neowillendit: 24 October 2012 - 12:42 PM
#4
Posted 24 October 2012 - 12:40 PM
Do I just type that exact phrase into a .txt file, rename the extension to .bat, and put it in the same folder as my VC++ Redists in EXE format and click the .bat to execute?
And then do the same thing for my MSU updates folder?
#5
Posted 24 October 2012 - 02:10 PM
http://www.msfn.org/...r-7-unattended/
Also, to make things easier for me (although I suspect there is a thread in here for that too, but you can't search for "msu" within the forum) is here is a sample batch file to execute a folder full of .msu files:
http://www.msfn.org/...ost__p__1000109
#6
Posted 24 October 2012 - 04:52 PM
Do I add my folder location to the .bat somehwere?
Also I feel like there is important info missing in that thread because of the thread starter using another language...
#7
Posted 24 October 2012 - 05:04 PM
neowillendit, on 24 October 2012 - 04:52 PM, said:
I don't know what that was about... but the entire thread I linked to may not be relevant, but that post seems to be. From what I understand, you have a folder with all the .MSU files in it (no subfolders), then you put that .cmd in that folder too. Since the .cmd and the .msu files are in the same location, you wouldn't need to set a path.
#8
Posted 25 October 2012 - 09:14 AM
neowillendit, on 24 October 2012 - 11:37 AM, said:
Got a strange OCD type question...I have collected a LOT of Visual C++ Redists over the years due to games that I play requiring specific exact versions, otherwise I get crashes and/or errors in the Event Log.
Whenever I have to install Windows 7 fresh (about every 3-6 months) and (repeated 3 times for 3 different PCs in my home) I have to go through the painstaking and mind numbing process of installing these redists one by one. I'm not familiar with CMD prompts, so could anyone help me with some way to install these redists (EXE files) automatically, one after another, AND ensuring that they install in the correct order (x86 version installs, then x64 version installs, etc)?
I've attached a screenshot of my redists (so you can get an idea of my pain)...
I'd also like to find a way to batch install my MSU windows updates into a similiar package, or anything else automated...there are about 60 of them now...(Windows 7 Ultimate x64)
Thank you friends.
Here you go this is a batch that I wrote that Installs each MSU one at a time, (btw you will need to add switches for your .exe C++ files) just run batch from your MSU Updates folder..Hope this helps!
This post has been edited by DosProbie: 25 October 2012 - 09:27 AM
#9
Posted 25 October 2012 - 06:50 PM
Command lines and such always get the best of me...So in order to get this .cmd to work, what switches will I need to add to it?
#10
Posted 25 October 2012 - 07:46 PM
neowillendit, on 25 October 2012 - 06:50 PM, said:
Command lines and such always get the best of me...So in order to get this .cmd to work, what switches will I need to add to it?
Here you go, wrote this batch for your C++ files (Switch included), just create a Updates folder to your C: drive
with all your .exe C++ files and add this batch to it, create shortcut to batch to your desktop and run then watch
the magic
from: http://www.filecrop....er-1.4.1.1.html
#11
Posted 25 October 2012 - 07:51 PM
#13
Posted 25 October 2012 - 10:08 PM
Good news!! The MSU.cmd worked PERFECTLY!!
But...the Visual.cmd, only half worked. The .cmd worked for all the 2008 and 2010 redists without hassle but errored on all my 2005 redists (due to M$ using different command line switches I can only guess).
Is there any way to add the functionality for the older 2005 redists in this Visual.cmd?
This post has been edited by neowillendit: 25 October 2012 - 10:57 PM
#14
Posted 26 October 2012 - 02:23 AM
neowillendit, on 25 October 2012 - 10:08 PM, said:
Good news!! The MSU.cmd worked PERFECTLY!!
But...the Visual.cmd, only half worked. The .cmd worked for all the 2008 and 2010 redists without hassle but errored on all my 2005 redists (due to M$ using different command line switches I can only guess).
Is there any way to add the functionality for the older 2005 redists in this Visual.cmd?
Send me the names of some of the 2005's over to me and I will check them out ..And also how many 2005's do you have?
#15
Posted 26 October 2012 - 03:50 AM
You never sleep, just as I don't either!! haha
OK, well I have 16 total 2005 redists (there are 12 in the picture attached to this post, and 4 more that I haven't put in that folder because they are newer updates to prevent DLL spoofing, so 16 total).
If you think this is getting messy, just let me know, you've been such a big help to me, and it is very appreciated, so you've done MORE than I could've asked for. Again, just let me know if this is crazy crazy work to get these little buggers installing more easily
Attached File(s)
-
Visual C++ Redists.JPG (104.03K)
Number of downloads: 6
#16
Posted 26 October 2012 - 05:06 AM
neowillendit, on 26 October 2012 - 03:50 AM, said:
You never sleep, just as I don't either!! haha
OK, well I have 16 total 2005 redists (there are 12 in the picture attached to this post, and 4 more that I haven't put in that folder because they are newer updates to prevent DLL spoofing, so 16 total).
If you think this is getting messy, just let me know, you've been such a big help to me, and it is very appreciated, so you've done MORE than I could've asked for. Again, just let me know if this is crazy crazy work to get these little buggers installing more easily
No problem , You gave me a reason to work on a update project now
Unfortunately, MS changes the Visual C++ command switches from release to release (unlike the .msu files)
Download my revised batch to install the C++ 05 files for both x86 and x64, then create a folder called vc05
put all your 2005 .exe files in it and put it in the main Updates folder along with the batch file..
I also added a cleanup for the root drive of all the VC install files and also changed the basic ui switch /qb
to a no ui with the /qn so you don't have to see the progress bar as they install in chronological order.
Just tested this out on my W7 64-bit machine and it worked perfectly...If you have anymore batch/dos questions
you should join http://www.dostips.com/ which is a very active forum..I stay mostly over there and everyone is
very helpful and most questions are answered in less than an hour..
#17
Posted 26 October 2012 - 01:03 PM
And, I tried clicking that link for the command line switcher program but the links come up as Arabic and there's also another link that points to a suspended account. Oh well, now I good to go. :-)
Please do look me up if you ever need anything at all related to PC or Mac. (I'm on my PC and Mac about 12 hours every single day as well, been that way for about 15 years!!).
Talk soon
#18
Posted 26 October 2012 - 01:44 PM
#19
Posted 06 November 2012 - 07:07 AM
nice work!
What happen if the VC-Package is already installed?
In my istal-batches i just use the /q oder /qb - switches directly after the exes.
ie vcredist_x64.exe" /qb for Visual C++ 2008 SP1.
Why you used always the msiexec-option?
Is the name of the MSI alsways the same (vcredist.msi) also for different versions 2008/2010/2012 ??
TIA
skav



Help
Back to top









