|
|||
|
hi
i have created an application which uses Access Database. Now i have created a "Modern Installer" for it. After installation when I click on the "Desktop" or "Quick Launch" Icons created by the installer, it gives an error "Connection to Database Failed". I checked the Icon Properties and found that the "Start In" field is empty, which i filled and now the Icons worked. The second problem faced was if the installed directory is open and you click on the Icon, the application does not lauch, just the open directory blinks. The third Problem i faced is that when i Double Clicked on the application in the installed directory, it did not run. It runs only when i double click on the shortcut. Please Check. Thanks |
|
|||
|
i think the problem was with the "initialize" script. i replaced the following script
Code:
var path = getAdditionalFile(); Application.setBasePath(path); db_name = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=database.mdb;Persist Security Info=False;Jet OLEDB:DataBase Password=**********"; Code:
db_name = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=";
db_name += getAdditionalFile("database.mdb");
db_name += ";Persist Security Info=False;Jet OLEDB:DataBase Password=**********";
Now the shortcuts work fine |
|
|||
|
the 2nd & the 3rd problems were caused by the following code
Code:
var wnds = Window.getWindowsByName("My Program");
var w = getMainWnd();
var has = false;
for (i = 0; i < wnds.length; i++){
if (wnds[i].handle != w.handle){
has = true;
break;
}
}
if (has){
wnds[i].bringToTop();
return false;
}
So whenever i tried to open the application, if the "installation folder" was open, it did not open another window with the same name. Changing any one of these names, solved this problem |
|
|||
|
Yes, you must use the "getAdditionalFile" method to retrieve the full path name of the database file, or the ADO driver cannot find it. The setbase method can only work for the flash player, not the ADO driver. That is to say, even if the flash player knows where the db file is, the ADO driver still cannot locate it.
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|