Jump to content

Outbreaker

Member
  • Posts

    376
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Luxembourg

Everything posted by Outbreaker

  1. Okay i now used Microsoft Update instead of Windows Updated and now i get also the same error on POSReady 2009. Nice done MickeySoft.
  2. The POSReady 2009 does not have this problem and it also has no auth.cab, muauth.cab, muweb.cab or muweb.dll file. The wuweb.dll file version is 7.6.7600.257
  3. Thank you for the help was looking 2 days for a solution for this.
  4. Oh okay now it works i didn't know i had to also include "cmd.exe /C". @Tripredacus It's for a Unattended Setup so this wouldn't work if a user changes his password or deletes the user profile.
  5. Unfortunately the tool "RunFromProcess" is not compatible with Windwos XP. Here is what i exactly try to do: I want to execute the command ("%ProgramFiles%\K-Lite Codec Pack\Tools\CodecTweakTool.exe" /verysilent /update /freq=7) every 2 days, but i can't do this in the Windwos XP Scheduled Task because this wont work when i run it a SYSTEM user. An alternative i tried was this Scheduled Task command: SCHTASKS /Create /RU "SYSTEM" /SC DAILY /MO 7 /TN "K-Lite Codec Pack Update Checker" /TR "REG ADD \"HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce\" /v \"K-Lite Codec Pack Update Checker\" /t REG_EXPAND_SZ /d \"\\"\""%\"ProgramFiles\"%\K-Lite Codec Pack\Tools\CodecTweakTool.exe\\"\"" /verysilent /update /freq=7\" /f"This will add a registry entry to the RunOnce key so that this command above would be only once executed after a Admin login. But unfortunately this doesn't work with a Dial Up connection or when manually login into a modem because this comment will be then executed before an internet connection could be established. So i'm trying now to find another way to fix this problem.
  6. In Windows XP you can create a Task that automatically runs a file with the SYSTEM user this way no password is required. But when running the Task as SYSTEM then it will not run any interactive processes. So i try to find a way to overcome this problem, The only idea i had was to use a script that would sit in the middle and would then be run by the Task with the SYSTEM user and the script would then execute an .exe file as the Current Login User without the need to enter the user account password.
  7. HI, I like to make a Schedule Task on Windows XP that would run without the need to enter a password. The only solution for this would be to run the task with the SYSTEM account but this won't allow me to execute an .exe file (interactive processes). Is it possible to make a .cmd or .vbs script that would run with the SYSTEM acccount but would execute an .exe file with the Current User account?
  8. I also noticed that the "browsewm.dll" file is not a part of POSReady 2009 but it is included in the IE6 HotFix. So much for the Microsoft claim that this POSReady 2009 updates are not for Windows XP.
  9. Ahh thanks, that is what i was looking for now the HTA Script is now working excellent. And the 'replaceAll' commend i found in google but i think that one was for jQuery or JaveScript. I'm sorry for all the noob questions but i'm really not a coder unfortunately i had to use a HTA Script for my little free project there was no way around it.
  10. It works but thier is a little problem it replaces "(+basepath+)" only once in a entry VALUE. I did try to change 'replace' to 'replaceAll' but that didn't work at all. Example .hta Script: <!--This code is property of Gunsmokingman and Or Jake1Eye and you must have his permission to use.This is only posted as example code and meant only to used as such.--><TITLE> « Test Script » </TITLE><HTA:APPLICATION ID="TESTSCRIPT" SCROLL="no" SCROLLFLAT="no" SINGLEINSTANCE="yes" SHOWINTASKBAR="yes" SYAMENU="yes" MAXIMIZEBUTTON="no" MINIMIZEBUTTON="yes" CONTEXTMENU="no" NAVIGABLE="no" BORDER="thin" BORDERSTYLE="normal" INNERBORDER="no" CAPTION="yes" WINDOWSTATE="normal" APPLICATIONNAME="Test_Script" ICON="%SystemRoot%\explorer.exe"><script language="JavaScript">//-> Resize And Place In Approx Centerwindow.resizeTo(300,160)window.moveTo(screen.availWidth/2-(300/2),screen.availHeight/2-(160/2))//-> Objects For Runtimevar Act = new ActiveXObject("Wscript.Shell");var fso = new ActiveXObject("Scripting.FileSystemObject");var Wmi = GetObject("winmgmts:{impersonationLevel=impersonate}!\\\\.\\root\\cimv2");//-> Runtime Variblevar c34 = String.fromCharCode(34);var HtaPath = TESTSCRIPT.commandLine.replace(c34,"");var basepath = new Array;//-> Body OnLoad Functionwindow.onload=function() { basepath = HtaPath.split('\\'); basepath.pop(); basepath = basepath.join('\\');}//-> Process Only Checked Checkboxesfunction submit() { for (var i = 0; i < cbo.length; i++) { if (cbo[i].value==null==false && cbo[i].checked) { try { alert(cbo[i].value.replace("(+basepath+)",Act.CurrentDirectory),1,true); } catch(e) { /*Error Code For Selected But Could Not Run*/; } } } window.close();}//-> Close HTAfunction closehta() { var Q=Wmi.ExecQuery("SELECT * FROM Win32_Process") for (var e=new Enumerator(Q); !e.atEnd(); e.moveNext()) { var p = e.item(); if (p.CommandLine==null==false && p.name =="mshta.exe") { var a = p.commandLine.replace('"',"") var b = p.ExecutablePath + HtaPath if (a.length==b.length+3==true) { TKill(p.ProcessId); } } }}//-> Kills ProcessIDfunction TKill(K) { var Q=Wmi.ExecQuery("SELECT * FROM Win32_Process Where ProcessID='"+K+"'") for (var e=new Enumerator(Q); !e.atEnd(); e.moveNext()) { var p = e.item(); p.Terminate(); }}</script><body onbeforeunload="closehta()"><table width="100%" align="center" border="1"> <td valign="top"> <table> <tr> <td class="c1">Demo</td> <td><input type="checkbox" id="cbo" name="checkbox1" value='"%WinDir%\system32\calc.exe"' checked></input> </td> </tr> <tr> <td class="c1">INI Config file path Problem</td> <td><input type="checkbox" id="cbo" name="checkbox2" value='"(+basepath+)\..\Programs\File.exe" /INI=(+basepath+)\..\Settings\Config.ini' checked></input> </td> </tr> </table> </td></table><table width="60%" align="center" style="margin:8px 0px 0px 0px;"> <tr> <td align="center"><button type="button" id="btc" Style="width:100px;" onclick="submit()">Submit</button></td> <td align="center"><button type="button" id="btc" Style="width:100px;" onclick="closehta()">Quit</button></td> </tr></table></body>
  11. Thanks for the help but i have problems to implement this examples into the Script i'm using. Here is a trimmed down version of the script i use, the idea i had was to use for example a command like (+basepath+) that would print out the Script current working directory. value='"..\Programs\Mozilla Firefox v26.0.exe" /INI=(+basepath+)\..\Settings\Config.ini' checked></input><!--This code is property of Gunsmokingman and Or Jake1Eye and you must have his permission to use.This is only posted as example code and meant only to used as such.--><TITLE> « Test Script » </TITLE><HTA:APPLICATION ID="TESTSCRIPT" SCROLL="no" SCROLLFLAT="no" SINGLEINSTANCE="yes" SHOWINTASKBAR="yes" SYAMENU="yes" MAXIMIZEBUTTON="no" MINIMIZEBUTTON="yes" CONTEXTMENU="no" NAVIGABLE="no" BORDER="thin" BORDERSTYLE="normal" INNERBORDER="no" CAPTION="yes" WINDOWSTATE="normal" APPLICATIONNAME="Test_Script" ICON="%SystemRoot%\explorer.exe"><script language="JavaScript">//-> Resize And Place In Approx Centerwindow.resizeTo(300,160)window.moveTo(screen.availWidth/2-(300/2),screen.availHeight/2-(160/2))//-> Objects For Runtimevar Act = new ActiveXObject("Wscript.Shell");var fso = new ActiveXObject("Scripting.FileSystemObject");var Wmi = GetObject("winmgmts:{impersonationLevel=impersonate}!\\\\.\\root\\cimv2");//-> Runtime Variblevar c34 = String.fromCharCode(34);var HtaPath = TESTSCRIPT.commandLine.replace(c34,"");var basepath = new Array;//-> Body OnLoad Functionwindow.onload=function() { basepath = HtaPath.split('\\'); basepath.pop(); basepath = basepath.join('\\'); Act.CurrentDirectory = basepath;}//-> Process Only Checked Checkboxesfunction submit() { for (var i = 0; i < cbo.length; i++) { if (cbo[i].value==null==false && cbo[i].checked) { try { Act.Run(Act.ExpandEnvironmentStrings(cbo[i].value),1,true); } catch(e) { /*Error Code For Selected But Could Not Run*/; } } } window.close();}//-> Close HTAfunction closehta() { var Q=Wmi.ExecQuery("SELECT * FROM Win32_Process") for (var e=new Enumerator(Q); !e.atEnd(); e.moveNext()) { var p = e.item(); if (p.CommandLine==null==false && p.name =="mshta.exe") { var a = p.commandLine.replace('"',"") var b = p.ExecutablePath + HtaPath if (a.length==b.length+3==true) { TKill(p.ProcessId); } } }}//-> Kills ProcessIDfunction TKill(K) { var Q=Wmi.ExecQuery("SELECT * FROM Win32_Process Where ProcessID='"+K+"'") for (var e=new Enumerator(Q); !e.atEnd(); e.moveNext()) { var p = e.item(); p.Terminate(); }}</script><body onbeforeunload="closehta()"><table width="100%" align="center" border="1"> <td valign="top"> <table> <tr> <td class="c1">Demo</td> <td><input type="checkbox" id="cbo" name="checkbox1" value='"%WinDir%\system32\calc.exe"' checked></input> </td> </tr> <tr> <td class="c1">INI Config file path Problem</td> <td><input type="checkbox" id="cbo" name="checkbox2" value='"..\Programs\File.exe" /INI=(+basepath+)\..\Settings\Config.ini' checked></input> </td> </tr> </table> </td></table><table width="60%" align="center" style="margin:8px 0px 0px 0px;"> <tr> <td align="center"><button type="button" id="btc" Style="width:100px;" onclick="submit()">Submit</button></td> <td align="center"><button type="button" id="btc" Style="width:100px;" onclick="closehta()">Quit</button></td> </tr></table></body>
  12. UPS sorry, ignore the %CD% i only want the script to point (print out) to the full path. LIKE: /INI="..\Settings\ProgramConfig.ini"' And if the script is in "F:\OEM\RunOnce\Scripts\" then the script should add this full path: /INI="F:\OEM\RunOnce\Settings\ProgramConfig.ini"'
  13. Shouldn't then this here not work when i replace "Act.ExpandEnvironmentStrings" with "Act.CurrentDirectory"? var Wmi = GetObject("winmgmts:{impersonationLevel=impersonate}!\\\\.\\root\\cimv2");var Act = new ActiveXObject("Wscript.Shell");Act.Run(Act.CurrentDirectory(cbo[i].value),1,true);<input type="checkbox" id="cbo" name="checkbox1" value='"..\Programs\File.exe" /INI="..\Settings\Config.ini"' checked</input>The problem is that there is a problem that is insisting that i point to the full path for the silent installation Config.ini file.
  14. HI, Is it possible to get this DOS commend line "%CD%\..\Settings\File.ini" to work whit a VBScript? It works in a CMD window but i cannot get it to work whit a VBScript. var Wmi = GetObject("winmgmts:{impersonationLevel=impersonate}!\\\\.\\root\\cimv2");var Act = new ActiveXObject("Wscript.Shell"); Act.Run(Act.ExpandEnvironmentStrings(cbo[i].value),1,true);<input type="checkbox" id="cbo" name="checkbox1" value='"..\Programs\File.exe" /INI="%CD%\..\Settings\File.ini"' checked</input>
  15. Outbreaker

    nLite 1.4.9.3

    Check back in 5 years.
  16. Thanks guys everything is now working with "IF !ERRORLEVEL! EQU 0 (" .
  17. I did everything you said but i still get this error: HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ixhplayerg.apl\shell 'do' is not recognized as an internal or external command, operable program or batch file. Press any key to continue . . .
  18. HI, I did a little script but i'm stuck at the stage where the script should checks if a registry entry exists and if one exists then the script should add the additional registry keys. Everything works except this check thing. SETLOCALSET SC=HKLM\SOFTWARE\ClassesSET Extn=3g2-0 3ga-0 3gp-0 3gp2-0 3gpp-0 aac-0 ac3-0 aif-0 aifc-0 aiff-0 alac-0 amr-0 amv-0 aob-0 ape-0 apl-0for %%j in (%Extn%) do ( for /f "tokens=1,2 delims=-" %%a in ("%%j") do ( REG QUERY "%SC%\ixhplayerg.%%a" 1>NUL IF "%ERRORLEVEL%"=="0" do ( REG ADD "%SC%\ixhplayerg.%%a\shell\enqueue" /ve /t REG_SZ /d "Add to IXH Playlist" /f 1>NUL REG ADD "%SC%\ixhplayerg.%%a\shell\enqueue" /v "Icon" /t REG_SZ /d "\"%ProgramFiles%\KMedia Player\ixh.exe\",%%b" /f 1>NUL REG ADD "%SC%\ixhplayerg.%%a\shell\enqueue\command" /ve /t REG_SZ /d "\"%ProgramFiles%\KMedia Player\ixh.exe\" \"/add %%1\"" /f 1>NUL REG ADD "%SC%\ixhplayerg.%%a\shell\open" /ve /t REG_SZ /d "Play with IXH" /f 1>NUL REG ADD "%SC%\ixhplayerg.%%a\shell\open" /v "Icon" /t REG_SZ /d "\"%ProgramFiles%\KMedia Player\ixh.exe\",%%b" /f 1>NUL ) ))ENDLOCAL
  19. HI, I try to do a little script for Joomla (CMS) that would add a HTML "<div></div>" tag line based on the first category page (entry page) and the browser user-agent. But the problem i have is to only run the script on the first category page (entry page). This is the working PHP Script that would outputting a different "<div></div>" tag if a user-agent.is detected. if (preg_match('/(Test1-Bot|Test2-bot)/i', $_SERVER['HTTP_USER_AGENT'])) { echo '<div class="cloud1">'; } else { echo '<div class="cloud2">'; } <p>Some HTML Output</p> </div> So now the problem is that i want to run the above PHP Script only on the first category page (entry page) but i have problems to code this (Beginner). This script would show it on all Blog pages: if ( $option == 'com_content' and $view == 'category' and $id == '8' and $Itemid == '101' and $jinput->get('layout') == 'blog' /*!*/ ) return XXX; And this script would show it only on the Blog page 2. if ( $option == 'com_content' and $view == 'category' and $id == '8' and $Itemid == '101' and $jinput->get('layout') == 'blog' /*!*/ and $jinput->get('limitstart') == '4' /*!*/ and $jinput->get('start') == '4' ) return XXX; How could i code a script that would run the above user-agent script only on Blog Page 1 (enter page)?
  20. Okay then the IE uninstaller on Win7 is little bit differently than on WinXP. But i wouldn't remove any IE files manually on WinXP i tried this and i got some problems with some third-party applications.
  21. Check if the IE .exe file is not only hidden like in WinXP with WMP.
  22. Don't remove any Internet Explorer files because various Windows components and third-party applications rely upon Internet Explorer code. Here is a batch script to uninstall it over the control panel (Tested on WinXP): @ECHO OFF ECHO. ECHO Uninstalling Internet Explorer... SET WC="%Temp%\WC_Uninstall_Config.txt" ECHO [components]> %WC% ECHO IEAccess = Off>> %WC% sysocmgr /i:"%WINDIR%\inf\sysoc.inf" /u:"%Temp%\WC_Uninstall_Config.txt" DEL "%Temp%\WC_Uninstall_Config.txt" ECHO Done pause EXIT http://itk.samfundet.no/dok-filer/ms-xp-sp2-deployment-ref/u_components.htm
  23. Merry Chrismas. Format C.\
  24. Graphic card is more important then an SSD and i don't want to upgrade again in one year but i will wait till the GTX 660TI is around 200€.
  25. Thanks for the input i think i will but 2 x 2TB HDD i always can update to an SSD if needed or if they get a lot cheaper. I think i will be better of getting a better graphic card (GTX 560TI -> GTX 660TI) instead of an SSD.
×
×
  • Create New...