+2257. [bug] win32: Use the full path to vcredist_x86.exe when
+ calling it. [RT #17222]
+
2256. [bug] win32: Correctly register the installation location of
bindevt.dll. [RT #17159]
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: BINDInstallDlg.cpp,v 1.36 2007/10/31 00:05:36 marka Exp $ */
+/* $Id: BINDInstallDlg.cpp,v 1.37 2007/10/31 01:34:19 marka Exp $ */
/*
* Copyright (c) 1999-2000 by Nortel Networks Corporation
* User pressed the install button. Make it go.
*/
void CBINDInstallDlg::OnInstall() {
+#if _MSC_VER >= 1400
+ char Vcredist_x86[MAX_PATH];
+#endif
BOOL success = FALSE;
int oldlen;
* Vcredist_x86.exe /q:a /c:"msiexec /i vcredist.msi /qn /l*v %temp%\vcredist_x86.log"
*/
/*system(".\\Vcredist_x86.exe /q:a /c:\"msiexec /i vcredist.msi /qn /l*v %temp%\vcredist_x86.log\"");*/
- system(".\\Vcredist_x86.exe");
+
+ /*
+ * Enclose full path to Vcredist_x86.exe in quotes as
+ * m_currentDir may contain spaces.
+ */
+ sprintf(Vcredist_x86, "\"%s\\Vcredist_x86.exe\"",
+ (LPCTSTR) m_currentDir);
+ system(Vcredist_x86);
#endif
try {
CreateDirs();