You just put the files in the src folder of your Flash Builder project.
When Flash Builder export the AIR file, it will include the files.
I tried that. Unfortunately it doesn't work. In my application folder after installation are:
1) The .exe
2) The .swf
3) A mimetype file
4) META-INF folder
I have 2 extra xml files and a .txt file in the application/src folder. I choose Export Release Build->Export to native installer->Export and sign with certificate->Finish.
Can you please help?
I also tried adding those files to the project so they appear in the package explorer as files under the src folder of my project. That didn't work either.
Could you try to do the same with packaging an AIR file?
What version of Flash Builder are you using?
I'm getting this error trying to build it as an AIR application:
Error 306: Descriptor must support the profile desktop, mobileDevice, or extendedMobileDevice.
I assume this is because I am using NativeProcess in my application and have my supportedProfiles set to extendedDesktop. Is that correct?
I'm using Flash Builder plugin V4.0.1 (build 277662)
Open the application descriptor file, in the supportedProfiles tag, add desktop after extendedDesktop.
That should allow you to package AIR files.
If I add "desktop" to the profiles I get this message:
This application has been designed for a different device profile and will not run on your system. Contact the application author to see if a compatible version is available.
If I replace extendedDesktop with desktop I am able to build the AIR app as you suggested. When I install it, same thing as before...the .exe and swf is there, but my extra files (now both sitting in the src folder and added into the project) do not get installed (copied).
You can unzip the AIR files to see if the files are there.
Do you see the files in bin-debug folder?
The AIR file gets made into the root of my project. When I unzip it, I don't see my files and I don't see any reference to the bin-debug folder. I do see only the exact files and folder structure that get installed. So I guess it means my files are not making it into the AIR file in the first place.
I guess I'm also a little confused. Why would the "bin-debug" folder be included in an archive file that is going to be installed on other user's machines? Or do you just mean the "contents" of the bin-debug folder? I guess that would make more sense.
I also put extra files in the bin-debug folder and they didn't get added to the AIR file either.
Definitely appreciating the help - anything else I can try because it's pretty important to include those files.
When you put the files in src folder, they are automatically copied into bin-debug folder.
It seems they are not copied into bin-debug folder in your case.
Are you sure you copy the files into the right folder?
Could you also post the same question to Flash Builder forum?
They are much better tracing this kind of problems then we are. You might get better help over there.
I've copied the files into the myapp\src folder and also tried the myapp\bin-debug folder and still they don't get included.
As you suggested, I posted this in the Flash Builder forums. That thread is here: http://forums.adobe.com/thread/747069
When you copy files into the src, they should be automatically copied into the bin-debug folder.
The fact that they are not indicates something wrong with your Flash Builder setup. People in Flash Builder forum would know this better than here.
Your problem seems to be not directly related to Native Installer, but AIR files.
I could not reproduce your problem. So I am not sure how to help you on this.
Have you tried to create a new dummpy AIR project and add the files to it and generate an AIR file to see if the problem might goes away?
I posted there but there has been no response yet.
I did try creating a completely new dummy app (with no code). I tried all the solutions previously and it didn't work. Again - even when I manually copy the files into the bin-debug folder they do not appear in the AIR package.
I have discovered how to get it to work, but I'm not sure what the problem is. I can consistently duplicate it.
If I manually copy a file into the myapp\src folder, the file does not get copied to the bin-debug folder and, thus does not get added to the list of files to include. I build my app dozens of times. This file NEVER appears in the file list under the src folder in the Package Explorer View. Even if I close Flash Builder and open it again, my added file NEVER appears in the file list.
Only if I right click on my project in the Package Explorer View and select Refresh, will the file appear in the list. Then and only then, when I go through the Export process, the file will appear in the list and be included in the AIR package.
That seems like a bug to me. Even if you said it wouldn't detect the file being added while Flash Builder is open, it should at least check the project folder when I open it and update the list with any new files.
I'd still like to know how to get this to work without manually refreshing the project although admittedly I won't be adding files to the project often.