Delphi and InstallAware - Changing Root Folder when using Shortcut

69 views Asked by At

I have a problem creating a shortcut using InstallAware x9.

On Delphi:

I use to link my database using Provider: Microsoft Jet 4.0 OLE DB Provider and Link it to my root folder as ./db/mdb.

here is my connection string := Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data Source=db.mdb;Mode=Share Deny None;Persist Security Info=False;Jet OLEDB:System database="";Jet OLEDB:Registry Path="";Jet OLEDB:Database Password=puzzle33;Jet OLEDB:Engine Type=5;Jet OLEDB:Database Locking Mode=1;Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Global Bulk Transactions=1;Jet OLEDB:New Database Password="";Jet OLEDB:Create System Database=False;Jet OLEDB:Encrypt Database=False;Jet OLEDB:Don't Copy Locale on Compact=False;Jet OLEDB:Compact Without Replica Repair=False;Jet OLEDB:SFP=False;

On the other hand (Installaware x9) I use to create a shortcut this was the parameter I setted: Shortcut to File: MyExe

enter image description here

When I install the file it works fine, but when I run using the shortcut located at the desktop an error of my DATABASE (db.mdb) was not found on the location. enter image description here

Is there something I missed? or Much better approach connecting DB and Delphi. Thanks.

0

There are 0 answers