Mededeling

Collapse
No announcement yet.

WPI opent op kladblok

Collapse
X
  •  
  • Filter
  • Tijd
  • Show
Clear All
new posts

  • WPI opent op kladblok

    hallo,als ik een dvd van win xp black edit. in mn dvdspeler doe leest hij m wel maar opent niet meer automatisch.
    als ik dan naar deze computer ga en daar de drive aanklik opent hij hij wel en krijg ik een keuzescherm tezien, als ik dan klik op launch windows post installer, dan krijg ik het volgende te zien>

    EC edit:
    De code binnen [code][/code]-tags gezet om de lay-out te besparen.

    Code:
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <title>Windows Post-Install Wizard</title>
    <meta HTTP-EQUIV="MSThemeCompatible" content="yes">
    <HTA:APPLICATION ID="oWPI" 
    	application="yes"
    	applicationName="Windows Post-Install Wizard" 
    	border="none"
    	borderStyle="normal"
    	caption="yes"
    	contextMenu="yes"
    	icon="./wpi.ico"
    	innerBorder="no"
    	maximizeButton="yes"
    	minimizeButton="yes"
    	navigable="yes"
    	scroll="no"
    	scrollFlat="no"
    	selection="no"
    	showInTaskBar="yes"
    	singleInstance="yes"
    	sysMenu="yes"
    	version="5.6"
    	windowState="maximize" />
    
    <script type="text/javascript" src="./WPIScripts/globals.js" application="yes">
    </script>
    <script type="text/javascript" src="./WPIScripts/core.js" application="yes">
    </script>
    <script	type="text/javascript" src="./WPIScripts/api.js" application="yes">
    </script>
    
    <script type="text/javascript">
        defaultWPI();                                                               // Set the default paths
    
    	if (getOSver()=="XP")
    	{
    		WshShell.RegWrite("HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\Download\\CheckExeSignatures","no");
    		WshShell.RegWrite("HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\Download\\RunInvalidSignatures","dword:00000001");
    		WshShell.RegWrite("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Associations\\LowRiskFileTypes",".js;.zip;.rar;.nfo;.txt;.exe;.bat;.com;.cmd;.reg;.msi;.hta;.htm;.html;.gif;.bmp;.jpg;.avi;.mpg;.mpeg;.mov;.mp3;.m3u;.wav;");
    	}
    </script>
    
    <script type="text/javascript"> 	
    	var fullpath, regexpSearch, argLine, WPIcmdArgs;
    	
    	fullpath = new String(unescape(document.location));
        fullpath = fullpath.replace("file:///","").replace(/\//g,"\\\\");
    	regexpSearch = new RegExp('^"'+fullpath+'"',"i");
    	argLine = new String(oWPI.commandLine.replace(regexpSearch,''));
    	
    	if (argLine)
    	{
    		var std = '\\S+|".+"';											        //standard argument w/o Whitespace, or quoted (optionally prefixed)
    		var num = '\\d+';														//numeric argument
    		var Quoted = '"([a-z]:|\\.{1,2})(\\\\[^"*/:<>?\\\\|]+)+\\.js"';			//path to .js file, quoted
    		var NoWSpc =  '([a-z]:|\\.{1,2})(\\\\[^ "*/:<>?\\\\|]+)+\\.js';			//path to .js file, no Whitespace
    		var optionsPattern = 'options=('+NoWSpc+'|'+Quoted+'|[^ "*/:<>?\\\\|]+\\.js)';
    		var configPattern = 'config=('+NoWSpc+'|'+Quoted+'|[^ "*/:<>?\\\\|]+\\.js)';
    		var checkOLPattern = 'check=('+std+')';
    		var timerPattern = 'timer=('+num+')';
    		cmdLinePattern = '^( +('+optionsPattern+'|'+configPattern+'|'+checkOLPattern+'|'+timerPattern+'|('+num+')|('+std+')))*$'; //any combination of the above, with spaces inbetween
    		regexpSearch = new RegExp(cmdLinePattern,"i");		
    		WPIcmdArgs = argLine.match(regexpSearch);
            if (WPIcmdArgs && WPIcmdArgs[3])										//We've got a match on a config .js file (if > 1 match, only the last one is recorded)
    		{
    			optionsFile = WPIcmdArgs[3];
    			if (optionsFile.substr(0, 1) == '"')								//remove quotes if any
    				optionsFile = optionsFile.substring(1, optionsFile.length - 1);
    			if (optionsFile.indexOf('\\') == -1)								//no path -> in WPIScripts
    				optionsFile=".\\WPIScripts\\"+optionsFile;
    			if (!FileExists(optionsFile))										//Is it valid?
    				optionsFile = '';
    		}
    		if (WPIcmdArgs && WPIcmdArgs[8])										//We've got a match on an option .js file (if > 1 match, only the last one is recorded)
    		{
    			configFile = WPIcmdArgs[8];
    			if (configFile.substr(0, 1) == '"')									//remove quotes if any
    				configFile = configFile.substring(1, configFile.length - 1);
    			if (configFile.indexOf('\\') == -1)									//no path -> in WPIScripts
    				configFile=".\\WPIScripts\\"+configFile;
    			if (!FileExists(configFile))										//Is it valid?
    				configFile = '';
    		}
    		if (WPIcmdArgs && WPIcmdArgs[13])										//We've got a match on a check on load option
    		{
    			checkOL = WPIcmdArgs[13];
    			if (checkOL.substr(0, 1) == '"')									//remove quotes if any
    				checkOL = checkOL.substring(1, checkOL.length - 1);
    		}
    		if (WPIcmdArgs && WPIcmdArgs[14] && WPIcmdArgs[14] <= 3600)				//We've got a match on a timer seconds option
    			timerSecs = WPIcmdArgs[14];
    
    		// For backwards compatibilty only.  Will be removed in the future.
    		if (WPIcmdArgs && WPIcmdArgs[15] && WPIcmdArgs[15] <= 3600)				//We've got a match on a number. This is for the timer.
    			timerSecs = WPIcmdArgs[15];
    		if (WPIcmdArgs && WPIcmdArgs[16])										//We've got a match on a generic argument. Give it to CheckOnLoad.
    			checkOL = WPIcmdArgs[16];
    	}
    	
        if (!FileExists(optionsFile))												//No argument or invalid file
    	{
    		try																		//have a look in the registry
    		{
    			optionsFile=WshShell.RegRead("HKEY_CURRENT_USER\\Software\\WPI\\OptionsFile");
    		} 
    		catch(ex) 																//nothing up there
    		{ ; }
    		if (!FileExists(optionsFile))											//No reg key or invalid file
    			optionsFile = optionsDefault ;										//... so let's take the default location
    	}
    	else
    		optionsFile = optionsFile.replace(/\\/g, '/'); 
    	
    	if (!FileExists(configFile))												//Same goes for the config file
    	{
    		try
    		{
    			configFile=WshShell.RegRead("HKEY_CURRENT_USER\\Software\\WPI\\ConfigFile");
    		} 
    		catch(ex) 
    		{ ; } 
    		if (!FileExists(configFile))	
    			configFile = configDefault ;
    	} 
    	else
    		configFile = configFile.replace(/\\/g, '/'); 
    </script>
    
    <script type="text/javascript">
    	var line=new String();	
    	var num=1;
    
    	if (FileExists(optionsFile))
    	{
    		try 
    		{
    			tf = fso.OpenTextFile(optionsFile, 1);
    			while (num==1 && !tf.AtEndOfStream)
    			{
    				line = tf.ReadLine();
    				if (line != "// WPI Options 5.0+")
    				{
    					alert("This 'useroptions.js' file is not a v5.0 compatible file.\n\nDelete the file and start WPI again.");
    					ExitWPI();
    				}
    				num++;
    			}
    		}
    		catch(ex) 
    		{ ; }
    		finally 
    		{	
    			tf.Close(); 
    		}
    	}
    </script>
    <script type="text/javascript"> 	
    	document.write('<script	type="text/javascript" src="'+optionsFile+'" application="yes"></' + 'script>');
    </script>
    
    <script	type="text/javascript" src="./Lang/lang_en.js" application="yes">
    </script>
    
    <script	type="text/javascript">
    	if (Language == 'zz')
    		Language = (navigator.language ? navigator.language : navigator.userLanguage).substr(0,2);
    	if (!FileExists(wpipath+"\\Lang\\lang_"+Language+".js"))
    		Language="en";
    	if (Language != 'en')
    		document.write('<script	type="text/javascript" src="./Lang/lang_'+Language+'.js" application="yes"></' + 'script>');
    </script>
    
    <script type="text/javascript">
    	try
    	{
    		WshShell.regWrite("HKEY_CURRENT_USER\\Software\\WPI\\Theme",Theme,"REG_SZ");
    		WshShell.regWrite("HKEY_CURRENT_USER\\Software\\WPI\\Language",Language,"REG_SZ");
    		WshShell.regWrite("HKEY_CURRENT_USER\\Software\\WPI\\PlayAudioInInstaller",PlayAudioInInstaller,"REG_SZ");
    	}
    	catch (ex)
    	{;}
    </script>   
    
    <script type="text/javascript" src="./WPIScripts/reboot.js" application="yes">
    </script>
    
    <script type="text/javascript">
    	var msg="WPI has detected a previous installation that has not completed.\nWould you like to continue the installation?\nClick Ok to continue installation. Click Cancel to abort previous installation.";
    
    	try						//Check for an interrupted install
    	{
    		ResumeInstall = WshShell.regRead("HKEY_CURRENT_USER\\Software\\WPI\\ResumeInstall");
    	}
    	catch (ex)
    	{
    		WshShell.regWrite("HKEY_CURRENT_USER\\Software\\WPI\\ResumeInstall",0,"REG_DWORD");
    		ResumeInstall=false;
    	}
    
    	ResumeInstall==1 ? ResumeInstall=true : ResumeInstall=false;
    	
    	if (ResumeInstall)
    	{
    		if (confirm(msg))												//Prompt user to continue interrupted install
    		{
    			strFile=wpipath+"\\Common\\Installer.hta?RI=true&Theme=" + Theme + "&PAI=" + PlayAudioInInstaller;
    			WshShell.Run('mshta "'+strFile+'"',1,false);								//Resume install
    			self.close();
    		}
    		else
    		{
    			ResumeInstall=false;
    			DeleteRebootFile();
    			try													//Clean up registry
    			{
    				WshShell.regWrite("HKEY_CURRENT_USER\\Software\\WPI\\ResumeInstall",0,"REG_DWORD");
    				WshShell.regDelete("HKEY_CURRENT_USER\\Software\\WPI\\CurrentInstall");
    				WshShell.regDelete("HKEY_CURRENT_USER\\Software\\WPI\\LastExec");
    				WshShell.regDelete("HKEY_CURRENT_USER\\Software\\WPI\\LastTopLine");
    			}
    			catch (ex)
    			{;}
    		}
    	}
    </script>
    
    <script type="text/javascript">
    	var args="";
    
    	if (MonitorResolution != 0 || MonitorDepth != 0 || MonitorRefresh != 0)
    	{
    		strFile=wpipath+"\\Tools\\ResChange.exe";
    		if (FileExists(strFile))
    		{
    			if (MonitorResolution != 0)
    			{
    				switch(MonitorResolution)
    				{
    					case 800:
    						args += "-width=800 -height=600 ";
    						break;
    
    					case 1024:
    						args += "-width=1024 -height=768 ";
    						break;
    
    					case 1280:
    						args += "-width=1280 -height=1024 ";
    						break;
    
    					case 1600:
    						args += "-width=1600 -height=1200 ";
    						break;
    				}
    			}
    			if (MonitorDepth != 0)
    			{
    				args += "-depth=";
    				if (MonitorDepth==999)
    					args += "max ";
    				else
    					args += MonitorDepth+" ";
    			}
    			if (MonitorRefresh != 0)
    			{
    				args += "-refresh=";
    				if (MonitorRefresh==999)
    					args += "max";
    				else
    					args += MonitorRefresh;
    			}
    			args += " -quiet -force";
    			WshShell.Run('"'+strFile+'" '+args,0,true);
    		}
    		else
    		{
    			alert("'Tools\\ResChange.exe' does not exist.");
    			ExitWPI();
    		}
    	}
    
    	if (InstallFonts)
    	{
    		strFile=wpipath+"\\Tools\\Fonts\\FontInstaller.exe";
    		if (FileExists(strFile))
    			WshShell.Run('"'+strFile+'"',0,true);
    		else
    		{
    			alert("'Tools\\Fonts\\FontInstaller.exe' does not exist.");
    			ExitWPI();
    		}	
    	}
    </script>
    
    <script type="text/javascript"> 	
    	document.write('<script	type="text/javascript" src="'+configFile+'" application="yes"></' + 'script>');
    </script>
    
    <script type="text/javascript">
    	if (checkOL)
    		CheckOnLoad=checkOL;
    
    	if (timerSecs)
    	{
            Timer=true;
    		Seconds=timerSecs;
    	}
    </script>
    
    <script type="text/javascript"> 	
    	document.write('<script	type="text/javascript" src="./Themes/'+Theme+'/wpi_style.js" application="yes"></' + 'script>');
    </script>
    <script type="text/javascript" src="./WPIScripts/main.js" application="yes">
    </script>
    <script	type="text/javascript" src="./WPIScripts/program.js" application="yes">
    </script>   
    <script	type="text/javascript" src="./WPIScripts/optionswizard.js" application="yes">
    </script>   
    <script	type="text/javascript" src="./WPIScripts/configwizard.js" application="yes">
    </script>
    <script	type="text/javascript" src="./WPIScripts/installer.js" application="yes">
    </script>
    <script	type="text/javascript" src="./WPIScripts/installer_log.js" application="yes">
    </script>
    <script	type="text/javascript" src="./WPIScripts/boxes.js" application="yes">
    </script>
    <script	type="text/javascript" src="./WPIScripts/check.js" application="yes">
    </script>     
    <script type="text/javascript" src="./WPIScripts/timers.js" application="yes">   
    </script>   
    <script type="text/javascript" src="./WPIScripts/selecthandler.js" application="yes">   
    </script>   
    <script type="text/javascript" src="./WPIScripts/tips.js" application="yes">
    </script>
    <script type="text/javascript" src="./WPIScripts/dhtmlXTabbar.js" application="yes">   
    </script>   
    <script type="text/javascript" src="./WPIScripts/dhtmlXTree.js" application="yes">   
    </script>   
    <script type="text/javascript" src="./WPIScripts/dhtmlXCommon.js" application="yes">   
    </script>   
    
    <script type="text/javascript">   
    	window.onerror = handleErrors; // or null to suppress error message
    
    function handleErrors(msg, url, line)
    {
    	var errorString  = "JavaScript Error Report\n\n";
    	errorString += " Message: "+msg+"\n";
    	errorString += "     Url: "+url+"\n";
    	errorString += "    File: "+position+"\n";
    	errorString += "Function: "+whatfunc+"\n";
    	errorString += "    Line: "+(line-1);
    	alert(errorString);
    
    	return true;
    }
    </script>
    
    <script type="text/javascript">
        if (!LoadThemedContent())
    		ExitWPI();
    </script>
    
    </head>
    </html>

    eerst startte wpi wel gewoon op. mis ik een plugin ofzo?? zo ja welke?
    bvd. me hijackthis log staat onder"meerdere problemen'' in t hijackthis forum.
    Last edited by Eagle Creek; 19-04-08, 03:47.
Sorry, you are not authorized to view this page
Working...
X