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:
IpXfer-64.exe
IpXfer.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)
Please log in to answer
Posted by:
anonymous_9363
9 years ago
Posted by:
jknox
9 years ago
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.
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.