neowillendit Posted October 24, 2012 Share Posted October 24, 2012 Hi Friends,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. Link to comment Share on other sites More sharing options...
Tripredacus Posted October 24, 2012 Share Posted October 24, 2012 Whenever I have to install Windows 7 fresh (about every 3-6 months) Wow what are you doing to your computers! Anyways, no picture is in your post. For EXEs you can use Start /Wait in a .cmd file. MSU can be installed via CMD as well. Link to comment Share on other sites More sharing options...
neowillendit Posted October 24, 2012 Author Share Posted October 24, 2012 (edited) Oh sorry, I selected it, but forgot to hit "Attach This File" I guess...and yes, I know, beta test a LOT of software, and I have a lot of FSX add-ons and they aren't compatible, and I start running into errors with FSX when starting, and the list goes on Brother... Edited October 24, 2012 by neowillendit Link to comment Share on other sites More sharing options...
neowillendit Posted October 24, 2012 Author Share Posted October 24, 2012 And I'm not quite following "Start / Wait" in a .cmd file...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? Link to comment Share on other sites More sharing options...
Tripredacus Posted October 24, 2012 Share Posted October 24, 2012 For example, here is a post where a user is using a batch file to run an .exe: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: Link to comment Share on other sites More sharing options...
neowillendit Posted October 24, 2012 Author Share Posted October 24, 2012 Sorry too be thick here...what commands do I need from post #8 at thread you gave me for MSU installation?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... Link to comment Share on other sites More sharing options...
Tripredacus Posted October 24, 2012 Share Posted October 24, 2012 Also I feel like there is important info missing in that thread because of the thread starter using another language...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. Link to comment Share on other sites More sharing options...
DosProbie Posted October 25, 2012 Share Posted October 25, 2012 (edited) Hi Friends,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! Edited October 25, 2012 by DosProbie Link to comment Share on other sites More sharing options...
neowillendit Posted October 26, 2012 Author Share Posted October 26, 2012 Thank you very, very much DosProbie. This is exactly what I needed!! 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? Link to comment Share on other sites More sharing options...
DosProbie Posted October 26, 2012 Share Posted October 26, 2012 Thank you very, very much DosProbie. This is exactly what I needed!! 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 watchthe magic .. Oh and if you need any additional switches You can use the Universal Switch Finderfrom: http://www.filecrop.com/Universal-Silent-Switch-Finder-1.4.1.1.html Link to comment Share on other sites More sharing options...
neowillendit Posted October 26, 2012 Author Share Posted October 26, 2012 Thank you so much!! And add me as a friend in case you ever need any help at all, and I might have an answer, I usually answer pretty promptly too Link to comment Share on other sites More sharing options...
DosProbie Posted October 26, 2012 Share Posted October 26, 2012 Ditto as well, hope it works for you..Dos_Probie Link to comment Share on other sites More sharing options...
neowillendit Posted October 26, 2012 Author Share Posted October 26, 2012 (edited) Hi DosProbie,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? Edited October 26, 2012 by neowillendit Link to comment Share on other sites More sharing options...
DosProbie Posted October 26, 2012 Share Posted October 26, 2012 Hi DosProbie,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? Link to comment Share on other sites More sharing options...
neowillendit Posted October 26, 2012 Author Share Posted October 26, 2012 Hello again :-)You never sleep, just as I don't either!! hahaOK, 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now