• Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
    Dedicated community for Japanese speakers
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
    Dedicated community for Korean speakers
Exit
Locked
0

silent install not working for native installer

New Here ,
Jul 27, 2010 Jul 27, 2010

Copy link to clipboard

Copied

Hi,

I am trying to install the air application (native exe) in C:\Program Files  using silent install, below is the command that I am using.. (have tried with the path in quotes as well)

MyApp.exe -silent -location C:\Program Files

It doesn't seem to work with space in the folder names in the path.

It works if I just give C:\  or D:\  or D:\someFolder   ,

Any ideas of how to get this working ?

Thanks,

Brijesh

TOPICS
Installation

Views

7.4K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , Jul 27, 2010 Jul 27, 2010

Darnnit - confirmed this is bug - logged internally as #2677272.

It is too late to get a fix in for the next update of the AIR runtime (which should be going out very, very soon...) but we will get this on the fast-track to be fixed in the release to follow (sorry - cannot share further details regarding the schedule).

As a workaround for now - can you please try manually escaping the quotation marks in your extended -location path and let us know if this works for you (it worked in my test case w

...

Votes

Translate

Translate
New Here ,
Jul 27, 2010 Jul 27, 2010

Copy link to clipboard

Copied

did some more analysis on this one..

The application exe name does appears in the task manager for a split second.. then goes off.

checked the install logs at  D:\Profiles\Brijesh\Local Settings\Application Data\Adobe\AIR\logs, nothing appears in the install log for this event.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 27, 2010 Jul 27, 2010

Copy link to clipboard

Copied

more on the issue:

tried with :  My_App.exe -silent -location "'C:\Program Files'"

it now prints error in the log file:

[2010-07-27:12:19:38] Bootstrapper begin (Win:version 2.0.1.12090)
[2010-07-27:12:19:38] Installed runtime located (2.0.2.12610)
[2010-07-27:12:19:38] Launching application installer: "Adobe AIR Application Installer.exe" -silent -location 'C:\Program Files' "D:\Profiles\Brijesh\LOCALS~1\Temp\AIR19A.tmp\My App"
[2010-07-27:12:19:38] Application installer failure (2)
[2010-07-27:12:19:38] Bootstrapper failure (2)

Any idea about the error / error code ?

Thanks,

Brijesh

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jul 27, 2010 Jul 27, 2010

Copy link to clipboard

Copied

Brijesh

Thanks very much for digging in to this.

I am taking a look at the parameter parsing in the native installer code and will give you an update soon.

Thanks,

Chris Thilgen

AIR Engineering

NOTE:

a.) You should not need to put your path inside both ' and " marks.

Could you please verify that you get the same error message in the log if you use:

  My_App.exe -silent -location "C:\Program Files"

b.) Can you please see if you happen to have another AIR application installed that has the same <id>? We have seen this lead to some issues in the past.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 27, 2010 Jul 27, 2010

Copy link to clipboard

Copied

I tried with     My_App.exe -silent -location "C:\Program Files",

got following in the install log:

[2010-07-27:12:38:45] Bootstrapper begin (Win:version 2.0.1.12090)
[2010-07-27:12:38:45] Installed runtime located (2.0.2.12610)
[2010-07-27:12:38:45] Launching application installer: "Adobe AIR Application Installer.exe" -silent -location C:\Program Files "D:\Profiles\Brijesh\LOCALS~1\Temp\AIR1B4.tmp\My App"
[2010-07-27:12:38:45] Application installer failure (2)
[2010-07-27:12:38:45] Bootstrapper failure (2)

I don't have any other app installed with same name or id. Because, if I try with following commands it works.

My_App.exe -silent -location "C:\"

My_App.exe -silent -location "C:\dummy"

works on D: with same folder structure.

doesn't work with a folder name with space in it on D: either.

Thanks,

Brijesh

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jul 27, 2010 Jul 27, 2010

Copy link to clipboard

Copied

Darnnit - confirmed this is bug - logged internally as #2677272.

It is too late to get a fix in for the next update of the AIR runtime (which should be going out very, very soon...) but we will get this on the fast-track to be fixed in the release to follow (sorry - cannot share further details regarding the schedule).

As a workaround for now - can you please try manually escaping the quotation marks in your extended -location path and let us know if this works for you (it worked in my test case where i was able to repro the issue you are experiecing):

  My_App.exe -silent -location "\"C:\Program Files\""

Thanks,

Chris Thilgen

AIR Engineering

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 27, 2010 Jul 27, 2010

Copy link to clipboard

Copied

Thanks, The workaround works...

I hope other's would notice this discussion too..

Thanks,

