Using a deployment tool we copy down 2 files to our target machines.   acme.exe and runacme.cmd.    Since the target machines are Windows 7 x64 runacme.cmd has this.

%WINDIR%\SysWOW64\Cmd.exe acme.exe /s /qn

It will not install.   And what is odd is you Can run this manually on a machine.  If I open up the cmd window and run acme.exe /s /qn it installs fine.

 

Application is 32-bit

Target OS is Windows 7 x64

 

What should my runacme.cmd contain to make this work?

 

 

 

0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Community Chosen Answer

2

use this in a batch file and it will work for sure and I am 100% sure:

cd %windir%\sysnative

acme.exe /s /qn

 

Do let me know your result.

Answered 05/08/2012 by: piyushnasa
Red Belt

Please log in to comment

Answers

1

Have you tried running it without calling cmd.exe?  Just run

acme.exe /s /qn

Your next option would be to use %windir%\system32\cmd.exe

I would also see if it runs with C:\Windows instead of %WINDIR%.  Some deployment tools run as a user that does not have these system variables defined.

Answered 05/08/2012 by: philologist
Red Belt

Please log in to comment
1

running it without the cmd.exe was the first thing we tried and it failed.  

Answered 05/08/2012 by: mhsl808
Fifth Degree Brown Belt

Please log in to comment
1

So does it work if you run it from %windir%\sysnative?

Answered 05/08/2012 by: adilrathore
Fourth Degree Black Belt

Please log in to comment
1

have you tried the following contents of the cmd file:

pushd %~dp0

acme.exe /s /qn

The problem might be your cmd not 'knowing' its own working directory, and thus not finding acme.exe. The first line of the script should fix that. Also, just a remark, the /qn parameter makes me suspect there's an MSI contained in acme.exe. Have you tried extracting that and running it directly?

 

Answered 05/09/2012 by: pjgeutjens
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity

Share