Add a shortcut to Startup folder with parameters in Adobe AIR

I am trying to include a link to my application in the Startup folder with a parameter passed to the program.

I think it would work if I created the shortcut locally and then added it to my source. After that I could copy it to the Startup folder on first run.

File.userDirectory.resolvePath("Start Menu\\Programs\\Startup\\startup.lnk");

However, I am trying to get this to occur during install. I see there is are some settings related to the installation in app.xml, but nothing that lets me install it to two folders, or use a parameter.

<!-- The subpath of the standard default installation location to use. Optional. -->
<!-- <installFolder></installFolder> -->

<!-- The subpath of the Windows Start/Programs menu to use. Optional. -->
<!-- <programMenuFolder></programMenuFolder> -->


I'm new to Air, but also haven't found any way to customize the install process. It looks like you're limited to your application code. (Updating appears more flexible.)

From your example, it looks like you want your app' to run with a parameter constant each time Windows starts. So you're probably already aware you can set:


when your app' first runs. Could you combine this with your parameter in a settings file in the application or user directory and accomplish what you need?

Need Your Help

Dynamic created content is not binding jQuery events

jquery html5

I'm not able to bind jQuery events to dynamically created list items.

How to properly configure and manage mobile site in Rails?

ruby-on-rails mobile

This post has been 'somewhat' addressed (see links at bottom of post) but not to it's full extent.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.