Jump to content

problem with multi useroptions and config


Recommended Posts

Hi

I have two useroptions and two config in my wpiscripts folder. the first ones are useroptions.js & config.js and the second ones are useroptions2.js & config2.js

i was recently using wpi 7.2.2 . when i wanted to load wpi, as i expected, it loaded the first ones but the next time i wanted to load wpi with the command line you mentioned in manual, it wasn't working perfectly i mean sometimes in some computers it loads the first ones and in some other computers with (i think) the same settings it loads the second ones.

i upgraded to wpi 7.3 to fix it but the problem still remains.

i should mention that the first time i load wpi is the first time windows loads after finishing setup with RunOnceExe.

and also i've tried these command lines to load wpi with the second useroptions and config files : (CDROM has been set to CD drive)

%CDROM%\WPI\WPI.hta options=useroptions2.js config=config2.js

%CDROM%\WPI\WPI.hta options=%CDROM%\WPI\WPIScripts\useroptions2.js config=%CDROM%\WPI\WPIScripts\config2.js

%CDROM%\WPI\WPI.hta options=.\WPIScripts\useroptions2.js config=.\WPIScripts\config2.js

and some others ...

please help me if i'm doing something wrong ?

Link to comment
Share on other sites


still no answer ? :o

at least tell me if i add a couple of configurations to "List of configuration choices" part of the options>general tab, is it possible to force some items from the application list in the first one and disable them in the second one ? or the "force" is absolute for all configurations ?

please help me !

Edited by lordsepid
Link to comment
Share on other sites

OK I think I know what your issue may be.

Use this reg file in execute after:

Windows Registry Editor Version 5.00

[-HKEY_CURRENT_USER\Software\WPI]

See WPI used to keep some info in the reg for reboots and such and still does when reboots are called for.

We thought it was fully self cleaning but that may not be so in your case.

But all 3 should be working right for you. (They are all technically correct.)

As for the commandlines I use this format and it works well for me.

%CDROM%\WPI\WPI.hta options=useroptions2.js config=config2.js

Edited by Kelsenellenelvian
Link to comment
Share on other sites

yes your right, that should work. when i saw it's loading the old config i found out that it should keep the address somewhere and i found it but even when i deleted it (HKEY_CURRENT_USER\Software\WPI), sometimes it was working and sometimes in some computers not ! also i found out that when i load it with my command (i mentioned above) sometimes it creates a CMD in %temp% that had a command like this :

%systemroot%\system32\mshta.exe options=useroptions2.js

it wasn't pointing any config file so i think the problem happens there.

i should mention that it's working in my system very well without any trouble but when i install a new windows in another system with the same method and i try to run wpi it runs normally but after that when i locate the useroption2 and config2 with the commands it just doesn't work and just loads the old config file.

otherwise if i can use the second way (what i asked in my third post) i think that should be solved.

is there anyway to do that ?

i really appreciate your help, thank you

Link to comment
Share on other sites

Forced is Forced. (An issue that IS up for debate.. It might not last long) We may just remove that feature.

As for the multi-config\defaults it only allows for different ones to be selected or not selected.

With the commandlines you may have found a bug. I tried to call mritter all day to seee if we could track it down.

Send me the 4 files.... I wanna try this sh*t out some more...

Edited by Kelsenellenelvian
Link to comment
Share on other sites

yes your right it works fine in my computer too, but i tested it again in another computer with the option you mentioned ([-HKEY_CURRENT_USER\Software\WPI]).

it deletes the wpi key successfully but as i expected it loaded the config.js again not the config2.js

i found a cmd in the %temp% folder on the test system that wasn't created in my system's temp folder by wpi, it was "WPI_DebuggerRestart.cmd" and the contents were :

"G:\WPI\Tools\Sleep.exe" -m 1500

C:\WINDOWS\system32\mshta.exe "G:\WPI\wpi.hta" options=G:\WPI\WPIScripts\useroptions2.js

i tried to add "config=G:\WPI\WPIScripts\config2.js" at the end of it and run it again but it removed the "config" switch and the result was the same.

the system i'm trying to test on has an intel cpu p4 3.2GHz and my system is an AMD phenom 9550

i remember i've tried it on an AMD X2 5200 also and it wasn't working too.

could it be because of the cpu or something like that ?

i know you may think this is probably my mistake on something else but i've tried to make everything identical. even everytime i install windows again but the same method works different on different systems !

also i found that when the wpi wants to load, a white window comes and goes and after one or two seconds it appears again and the wpi runs.

i remember in the old versions it wasn't like that. Maybe i'm wrong but i think the second time the "WPI_DebuggerRestart.cmd" loads and that makes the problem !

can you please help me to find the solution ?

Link to comment
Share on other sites

no i'm using it on XP.

i didn't modify anything, actually both systems are completely identical in softwares (os and other settings) but the hardwares are different.

the only thing i could think of was that maybe windows uses mshta.exe in different ways for different CPUs or mainboard's chipsets because it doesn't create the CMD file (WPI_DebuggerRestart.cmd) in my system at all. i searched for it my entire windows drive !

this is my batch file :

-----------------------------

@echo off

reg delete hkcu\software\WPI /f

IF NOT EXIST %windir%\system32\mykrnl.exe goto ext

FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\cd.drv SET CDROM=%%i:

%CDROM%\WPI\WPI.hta options=useroptions2.js config=config2.js

:ext

exit

-----------------------------

however when i load it with a simple command like G:\WPI\WPI.hta options=useroptions2.js config=config2.js it doesn't work either.

it's a little weird that it just loses the config file not both.

Edited by lordsepid
Link to comment
Share on other sites

Add this in the place of

REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" /V "Disable Script Debugger" /T "REG_SZ" /D "no" /F
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" /V "DisableScriptDebuggerIE" /T "REG_SZ" /D "no" /F

This:

reg delete hkcu\software\WPI /f

And try it again

Link to comment
Share on other sites

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