fixed #459 template for vs use the Multi-ThreadDLL instead the error setting MT.

This commit is contained in:
yangws 2011-05-03 14:28:31 +08:00
parent e723a424d8
commit f288516b89
5 changed files with 58 additions and 6 deletions

View File

@ -205,14 +205,14 @@ function AddConfigurations(proj, strProjectName) {
CLTool.UsePrecompiledHeader = pchNone; // pchUseUsingSpecific; CLTool.UsePrecompiledHeader = pchNone; // pchUseUsingSpecific;
CLTool.WarningLevel = warningLevel_3; CLTool.WarningLevel = warningLevel_3;
if (bDebug) { if (bDebug) {
CLTool.RuntimeLibrary = rtMultiThreadedDebug; CLTool.RuntimeLibrary = rtMultiThreadedDebugDLL;
CLTool.MinimalRebuild = true; CLTool.MinimalRebuild = true;
CLTool.DebugInformationFormat = debugEditAndContinue; CLTool.DebugInformationFormat = debugEditAndContinue;
CLTool.BasicRuntimeChecks = runtimeBasicCheckAll; CLTool.BasicRuntimeChecks = runtimeBasicCheckAll;
CLTool.Optimization = optimizeDisabled; CLTool.Optimization = optimizeDisabled;
} }
else { else {
CLTool.RuntimeLibrary = rtMultiThreaded; CLTool.RuntimeLibrary = rtMultiThreadedDLL;
CLTool.ExceptionHandling = false; CLTool.ExceptionHandling = false;
CLTool.DebugInformationFormat = debugDisabled; CLTool.DebugInformationFormat = debugDisabled;
} }

View File

@ -2,6 +2,19 @@
main(); main();
function EchoInfo(bQuiet, strMsg) {
if (! bQuiet) {
WScript.Echo(strMsg);
}
else {
var FileSys = new ActiveXObject("Scripting.FileSystemObject");
var strLogPath = "InstallWizardLog.txt"
var file = FileSys.OpenTextFile(strLogPath, 8, true);
file.WriteLine(strMsg);
file.Close();
}
}
function EchoError(bQuiet, strMsg) { function EchoError(bQuiet, strMsg) {
strMsg = "Error: " + strMsg; strMsg = "Error: " + strMsg;
if (! bQuiet) { if (! bQuiet) {
@ -226,5 +239,5 @@ function main() {
return; return;
} }
EchoError(bQuiet, "App Wizard successfully installed for VC2008 Express!"); EchoInfo(bQuiet, "App Wizard successfully installed for VC2008 Express!");
} }

View File

@ -2,6 +2,19 @@
main(); main();
function EchoInfo(bQuiet, strMsg) {
if (! bQuiet) {
WScript.Echo(strMsg);
}
else {
var FileSys = new ActiveXObject("Scripting.FileSystemObject");
var strLogPath = "InstallWizardLog.txt"
var file = FileSys.OpenTextFile(strLogPath, 8, true);
file.WriteLine(strMsg);
file.Close();
}
}
function EchoError(bQuiet, strMsg) { function EchoError(bQuiet, strMsg) {
strMsg = "Error: " + strMsg; strMsg = "Error: " + strMsg;
if (! bQuiet) { if (! bQuiet) {
@ -226,5 +239,5 @@ function main() {
return; return;
} }
EchoError(bQuiet, "App Wizard successfully installed for VC2010 Express!"); EchoInfo(bQuiet, "App Wizard successfully installed for VC2010 Express!");
} }

View File

@ -2,6 +2,19 @@
main(); main();
function EchoInfo(bQuiet, strMsg) {
if (! bQuiet) {
WScript.Echo(strMsg);
}
else {
var FileSys = new ActiveXObject("Scripting.FileSystemObject");
var strLogPath = "InstallWizardLog.txt"
var file = FileSys.OpenTextFile(strLogPath, 8, true);
file.WriteLine(strMsg);
file.Close();
}
}
function EchoError(bQuiet, strMsg) { function EchoError(bQuiet, strMsg) {
strMsg = "Error: " + strMsg; strMsg = "Error: " + strMsg;
if (! bQuiet) { if (! bQuiet) {
@ -223,5 +236,5 @@ function main() {
return; return;
} }
EchoError(bQuiet, "App Wizard successfully installed for VS2008!"); EchoInfo(bQuiet, "App Wizard successfully installed for VS2008!");
} }

View File

@ -2,6 +2,19 @@
main(); main();
function EchoInfo(bQuiet, strMsg) {
if (! bQuiet) {
WScript.Echo(strMsg);
}
else {
var FileSys = new ActiveXObject("Scripting.FileSystemObject");
var strLogPath = "InstallWizardLog.txt"
var file = FileSys.OpenTextFile(strLogPath, 8, true);
file.WriteLine(strMsg);
file.Close();
}
}
function EchoError(bQuiet, strMsg) { function EchoError(bQuiet, strMsg) {
strMsg = "Error: " + strMsg; strMsg = "Error: " + strMsg;
if (! bQuiet) { if (! bQuiet) {
@ -223,5 +236,5 @@ function main() {
return; return;
} }
EchoError(bQuiet, "App Wizard successfully installed for VS2010!"); EchoInfo(bQuiet, "App Wizard successfully installed for VS2010!");
} }