/build/static/layout/Breadcrumb_cap_w.png

Script install

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
  • check out the following website for more information: http://stackoverflow.com/questions/1738985/why-processor-architecture-always-returns-x86-instead-of-amd64 - aragorn.2003 9 years ago
  • I appreciate the answer but the script is allready working on local pc. but not though K1000. - axkristiansen 9 years ago

Answers (2)

Posted by: anonymous_9363 9 years ago
Red Belt
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?

Posted by: jknox 9 years ago
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.
 
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