Sorry you're running into problems with the Native Installer. As you've noticed, you can't run the native installer through the Adobe AIR Installer.exe. The native installer is a stand alone package.
However, the -location argument should work. If you have spaces in the path name you'll want to make sure you wrap the path in quotes.
Is there an error message or exit code when running with -silent and -location? Is the file installed into the default location regardless of the -location specified or does it just fail outright?
1 person found this helpful
I was just informed that we actually have a bug in this area (#2677272), but luckily there's a workaround. If you manually escape the quotation marks in your extended -location path (ex. My_App.exe -silent -location "\"C:\Program Files\""), the -location should work. Full details can be found in this post.
Thanks for taking the time to try and help solve the problem.
I have tried again using the methods you have suggested but the log file reports this now:
[2010-07-28:09:00:01] Bootstrapper begin (Win:version 220.127.116.1110)
[2010-07-28:09:00:01] Installed runtime located (18.104.22.16810)
[2010-07-28:09:00:01] Launching application installer: "Adobe AIR Application Installer.exe" -silent -location "C:\test" "C:\Users\ADAM\AppData\Local\Temp\AIR3986.tmp\DAD"
[2010-07-28:09:00:02] Starting silent app install of file:///C:/Users/ADAM/AppData/Local/Temp/AIR3986.tmp/DAD
[2010-07-28:09:00:02] UI SWF load is complete
[2010-07-28:09:00:02] UI initialized
[2010-07-28:09:00:02] Detected native app installer
[2010-07-28:09:00:02] style being loaded from Resources/stylesNative.swf
[2010-07-28:09:00:02] Validating the native package at file:///C:/Users/ADAM/AppData/Local/Temp/AIR3986.tmp/DAD
[2010-07-28:09:00:04] unpackaging/validation is complete
[2010-07-28:09:00:04] application is bound to this version of the runtime
[2010-07-28:09:00:04] app id com.ibundle.dwdi.ui
[2010-07-28:09:00:04] pub id
[2010-07-28:09:00:04] Application located at C:\test
[2010-07-28:09:00:04] bad configuration for silent install or update
[2010-07-28:09:00:04] starting cleanup of temporary files
[2010-07-28:09:00:04] application installer exiting
[2010-07-28:09:00:04] Application installer failure (9)
[2010-07-28:09:00:04] Bootstrapper failure (9)
Do you have any idea what would cause this error which is not present if using the exact same command with the original air file instead of native exe?
I am using Windows 7 64-bit if that makes any difference
Nevermind, it has now decided to work with the same command. It appears the problem was a previously installed version which wasn't fully uninstalled (despite the folder no longer being present)
Aha, it turns out I was experiencing the problem with quotes. My testing before used C:\Test and worked fine, then as soon as I tried to install to C:\Program Files\ it wouldn't - after escaping the quotes in the call, it now works, thanks! :]
Thanks for letting us know it worked!