I'm writing a small install program for WinNT that imports a 'somestuff.reg' file into the registry via backticks:
 
# do some stuff
`regedit.exe somestuff.reg`;
# do cleanup tasks here
__END__
 
Regedit puts up a modal dialog box after the import --
 
"Somestuff.reg has been imported into the registry successfully."
                                     |OK|
 
 
that requires the user to hit return or click ok to continue. This modal box blocks all further execution until its needs are satisfied, whereas I want this script to run to completion unattended.  That's the problem I'm trying to solve. 
 
My attempts to feed it the 'CRLF' it requires, in various ways, have been unsuccessful thus far . 
Regedit does not appear to have any command line switch to bypass the modal dialog box.
Regedt32 appears to import only binary, not text files, so would be a real pain to use in editing and import.
 
How can I force execution back to the perl process and kill the Regedit process after it blocks?
 
Thanks,
 
Jim
 
James Eshelman,
Principal,
Nova Software, Inc.
www.nova-sw.com

Reply via email to