PDA

View Full Version : iuVCR not behaving correctly under AT (scheduler) usage. registry stores "default" pr


BITS
7th July 2004, 00:48
ok schtasks is too complicated for me and requires user password every time you /CREATE a task. the gui is a no go. im open for any scheduler that would work correctly instead of giving me the following defective behavior...

AT starts my little .bat fine, pass's in my arguemtns and what not. HOWEVER, once iuVCR is excuted i have no access to the presets. it starts up and in the presets tab/window i see none of the presets i have defined. it just loads the default one i have setup (which is for xvid). the default settings are the ones i set, so i know its finding those somehow. there is just no other presets i have defined listed though. if i execute the exact some command AT executes, all is well and presets are there and using /p:SVCD works out ok....but of course i cant/wont be around to start my captures manually.

so what i want to do, since iuVCR is stilling getting the default value is, just force a different default everytime before execution.

like

regedit.exe /s svcd_settings.reg
start iuvcr.exe ...

this way, i could still use my settings, but externally in .reg files instead of the application.

again, i have tried soon.exe, schtasks, and several other schedulers, i havent found one i like that has a CLi at all. nothing really works. schtasks works and works great, but again you must supply your pwd and im not about to keep that in a plain text.bat.

BITS
7th July 2004, 00:55
ok if you know the registry entry already please tell...but i think this is it

HKEY_CURRENT_USER\Software\ivus\iuVCR\3.X\Device0\Presets\{00000000-0000-0000-0000-000000000000}

atleast it looks like it. however if you have more then one capture device, there is a few other keys with that listed, luckily i dont.

if i personally figure it out i will let you all know.

bingo that's it...

actually mine is 4.x...so its below incase anyone is wondering

HKEY_CURRENT_USER\Software\ivus\iuVCR\4.X\||?|pci#ven_14f1&dev_8800&subsys_00000000&rev_03#3&61aaa01&0&50#{65e8773d-8f56-11d0-a3b9-00a0c9223196}|global\Presets\{00000000-0000-0000-0000-000000000000}

works like a charm :-)

Arachnotron
8th July 2004, 10:45
I noticed the settings are in HKEY_CURRENT_USER

That means these settings are linked to a certain account rather than to the machine.

If you schedule a task, it is running under whatever account you set to run it under or it is running under Local system. iuVCR will then use the settings linked to those accounts.

In short, schedule this task to run under the same account you used when you set iuVCR's settings.

BITS
8th July 2004, 23:18
You cant do that with AT apparently. on the cap machine it only has 1 account.

AT must disgregard the user enviroment in some way, or its iuvcr when launched from AT.

not sure why it doesn work, but it doesnt. what you say is logical and works under schtasks and the windows gui, but it wont work with AT, or even soon.exe.

also tskill will not work properly when launched from AT, and it seems a tool called pskill also wont. im thinking its AT.

anyways that reg fix i find one shot better than the presets option in iuVCR, atleast this way i'll never have to recreate them (until iuVCR 5.x atleast).

Arachnotron
8th July 2004, 23:28
maybe you could use a batchfile to start iuvcr and put a runas line in it like

c:\WINDOWS\system32\runas /profile /env /user:youraccount "iuVCR bla bla bla"


I'm not sure w2k has the runas option, but xp does.
[edit]

should be
c:\WINDOWS\system32\runas /profile /user:MACHINENAME\youraccount "<path>\iuVCR bla bla bla"

BITS
9th July 2004, 03:05
NOTE: Enter user's password only when prompted.
NOTE: USER@DOMAIN is not compatible with /netonly
NOTE: /profile is not compatible with /netonly.

its asking me to type a password into the console live. can you get around this?

Arachnotron
9th July 2004, 11:07
With this util you can start a runas command from a batchfile:

http://www.jsiinc.com/SUBO/tip7100/rh7111.htm

You would get something like this (note that for a local account the domain/machinename can be omitted)

c:\WINDOWS\system32\runas /profile /user:machinename\username "c:\windows\notepad.exe" >&2 | sanur password

NOTE: USER@DOMAIN is not compatible with /netonly

Why the netonly switch?

BITS
9th July 2004, 23:36
this gets right back to what i said before. im not keeping my pwd in a plain text file.

the way im working it now works out just fine, im done looking for an alternative.

BITS
10th July 2004, 18:18
anyways, i just read my email and i read this...

By default iuVCR stores all settings include presets into the
HKEY_CURRENT_USER\Software\ivus\iuVCR\4.X registry branch.
AT service works under system account usually and this branch
not
available. I se following ways to solve this problem:
1. You can re-configure at service to run it under user account
2. If you will create manually
HKEY_LOCAL_MACHINE\Software\ivus\iuVCR\4.X branch then iuVCR will use
it
for each user instead HKEY_CURRENT_USER. Then iuVCR settings will
common
for any account include system.

I hope it will help.


indeed it does help. HKEY_LOCAL_MACHINE is the answer i was looking for :-).