rem: WScript.Echo("Ogre Application Wizard successfully installed - enjoy!"); 
add: WScript.Echo("Ogre SDK Application Wizard successfully installed - enjoy!"); 
context: function main(){	var bDebug = false;	var Args = WScript.Arguments;	if(Args.length > 0 && Args(0) == "/debug")		bDebug = true;	// Create shell object	var WSShell = WScript.CreateObject("WScript.Shell");	// Create file system object	var FileSys = WScript.CreateObject("Scripting.FileSystemObject");	var strValue = FileSys.GetAbsolutePathName(".");	if(strValue == null || strValue == "")		strValue = ".";	var strSourceFolder = strValue + "\\" + "Files";	if(bDebug)		WScript.Echo("Source: " + strSourceFolder);	if(!FileSys.FolderExists(strSourceFolder))	{		WScript.Echo("ERROR: Cannot find Wizard folder (should be: " + strSourceFolder + ")");		return;	}	var strVC8Key = "HKLM\\Software\\Microsoft\\VCExpress\\8.0\\Setup\\VC\\ProductDir";	try	{		strValue = WSShell.RegRead(strVC8Key);	}	catch(e)	{		WScript.Echo("ERROR: Cannot find where Visual Studio 8.0 is installed.");		return;	}	var strDestFolder = strValue + "\Express\\VCProjects";	if(bDebug)		WScript.Echo("Destination: " + strDestFolder);	if(!FileSys.FolderExists(strDestFolder))	{		WScript.Echo("ERROR: Cannot find destination folder (should be: " + strDestFolder + ")");		return;	}	var strDest = strDestFolder + "\\";	var strSrc = "";	// Copy files	try	{		strSrc = strSourceFolder + "\\OgreSDKAppWizard80.ico";		FileSys.CopyFile(strSrc, strDest);		strSrc = strSourceFolder + "\\OgreSDKAppWizard80.vsdir";		FileSys.CopyFile(strSrc, strDest);	}	catch(e)	{		var strError = "no info";		if(e.description.length != 0)			strError = e.description;		WScript.Echo("ERROR: Cannot copy file (" + strError + ")");		return;	}	// Read and write OgreWizard71.vsz, replace path when found	try	{		strSrc = strSourceFolder + "\\OgreSDKAppWizard80.vsz";		strDest = strDestFolder + "\\OgreSDKAppWizard80.vsz";		var ForReading = 1;		var fileSrc = FileSys.OpenTextFile(strSrc, ForReading);		if(fileSrc == null)		{			WScript.Echo("ERROR: Cannot open source file " + strSrc);			return;		}		var ForWriting = 2;		var fileDest = FileSys.OpenTextFile(strDest, ForWriting, true);		if(fileDest == null)		{			WScript.Echo("ERROR: Cannot open destination file" + strDest);			return;		}		while(!fileSrc.AtEndOfStream)		{			var strLine = fileSrc.ReadLine();			if(strLine.indexOf("ABSOLUTE_PATH") != -1)				strLine = "Param=\"ABSOLUTE_PATH = " + strSourceFolder + "\"";			fileDest.WriteLine(strLine);		}		fileSrc.Close();		fileDest.Close();	}	catch(e)	{		var strError = "no info";		if(e.description.length != 0)			strError = e.description;		WScript.Echo("ERROR: Cannot read and write OgreSDKAppWizard80.vsz (" + strError + ")");		return;	}	WScript.Echo("Ogre Application Wizard successfully installed - enjoy!");}
meta: 10348	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10348/4b9cf2d51f283494d5c8301f723e7a129f61ecbe/VC8_Express_Setup.js/buggy/trunk/tools/ogresdkwizard80/VC8_Express_Setup.js