> > Hi all,
> > I'm trying to create a setup using inno setup, but every time i try to execute, there will be an error: File does not exist, if i select ignore then the error message will be Locate Database : Error instantiating cursor object. cannot find d:\...\data.dbc, i just know to create setup disk using innosetup i dont have to include the dbc,dbf just the exe file.
> > . actually, how can i create the exe file with inno setup?
> >
> >
> > main.prg
> >
> >
> > set default to sys(5)+sys(2003)
> > open database data.dbc
> >
> >
> > thanks in advance
>
> SYS(5) = default drive
> SYS(2003) = current directory
>
> Fine for checking where the heck you are at, but not for SETTING default driver and directory.
> It's saying SET DEFAULT TO default
>
> Try this in the startup code of you application exe:
>
SET DEFAULT TO JUSTPATH(_VFP.Fullname) && = wherever your exe is installed.
> SET PATH TO Data, Reports, Icons, ...
> or run ADIR() and pick up the names of the folders that are actually there.
> -Anders
it seeems that i have to input all files into the setup directory and using syntax set path to...
Thanks in advance