Jump to content

Microsoft Visual C++ 2005 Redistributable Package


Recommended Posts

Well, I haven't seen any interest in this but I'll post it anyway, as I have had the need to run a program that depends of those libraries.

Credits to this page.

I install it via RunOnceEx:

FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\CD.txt SET CDROM=%%i:

SET PP=%CDROM%\Software

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Programs" /f

REG ADD %KEY%19 /VE /D "Microsoft Visual C++ 2005 Libraries" /f

REG ADD %KEY%19 /V 1 /D "%PP%\MS Visual C++\vcredist_x86.exe /q:a /c:\"VCREDI~1.EXE /q:a /c:""msiexec /i vcredist.msi /qb!"" \"" /f

Link to comment
Share on other sites

  • 2 weeks later...

I am sorry, but the code previously posted does not work via RunOnceEx.

It gives an error message stating that there are to many variables.

Sorry, but I cannot make it work, so I would appreciate some help to make it work with a batch script.

But I managed to make it work with an Autoit script:

RunWait(@ComSpec & " /c Start " & @ScriptDir & '\vcredist_x86.exe /q:a /c:"VCREDI~1.EXE /q:a /c:""msiexec /i vcredist.msi /qb!"" "')
ProcessWait("vcredist_x86.exe", 2);Pauses script execution until process exists.
ProcessWaitClose("vcredist_x86.exe");Pauses script execution until the process does not exist.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...