Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I've written a script to add registry entries using the Win32::TieRegistry module. It works very well. I'm also using the Win32::ODBC module adding a DSN for an ODBC Driver.
I've discovered that the script needs to be run twice due to the following:
Does anyone know of a way to "refresh" the registry so the script can be run once? I've tried sleeping in a while loop until I see the new Driver in the Registry but I'm forced to stop the script and run it again.once: to write the new regitsry entries for the ODBC Driver and copy the appropriate dll's. twice: add a DSN for the ODBC Driver after locating the driver installed in the previous step.
Thanks
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Refreshing the Windows Registry
by BrowserUk (Patriarch) on Jan 15, 2004 at 16:20 UTC | |
by tye (Sage) on Jan 15, 2004 at 20:38 UTC | |
Re: Refreshing the Windows Registry
by MADuran (Beadle) on Jan 15, 2004 at 16:35 UTC | |
by Anonymous Monk on Jan 15, 2004 at 16:49 UTC | |
Re: Refreshing the Windows Registry
by jwillmore (Initiate) on Jan 15, 2004 at 15:50 UTC | |
by Anonymous Monk on Jan 15, 2004 at 15:53 UTC | |
by arden (Curate) on Jan 15, 2004 at 16:50 UTC | |
by Anonymous Monk on Jan 15, 2004 at 18:13 UTC |