July 28, 200422 yr Author mazin, i've juste tested it and it works perfectly !excellent thank you for your great help !maybe you should add your J.S. method for Reg Organizer in the "switch topic" ?
July 28, 200422 yr mazin, i've juste tested it and it works perfectly !excellent Have Phun!FYI, there's now v2.2.
July 28, 200422 yr Author EDIT :yes, i tested it in Windows, but i've juste tested it using VMware and i had the same error again "please use the control panel to install and configure system components"i made my unattended XP using RunOnceEx, and the installation of RegOrganizer fail with your JS using RunOnceEx.using directly your JS file in Windows, it works perfectly.have you an idea ?here is what i use :- runonceex codeREG ADD %KEY%\077 /VE /D "Reg Organizer 2.1" /fREG ADD %KEY%\077 /V 1 /D "%systemdrive%\Hotfixes\RegOrganizer\regorg_install.cmd" /f- "regorg_install.cmd"cmdow @ /HID@echo offecho Installation de Reg Organizer 2.1start /wait %systemdrive%\Hotfixes\RegOrganizer\regorg_install.jsecho OK.EXIT- "regorg_install.js" (your JS file, i change the 30000 value to 20000)function getWin(win, inc){var cntr = 0;while (!WshShell.AppActivate(win)){if (cntr==12) return true;cntr++;WScript.Sleep(inc);}return true;}var WshShell = new ActiveXObject("WScript.Shell");var Run = WshShell.Run("setup.exe");{WScript.Sleep(2000);getWin("Installing Reg Organizer", 500);WshShell.SendKeys ("{ENTER}");WScript.Sleep(500);WshShell.SendKeys (" ");WScript.Sleep(500);WshShell.SendKeys ("{ENTER}");WScript.Sleep(500);WshShell.SendKeys ("{ENTER}");WScript.Sleep(500);WshShell.SendKeys ("{ENTER}");WScript.Sleep(20000);WshShell.SendKeys ("{ENTER}");WScript.Sleep(500);WshShell.SendKeys ("{ENTER}");WScript.Sleep(3000);WshShell.SendKeys ("%{F4}");}WScript.quit();Please note that even if i don't use regorg_install.cmd but directly regorg_install.js, i have the same error.
July 28, 200422 yr I posted it saying that you were to test it, but not how to apply it unattendedly.No problem! To apply it unattendedly, change this line in your JS:From:var Run = WshShell.Run("setup.exe");To:var Run = WshShell.Run("%systemdrive%\\Hotfixes\\RegOrganizer\\setup.exe");I assume you put setup.exe in the above path.
July 28, 200422 yr Author I posted it saying that you were to test it, but not how to apply it unattendedly.No problem! To apply it unattendedly, change this line in your JS:From:var Run = WshShell.Run("setup.exe");To:var Run = WshShell.Run("%systemdrive%\\Hotfixes\\RegOrganizer\\setup.exe");I assume you put setup.exe in the above path.yes,setup.exe is in %systemdrive%\Hotfixes\RegOrganizer\i made the modification in your JS, i'll test it using VMware in 1-2 hours.
July 28, 200422 yr @mazin :ok it's perfectly working thank you very much. Yeah...But please don't change your mind again!
Create an account or sign in to comment