Brijesh

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jul 27, 2010 Jul 27, 2010

Copy link to clipboard

Copied

Yeah - everyone except my boss - this was my goof - shhhhh!

Chris Thilgen

AIR Engineering

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Aug 12, 2010 Aug 12, 2010

Copy link to clipboard

Copied

Just wanted to let anyone know who was watching this thread that this issue has been resolved and will be included in our next update of the AIR Runtime.

Thanks,

Chris Thilgen

AIR Engineering

NOTE: This fix did not make the AIR 2.0.3 update which was just released

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Aug 12, 2010 Aug 12, 2010

Copy link to clipboard

Copied

Moved discussion to the Installation Issues forum

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 07, 2010 Sep 07, 2010

Copy link to clipboard

Copied

Hi there Chris,

Not to rush you or anything, but I was just wondering whether there was any update on when this AIR runtime update will be available? I've just stumbled across this bug when hoping to upgrade an application to AIR 2.0.3.13070.

Thanks for following up on this forum topic

Sean

Message was edited by: seaneyefi

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Sep 08, 2010 Sep 08, 2010

Copy link to clipboard

Copied

Hi Sean,

We haven't announced anything officially, but historically AIR has had a release at least once every quarter.  Our last runtime release was August 10th.

Chris

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 08, 2010 Sep 08, 2010

Copy link to clipboard

Copied

Thanks Chris - good to know.


Sean

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 12, 2010 Aug 12, 2010

Copy link to clipboard

Copied

I am trying to run the installer(native exe) in silent mode by launching a native process in oder to simulate auto update functionality. 

var file:File = DownloadFile(e.target).localFile;  // .url = app-storage:/PatientEDU.exe

var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();

nativeProcessStartupInfo.executable = file;

var process:NativeProcess = new NativeProcess();

process.addEventListener(NativeProcessExitEvent.EXIT, onExit_installer);

process.addEventListener(ProgressEvent.STANDARD_ERROR_DATA, onErrorData);

var processArgs:Vector.<String> = new Vector.<String>();

processArgs.push("-silent");

processArgs.push("-location");

processArgs.push("\"C:\Program Files (x86)\"");

nativeProcessStartupInfo.arguments = processArgs;

process.start(nativeProcessStartupInfo);

process.closeInput();

It does not seem to want to run for more than a split second and is not performing the install.

Any thoughts?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Aug 12, 2010 Aug 12, 2010

Copy link to clipboard

Copied

Does it work when you run the command from cmd.exe:

  c:\> PatientEDU.exe -silent -location "\"C:\Program Files (x86)\""

Because of the NativeProcess adding yet another layer of command line parsing on top of the native installer (which is already on top of the AIR Application Installer) we may have to play with the params a bit until it works as expected.

I will try your sample out with my latest code - that fixes the issue and see if it improves things.

A possbile workaround you may want to try is to pass the "short name" for the Program Files directory - fire up cmd.exe and execute the following:

  c:\> dir /x /A:D "c:\pro*"

You will get output like this:

  8/03/2010  01:03 PM    <DIR>          PROGRA~1     Program Files

Where PROGRA~1 can be used in place of "Program Files" for all command lines. (or the (x86) version of Program Files on your machine)

Chris Thilgen

AIR Engineering

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Aug 12, 2010 Aug 12, 2010

Copy link to clipboard

Copied

UPDATE:

- Good News - in our latest internal code - I can successfully use the following:

  processArgs.push("C:\\Program Files");

- Okay News - using your sample code - I was able to successfully use the following syntax to work with AIR 2.0.3

  processArgs.push("C:\\Progra~1");

- Strange News - using your sample code - I was able to successfully use the following syntax to work with AIR 2.0.3

  processArgs.push("\"C:\\Program Files\""); <- which i think is what you are doing

So can you confirm that this information jives with what you are seeing?

Please also confirm that there is nothing wrong with the native installer you are trying to launch with NativeProcess by attempting to launch it from the command line.

Thanks,

Chris Thilgen

AIR Engineering

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 12, 2010 Aug 12, 2010

Copy link to clipboard

Copied

I tried the following in a cmd line:

C:\Users\DMerck>"C:\Users\DMerck\AppData\Roaming\PatientEDU\Local Store\PatientEDU.exe" -silent -location "\"C:\Program Files (x86)\""

C:\Users\DMerck>"C:\Users\DMerck\AppData\Roaming\PatientEDU\Local Store\PatientEDU.exe" -silent -location "C:\Program Files (x86)"

C:\Users\DMerck>"C:\Users\DMerck\AppData\Roaming\PatientEDU\Local Store\PatientEDU.exe" -silent -location C:\

Don't seem to do anything

