Deploying Sikuli just by unzipping a file possible?

Asked by Tak Eda

I need to deploy my Sikuli scripts to users that do not have admin rights or internet access

Is it possible to zip up the Sikuli installation on my computer and just have users of my script unzip that to be able to run my Sikuli scripts?

The use case is this:
1. My friend works at a helpdesk and needs to enter some information all the time
2. I wrote him a Sikuli script to enter all that information for him, but he has no admin rights or internet access. He just has his work email access.
3. He'll have to email a zip file with all the Sikuli runtimes in it and then save it at his work computer, extract it and click a button (or a batch file) to get it to work

We can assume JRE is installed as the email client is Java based.

So, is it possible to zip up the Sikuli installation on my computer and just have users of my script unzip that to be able to run my Sikuli scripts?

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

What is your system and what is the target system?

What Sikuli version?

Revision history for this message
Tak Eda (takeda) said :
#2

1. Both our systems are Windows 7, x64.
2. Sikuli CANNOT be installed on the other machine and hence will have the same version as mine

My questions are:

i. Does it matter if the other system I want to run my script on is different from mine as long as it has a JRE on it?
ii. Ca I just copy my Sikuli folder + my script to the other system and expect it to run flawlesly?

I'm trying to figure out how to easily deploy Sikuli scripts without needing someone to install Sikuli on the target computer but use an installation copied from another computer?

Revision history for this message
RaiMan (raimund-hocke) said :
#3

-- to i:
 a JRE is the minimum must.
Assuming you somehow have a Sikuli setup (see ii) on the other machine, then the script to running as expected only depends on the fact that the images you are using are the same on the other system (same width and height measured in pixels and the pixels itself are the same). Depending on what the script is doing, the images might vary from system to system, e.g. because of a different theme, a different browser, a monitor setup, that does some scaling that impacts the pixels and more possible situations.

-- to ii
with version 1.1.0 you just have to pack the sikulix.jar, the runsikulix.cmd and your scripts together, unpack on the other system and use
runsikulix.cmd -r myscript.sikuli.

On startup SikuliX will export the libraries to the folder libs and simply work as expected.

with version RC3 and 1.0.1 it is a bit more tricky, since the system path has to be modified. but as long as you run the stuff using the command files it should work.

Revision history for this message
RaiMan (raimund-hocke) said :
#4

you should simply try it out ;-)

Can you help with this problem?

Provide an answer of your own, or ask Tak Eda for more information if necessary.

To post a message you must log in.