Click to See Complete Forum and Search --> : Deleting and writing to Registry before program is launched


adamsc22
10-19-2004, 04:54 PM
Hello,

At work we have this third party app (Cicero) that we've customized. Much of the customization is done through the registry. We have about an 8,000 line .reg file that is called from a batch file each time the program is launched. So, before the program is launched we first delete and then write all the registry entries for our program.

This has always worked correctly, until we moved to XP. Now, it seems that the whole registry is not being written before the program starts (and subsequently starts to read from the registry for the configuration details).

This is the batch file line that calls the .reg file

%SystemRoot%\regedit /s "C:\Progra~1\NF_Cicero\Registry\HKLM_Level8.reg"


Is there batch file call that does not execute the next statement, until the previous has returned? Or does someone see another solution to this issue?

Thanks for any input

ksuohio
10-21-2004, 01:46 PM
There might be a security issue with XP that is not allowing the user to update the registry. I ran into this when trying to save settings to the registry from inside a VB application. If it is security, you probably will not see any type of warning when updating the registry.

Strogian
10-21-2004, 06:05 PM
maybe call
I don't think that's it though.

adamsc22
10-25-2004, 01:35 PM
Thanks for your responses. I guess the baffling part of this issue is that it occurs only some of the time for some of the users. Sometimes it seems the .reg file finishes writing to the registry correctly, and sometimes it doesn't quite finish.

Thought maybe there would be an easy answer to this one. Thanks

Strogian
10-25-2004, 04:33 PM
how about this:

start /wait %SystemRoot%\regedit /s "C:\Progra~1\NF_Cicero\Registry\HKLM_Level8.reg"

adamsc22
10-28-2004, 06:32 PM
Thanks Strogian, that looks pretty good. I put that change on a user's machine tonight and we'll see how it goes in the morning. Thank you.