C:\Users\DMerck>"C:\Users\DMerck\AppData\Roaming\PatientEDU\Local Store\PatientEDU.exe"

Brings up the installer.

Is it possible it is security related. Is there a log file that might tell us what it is getting stuck on?

David Merck

Lead Software Developer

Patient Edu, LLC

168 Denslow Road

East Longmeadow, MA 01028

Phone 413-525-3368 x 132

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 13, 2010 Aug 13, 2010

Copy link to clipboard

Copied

Windows UAC seems to have been the culprit.  It now installs silently.

Thanks,

Dave

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 13, 2010 Aug 13, 2010

Copy link to clipboard

Copied

Is there a command line argument that will run the application after installation?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Aug 13, 2010 Aug 13, 2010

Copy link to clipboard

Copied

Not if you are using the -silent option...

Chris Thilgen

AIR Engineering

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 13, 2010 Aug 13, 2010

Copy link to clipboard

Copied

I built a simple app (Update.exe) that runs the following batch file:

taskkill /fi "IMAGENAME eq PatientEDU.exe"

taskkill /fi "IMAGENAME eq adl.exe"

"%HOMEPATH%\AppData\Roaming\PatientEDU\Local Store\PatientEDU.exe" -silent -eulaAccepted -location "\"%PROGRAMFILES(X86)%\""

"%PROGRAMFILES(X86)%\PatientEDU\PatientEDU.exe"

taskkill /fi "IMAGENAME eq Update.exe"

I only launch the Update.exe ("Native Process") from PatientEDU.exe when there is a update of PatientEDU waiting on the server.  However the silent install only works if there is no app present.  It will not update the app.  Is there something I need to do in order to update the app to a newer version without user input silently.  This is for a hospital application running on an intranet.  Do I have to run an uninstall first?  I am trying to automate the process similar to the auto-update found in 1.5 with AIR installers.

Thoughts? 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 13, 2010 Aug 13, 2010

Copy link to clipboard

Copied

I changed the batch to use the following:

taskkill /fi "IMAGENAME eq PatientEDU.exe"

taskkill /fi "IMAGENAME eq adl.exe"

wmic product where name="PatientEDU" call uninstall /nointeractive

"%HOMEPATH%\AppData\Roaming\PatientEDU\Local Store\PatientEDU.exe" -silent -eulaAccepted -location "\"%PROGRAMFILES(X86)%\""

"%PROGRAMFILES(X86)%\PatientEDU\PatientEDU.exe"

taskkill /fi "IMAGENAME eq Update.exe"

This now uninstalls the app first and it seems to be working.  I still need to test certain scenarios but it looks promising.

-Dave

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 25, 2011 Mar 25, 2011

Copy link to clipboard

Copied

Hey, I have been seeing a very odd problem when attempting to install an air application much in the same way as the original poster.

I am attempting to install my air applicaton on a 64bit windows 7 machine using the following command via and administrator command prompt:


"C:\Program Files (x86)\Common Files\Adobe AIR\Versions\1.0\Adobe AIR Application Installer" -silent -location "C:\Program Files\MyLocation" -desktopShortcut "C:\Correct\Path\To\My\Air"\Application.air

The air is successfully being unpackaged, but it is being unpackaged to my user account's desktop with no desktop shortcut created.

I am using adobe air runtime version 2.5.0.16600

The log file is states everything is fine, the last two lines are:


[2011-03-25:16:45:00] Installing msi at C:\Users\agray\AppData\Local\Temp\fla640B.tmp\setup.msi with guid {FF6268BB-8C53-370A-1AA4-17C98ACC874A}
[2011-03-25:16:45:02] Application Installer end with exit code 0

The same happened when i attempted to install to -location "C:\Program Files".

Thanks in advance for any guidance you can give.

Andrew

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Mar 30, 2011 Mar 30, 2011

Copy link to clipboard

Copied

Hi Andrew,

We suspect the problem here is that you're attempting to install your AIR app into "C:\Program Files\".  Can you try specifying the 32bit version of this folder, "C:\Program Files (x86)" and see if that works?  64 bit windows will do some behind the scenes re-direction for certain directories.

Thanks,

Chris

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Mar 31, 2011 Mar 31, 2011

Copy link to clipboard

Copied

One additional thing to investigate.  It appears you might have a premature end quote on your command line:

"C:\Program Files (x86)\Common Files\Adobe AIR\Versions\1.0\Adobe AIR Application Installer" -silent -location "C:\Program Files\MyLocation" -desktopShortcut "C:\Correct\Path\To\My\Air"\Application.air

Could you try moving that quote to the end and see if that helps?

Thanks,

Chris

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines