MSFN Forum: VC++ Redists... - MSFN Forum

Jump to content


Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

VC++ Redists... Rate Topic: -----

#1 User is offline   neowillendit 

  • Beta Tester
  • Pip
  • Group: Members
  • Posts: 93
  • Joined: 06-August 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 24 October 2012 - 11:37 AM

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.


#2 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,665
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 24 October 2012 - 12:14 PM

View Postneowillendit, on 24 October 2012 - 11:37 AM, said:

Whenever I have to install Windows 7 fresh (about every 3-6 months)


Wow what are you doing to your computers! :w00t:

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.

#3 User is offline   neowillendit 

  • Beta Tester
  • Pip
  • Group: Members
  • Posts: 93
  • Joined: 06-August 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 24 October 2012 - 12:36 PM

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... :whistle:

Attached File(s)


This post has been edited by neowillendit: 24 October 2012 - 12:42 PM


#4 User is offline   neowillendit 

  • Beta Tester
  • Pip
  • Group: Members
  • Posts: 93
  • Joined: 06-August 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 24 October 2012 - 12:40 PM

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?

#5 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,665
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 24 October 2012 - 02:10 PM

For example, here is a post where a user is using a batch file to run an .exe:
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 User is offline   neowillendit 

  • Beta Tester
  • Pip
  • Group: Members
  • Posts: 93
  • Joined: 06-August 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 24 October 2012 - 04:52 PM

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...

#7 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,665
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 24 October 2012 - 05:04 PM

View Postneowillendit, on 24 October 2012 - 04:52 PM, said:

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.

#8 User is online   DosProbie 

  • Member
  • Group: Supreme Sponsor
  • Posts: 201
  • Joined: 16-October 12
  • OS:Windows 8 x64
  • Country: Country Flag

Posted 25 October 2012 - 09:14 AM

View Postneowillendit, on 24 October 2012 - 11:37 AM, said:

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!

This post has been edited by DosProbie: 25 October 2012 - 09:27 AM


#9 User is offline   neowillendit 

  • Beta Tester
  • Pip
  • Group: Members
  • Posts: 93
  • Joined: 06-August 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 25 October 2012 - 06:50 PM

Thank you very, very much DosProbie. This is exactly what I needed!! :thumbup :D :w00t:

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 User is online   DosProbie 

  • Member
  • Group: Supreme Sponsor
  • Posts: 201
  • Joined: 16-October 12
  • OS:Windows 8 x64
  • Country: Country Flag

Posted 25 October 2012 - 07:46 PM

View Postneowillendit, on 25 October 2012 - 06:50 PM, said:

Thank you very, very much DosProbie. This is exactly what I needed!! :thumbup :D :w00t:

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 :yes:.. Oh and if you need any additional switches You can use the Universal Switch Finder
from: http://www.filecrop....er-1.4.1.1.html

#11 User is offline   neowillendit 

  • Beta Tester
  • Pip
  • Group: Members
  • Posts: 93
  • Joined: 06-August 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 25 October 2012 - 07:51 PM

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

:hello: :thumbup

#12 User is online   DosProbie 

  • Member
  • Group: Supreme Sponsor
  • Posts: 201
  • Joined: 16-October 12
  • OS:Windows 8 x64
  • Country: Country Flag

Posted 25 October 2012 - 08:44 PM

Ditto as well, hope it works for you..Dos_Probie :thumbup

#13 User is offline   neowillendit 

  • Beta Tester
  • Pip
  • Group: Members
  • Posts: 93
  • Joined: 06-August 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 25 October 2012 - 10:08 PM

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?

This post has been edited by neowillendit: 25 October 2012 - 10:57 PM


#14 User is online   DosProbie 

  • Member
  • Group: Supreme Sponsor
  • Posts: 201
  • Joined: 16-October 12
  • OS:Windows 8 x64
  • Country: Country Flag

Posted 26 October 2012 - 02:23 AM

View Postneowillendit, on 25 October 2012 - 10:08 PM, said:

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?

#15 User is offline   neowillendit 

  • Beta Tester
  • Pip
  • Group: Members
  • Posts: 93
  • Joined: 06-August 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 26 October 2012 - 03:50 AM

Hello again :-)

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)



#16 User is online   DosProbie 

  • Member
  • Group: Supreme Sponsor
  • Posts: 201
  • Joined: 16-October 12
  • OS:Windows 8 x64
  • Country: Country Flag

Posted 26 October 2012 - 05:06 AM

View Postneowillendit, on 26 October 2012 - 03:50 AM, said:

Hello again :-)

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 :yes:..lol , besides I live on my computer about 12 hrs a day doing W8 and W7 projects and working on perfecting my unattended installs..
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 User is offline   neowillendit 

  • Beta Tester
  • Pip
  • Group: Members
  • Posts: 93
  • Joined: 06-August 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 26 October 2012 - 01:03 PM

Amazing, it works perfectly!!

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 B)

#18 User is online   DosProbie 

  • Member
  • Group: Supreme Sponsor
  • Posts: 201
  • Joined: 16-October 12
  • OS:Windows 8 x64
  • Country: Country Flag

Posted 26 October 2012 - 01:44 PM

Glad u got it all working now..If you do many Win7 reinstalls u may want to consider pre-installing all those updates (msxml, net framework,msu,exe,sfx files etc) via RTSevenLite and Setupcomplete like I do then you don't have to do all the post installs which can be a major time saver or you could just include all the different update scripts that i gave you and create one batch file with a menu and select each update type ... just a thought :yes:

#19 User is offline   skavenger 

  • Master of Tools
  • Pip
  • Group: Members
  • Posts: 55
  • Joined: 19-October 05
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 06 November 2012 - 07:07 AM

Hey DosProbie,

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

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy