JohnS Posted April 17, 2007 Share 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 Link to comment Share on other sites More sharing options...
JohnS Posted April 26, 2007 Author Share 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. Link to comment Share on other sites More sharing options...
RyanVM Posted April 26, 2007 Share Posted April 26, 2007 Yipes, seems a heckuva lot easier to just extract the MSI file using WinRAR and install it with that directly. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now