Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-02-2007, 08:04 AM
Member
 
Join Date: Oct 2004
Posts: 53
Default Broken Shortcut

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
Reply With Quote
  #2 (permalink)  
Old 05-03-2007, 01:40 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Broken Shortcut

The problems are really strange. Could you please send us the setup file and the .iss file created by swfkit when you build the setup file? We will help you to solve the problems a.s.a.p.
Reply With Quote
  #3 (permalink)  
Old 05-15-2007, 01:13 PM
Member
 
Join Date: Oct 2004
Posts: 53
Default Re:Broken Shortcut

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=**********";
with

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
Reply With Quote
  #4 (permalink)  
Old 05-16-2007, 08:00 AM
Member
 
Join Date: Oct 2004
Posts: 53
Default Re:Broken Shortcut

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;
}
Now I had given the same name "My Program" to the "installatin folder" as well as the "Caption/Taskbar text" in the "Application Defination -> Apperance".

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
Reply With Quote
  #5 (permalink)  
Old 05-16-2007, 09:47 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Broken Shortcut

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.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:16 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.