We use WinExec(PChar('regedit /s "' + LFile + '"'), SW_SHOWNORMAL);
Stacey Verner Ph: +64-9-4154790
Software Developer Fax: +64-9-4154791
CJN Technologies Ltd. Email: [EMAIL PROTECTED]
PO Box 302-278, North Harbour, Auckland, New Zealand
12 Piermark Drive, North Harbour Estate, Auckland, NZ
Visit our website at http://www.cjntech.co.nz/
> -----Original Message-----
> From: Derricutt, Mark [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, December 21, 1999 12:05 PM
> To: Multiple recipients of list offtopic
> Subject: [DUG-OFFTOPIC]: Calling Regedit from InstallShield...
>
> Problem.... I'm trying to install a .reg file from my InstallScript
> but am
> getting errors about not being to open the file etc. etc. At first I
> thought it didn't like filenames with spaces in them, so I converted
> it to
> the fat16 name, still doesn't work, any ideas?? This is the code I'm
> using:
>
> svPath = SRCDIR ^ "metric.reg";
> LongPathToShortPath ( svPath );
> LaunchApp(WINDIR ^ "Regedit.exe", "/s " ^ svPath);
>
> I know I can use InstallShield itself to install registry keys, which
> I do
> as well, but these ones we include as a .reg file for the user to run
> at any
> stage as well.
>
> Mark
> ----------------------------------------------------------------------
> -----
> New Zealand Delphi Users group - Offtopic List -
> [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Offtopic List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz