On Tue, 19 Feb 2002, James Eshelman wrote:
> I'm writing a small install program for WinNT that imports a
> 'somestuff.reg' file into the registry via backticks:
This isn't exactly an answer to your question, but why not do this
directly with Win32::Registry instead of calling out to regedit.exe?
use Win32::Registry;
if ( $HKEY_LOCAL_MACHINE->Create( "Software\\nova-sw\\test", $key ) )
{
# key was created successfully, or
# key already existed and was opened successfully
# do any other processing on that key here
$Key->Close();
} else {
print "Couldn't create or open key: $key";
}
If you have access to a copy of Dave Roth's _Win32 Perl Programming: The
Standard Extensions_, pages 95-110 (or so) discuss registry handling in
detail.
I think Win32::Registry should be a standard component of Win32 Perl. If
that's the case, using it should be easier & more robust than calling out
to regedit, and you get around the dialog box problem you describe :)
--
Chris Devers [EMAIL PROTECTED]
Apache / mod_perl / http://homepage.mac.com/chdevers/resume/