Jump to content

Recommended Posts

Posted

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" ?


Posted
mazin, i've juste tested it and it works perfectly !

excellent  :)

Have Phun!

FYI, there's now v2.2.

Posted

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 code

REG ADD %KEY%\077 /VE /D "Reg Organizer 2.1" /f
REG ADD %KEY%\077 /V 1 /D "%systemdrive%\Hotfixes\RegOrganizer\regorg_install.cmd" /f

- "regorg_install.cmd"

cmdow @ /HID
@echo off

echo Installation de Reg Organizer 2.1
start /wait %systemdrive%\Hotfixes\RegOrganizer\regorg_install.js
echo 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.

Posted

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.

Posted
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.

Posted
@mazin :

ok it's perfectly working :D

thank you very much.

:)

Yeah...But please don't change your mind again! :rolleyes:

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...