Hiya, I'm trying to import a .reg file as part of my InstallSheild
(5.1) project, however on some machines (mostly 95 boxen) I'm getting the
following error:

"Cannot import C:\WINDOWS\TEMP\pft1~TMP\metric.reg.  Error opening the
file.  There may be a disk or file system error."

I'm using the following code in my InstallShield project:

  svPath = SRCDIR ^ "metric.reg";
  LongPathToShortPath ( svPath );
  svExec = "/s " + svPath;
  LaunchApp(WINDIR ^ "Regedit.exe", svExec);

Is there a better way to import a .reg file, originally I was thinking the
problem was in the long filenames, so I'm using LongPathToShortPath
with no joy.

Mark



-- 
"We don't guarantee anything except that it will take up disk space..."
  Apache 2.0alpha5 Disclaimer

Now Playing: Imagika - Chaos To Murder


---------------------------------------------------------------------------
  New Zealand Delphi Users group - Offtopic List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to