MSFN Forum: Microsoft Visual C++ 2005 Redistributable Package - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Microsoft Visual C++ 2005 Redistributable Package Rate Topic: -----

#1 User is offline   JohnS 

  • Member
  • PipPip
  • Group: Members
  • Posts: 109
  • Joined: 14-May 05

Posted 17 April 2007 - 05:02 PM

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:

Quote

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 User is offline   JohnS 

  • Member
  • PipPip
  • Group: Members
  • Posts: 109
  • Joined: 14-May 05

Posted 25 April 2007 - 06:42 PM

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.


#3 User is offline   RyanVM 

  • Like a big surly teddy bear.
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,661
  • Joined: 31-August 03

Posted 26 April 2007 - 01:26 PM

Yipes, seems a heckuva lot easier to just extract the MSI file using WinRAR and install it with that directly.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy