Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-29-2005, 11:24 PM
Junior Member
 
Join Date: Jun 2005
Posts: 3
Default INSTALL ON PROGAMS/START

Hi...

I'm developing an application and I like to install it in the programs/start directory.

Which are the commands in the installer details? or have I to use the "afterinstall" script?... Which is this script?

Thanks for your help
Reply With Quote
  #2 (permalink)  
Old 06-30-2005, 12:56 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:INSTALL ON PROGAMS/START

Yes, enable the "Run afterInstall script" option, then insert a new script "AfterInstall" into your swfkit project and add the following code

Code:
// get the startup folder
var startup = Shell.getSpecialFolder("startup all");

// get the app path name
var appName = getExeName();

// create the shortcut in the startup folder
var shortcut = new Shortcut(startup + "\\My Demo"  + ".lnk");
shortcut.targetPath = appName;
shortcut.save();
Reply With Quote
  #3 (permalink)  
Old 06-30-2005, 01:34 AM
Junior Member
 
Join Date: Jun 2005
Posts: 3
Default Re:INSTALL ON PROGAMS/START

Thanks A LOT!!!
Reply With Quote
  #4 (permalink)  
Old 09-04-2006, 08:23 PM
Junior Member
 
Join Date: Sep 2006
Posts: 10
Default Re:INSTALL ON PROGAMS/START

I found great help on this "Startup" lnk added code, but somehow, when I try to uninstall the application, the lnk file can't be taken off from the startup menu.

Is there any extra code I need to add in order to uninstall the shortcut from the startup menu?
Reply With Quote
  #5 (permalink)  
Old 09-04-2006, 08:25 PM
Junior Member
 
Join Date: Sep 2006
Posts: 10
Default How to uninstall the lnk file from the startup?

Please let me know if there is any code needed to be added at the "BeforeUninst" script. Thanks a lot.
Reply With Quote
  #6 (permalink)  
Old 09-05-2006, 03:42 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:INSTALL ON PROGAMS/START

In the "BeforeUninst" script, you just need to remove the shortcut as follows:

Code:
// get the startup folder
var startup = Shell.getSpecialFolder("startup all");

// remove the shortcut
var f = new File(startup + "\\My Demo"  + ".lnk");
f.remove();
Reply With Quote
  #7 (permalink)  
Old 09-05-2006, 06:26 AM
Junior Member
 
Join Date: Sep 2006
Posts: 10
Default Re:INSTALL ON PROGAMS/START

Thanks for the reply!!!
I have tried the code you provided,
but still, I could only uninstall the program group,
the shortcut in the startup couldn't be removed...
After I uninstall the application,
the lnk file in the startup seems not being affected.
Reply With Quote
  #8 (permalink)  
Old 09-05-2006, 08:23 AM
Junior Member
 
Join Date: Sep 2006
Posts: 10
Default Re:INSTALL ON PROGAMS/START

I have emailed my project file to support@swfkit.com
Hopefully, you might be able to find out the problem of the code or setting. Thank you very much. ???
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 01:49 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.