Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

VC++ Redists...

- - - - -

  • Please log in to reply
18 replies to this topic

#1
neowillendit

neowillendit

    Beta Tester

  • Member
  • Pip
  • 93 posts
  • Joined 06-August 08
  • OS:Windows 7 x64
  • Country: Country Flag
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.


How to remove advertisement from MSFN

#2
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 10,009 posts
  • Joined 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Donator

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.
MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
tpxmsfn1_zps393339c1.jpg

#3
neowillendit

neowillendit

    Beta Tester

  • Member
  • Pip
  • 93 posts
  • Joined 06-August 08
  • OS:Windows 7 x64
  • Country: Country Flag
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 Files


Edited by neowillendit, 24 October 2012 - 12:42 PM.


#4
neowillendit

neowillendit

    Beta Tester

  • Member
  • Pip
  • 93 posts
  • Joined 06-August 08
  • OS:Windows 7 x64
  • Country: Country Flag
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
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 10,009 posts
  • Joined 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Donator

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
MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
tpxmsfn1_zps393339c1.jpg

#6
neowillendit

neowillendit

    Beta Tester

  • Member
  • Pip
  • 93 posts
  • Joined 06-August 08
  • OS:Windows 7 x64
  • Country: Country Flag
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
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 10,009 posts
  • Joined 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Donator

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.
MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
tpxmsfn1_zps393339c1.jpg

#8
DosProbie

DosProbie

    Friend of MSFN

  • MSFN Sponsor
  • 784 posts
  • Joined 16-October 12
  • OS:Windows 8.1 x64
  • Country: Country Flag

Donator

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 by DosProbie, 25 October 2012 - 09:27 AM.


#9
neowillendit

neowillendit

    Beta Tester

  • Member
  • Pip
  • 93 posts
  • Joined 06-August 08
  • OS:Windows 7 x64
  • Country: Country Flag
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
DosProbie

DosProbie

    Friend of MSFN

  • MSFN Sponsor
  • 784 posts
  • Joined 16-October 12
  • OS:Windows 8.1 x64
  • Country: Country Flag

Donator

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
neowillendit

neowillendit

    Beta Tester

  • Member
  • Pip
  • 93 posts
  • Joined 06-August 08
  • OS:Windows 7 x64
  • Country: Country Flag
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
DosProbie

DosProbie

    Friend of MSFN

  • MSFN Sponsor
  • 784 posts
  • Joined 16-October 12
  • OS:Windows 8.1 x64
  • Country: Country Flag

Donator

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

#13
neowillendit

neowillendit

    Beta Tester

  • Member
  • Pip
  • 93 posts
  • Joined 06-August 08
  • OS:Windows 7 x64
  • Country: Country Flag
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 by neowillendit, 25 October 2012 - 10:57 PM.


#14
DosProbie

DosProbie

    Friend of MSFN

  • MSFN Sponsor
  • 784 posts
  • Joined 16-October 12
  • OS:Windows 8.1 x64
  • Country: Country Flag

Donator

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
neowillendit

neowillendit

    Beta Tester

  • Member
  • Pip
  • 93 posts
  • Joined 06-August 08
  • OS:Windows 7 x64
  • Country: Country Flag
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 Files



#16
DosProbie

DosProbie

    Friend of MSFN

  • MSFN Sponsor
  • 784 posts
  • Joined 16-October 12
  • OS:Windows 8.1 x64
  • Country: Country Flag

Donator

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
neowillendit

neowillendit

    Beta Tester

  • Member
  • Pip
  • 93 posts
  • Joined 06-August 08
  • OS:Windows 7 x64
  • Country: Country Flag
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
DosProbie

DosProbie

    Friend of MSFN

  • MSFN Sponsor
  • 784 posts
  • Joined 16-October 12
  • OS:Windows 8.1 x64
  • Country: Country Flag

Donator

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
skavenger

skavenger

    Master of Tools

  • Member
  • Pip
  • 55 posts
  • Joined 19-October 05
  • OS:Windows 7 x64
  • Country: Country Flag
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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users