JohnS Posted April 17, 2007 Posted April 17, 2007 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%\SoftwareSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Programs" /fREG ADD %KEY%19 /VE /D "Microsoft Visual C++ 2005 Libraries" /fREG 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
JohnS Posted April 26, 2007 Author Posted April 26, 2007 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.
RyanVM Posted April 26, 2007 Posted April 26, 2007 Yipes, seems a heckuva lot easier to just extract the MSI file using WinRAR and install it with that directly.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now