/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Script install

03/20/2015 2602 views
Hello,

Im trying to install a new version of a program on our clients.
The script looks like this:

if %PROCESSOR_ARCHITECTURE%==x86 (
  IpXfer.exe -s av.k1860.no -p 8080 -c 45211 -d FromOld
) else (
  IpXfer-64.exe -s av.k1860.no -p 8080 -c 45211 -d FromOld
)

The files are added as dependencies
and are named:
file_tiny.gifIpXfer-64.exe
file_tiny.gifIpXfer.exe


If i start the script with a .bat file on the computer it works well,
With k1000 not so much, I see it starts but then it dissapear and does not complete.

Any idea what the problem might be?

Best regards
Alexander
2 Comments   [ + ] Show comments

Comments

  • check out the following website for more information: http://stackoverflow.com/questions/1738985/why-processor-architecture-always-returns-x86-instead-of-amd64
  • I appreciate the answer but the script is allready working on local pc. but not though K1000.

All Answers

0

You're leaving it to the KBox to guess where those EXEs are. Regrettably, like so many of us, it has been deserted by its psychic powers.

@Community: Does the standard '%~DP0' dodge work with KBoxes?

Answered 03/20/2015 by: VBScab
Red Belt

0
With a batch file, it is executed on the local machine from the location that the K1000 downloads the files to.  It's basically the equivalent of opening a command prompt on the local machine and executing the software.

As for running in the K1000, I'd guess offhand that there is an inconsistency in the architecture detection in your string since the agent is 32 bit. 

I'm glad you have it working in a batch file, but If running it in the K1000 concerns you, open a ticket with support for them to investigate further.

As for %~DP0, I know I've used it before in a kscript, but don't remember the context.
Answered 03/23/2015 by: jknox
Red Belt

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