We have answer of your question!

100% solved queries, no empty question

Question: 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> -->
Question author Shawn | Source



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?

Answer author John-lemberger

Tickanswer.com is providing the only single recommended solution of the question Add a shortcut to Startup folder with parameters in Adobe AIR under the categories i.e air , adobe , . Our team of experts filter the best solution for you.

You may also add your answer

Thanks for contributing an answer to Tick Answer!