PDA

View Full Version : Installdir



tbrown68
11-30-2004, 02:54 PM
I am trying to use INSTALLDIR in my script but the compile always fails with the error: 'INSTALLDIR' : undefined identifier. Am I missing an include file? Or what am I missing? My script is given below. I am just trying to bring up a simple message box right now.

Thanks,
Tom

// Included header files ----------------------------------------------------
#include "ifx.h"

prototype LaunchWinPCap();

//-----------------------------------------------------------------
// LaunchWinPCap
//
// Launch WinPCap in a separate window.
//-----------------------------------------------------------------
function LaunchWinPCap()
string szProgram;
begin
szProgram = INSTALLDIR + "WinPcap_3_1_beta4.exe";
MessageBox(szProgram, INFORMATION);
end;

tbrown68
11-30-2004, 03:09 PM
Umm... nevermind. I found that it is supposed to be TARGETDIR instead of INSTALLDIR.

Thanks,
Tom

faheemtahir
12-18-2004, 06:58 AM
try to use

szProgram = INSTALLDIR ^ "WinPcap_3_1_beta4.exe";

instead of

szProgram = INSTALLDIR + "WinPcap_3_1_beta4.exe";
Faheem Tahir