Jump to content

Recommended Posts

Posted

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

  • 2 weeks later...

Posted

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.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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