Sahi GUI Less (Silent) Installation
For installing Sahi on systems which do not have a GUI or a window manager (say a Linux server) do the followinginfo
Instructions for Sahi Pro Runner and Sahi Pro Add-on are similar to Sahi Pro.
- Copy the Sahi Pro installer jar (install_sahi_pro_vxx_yyyymmdd.jar) to the desired location.
- Copy the contents below into a file named silent_install.xml Contents of /home/user1/sahi/silent_install.xml:
- Install Sahi Pro using the following command
- Copy productkey.txt file into /home/user1/sahi_pro/userdata/config directory.
- Start Sahi Pro using
Eg. if you want to install Sahi Pro at /home/user1/sahi_pro
copy the installer to /home/user1/
Eg.
wget http://sahipro.com/static/builds/pro/install_sahi_pro_v750_20171222.jar
mkdir sahi_pro
mv install_sahi_pro_v750_20171222.jar sahi_pro
For Sahi Pro (Windows/Linux OS)
<AutomatedInstallation langpack="eng">
<com.izforge.izpack.panels.HelloPanel/>
<com.izforge.izpack.panels.HTMLInfoPanel/>
<com.izforge.izpack.panels.HTMLInfoPanel/>
<com.izforge.izpack.panels.LicencePanel/>
<com.izforge.izpack.panels.TargetPanel>
<installpath>sahi_pro</installpath>
</com.izforge.izpack.panels.TargetPanel>
<com.izforge.izpack.panels.PacksPanel>
<pack name="Sahi Core" index="0" selected="true"/>
<pack name="Tools" index="1" selected="true"/>
<pack name="Sample Java Project" index="2" selected="true"/>
<pack name="Flowcharts Core" index="3" selected="true"/>
<pack name="Editor support files" index="4" selected="true"/>
</com.izforge.izpack.panels.PacksPanel>
<com.izforge.izpack.panels.InstallPanel/>
<com.izforge.izpack.panels.ShortcutPanel/>
<com.izforge.izpack.panels.ProcessPanel/>
<com.izforge.izpack.panels.FinishPanel/>
</AutomatedInstallation>
For Sahi Pro (Mac OS)
<AutomatedInstallation langpack="eng">
<com.izforge.izpack.panels.HelloPanel/>
<com.izforge.izpack.panels.HTMLInfoPanel/>
<com.izforge.izpack.panels.HTMLInfoPanel/>
<com.izforge.izpack.panels.LicencePanel/>
<com.izforge.izpack.panels.TargetPanel>
<installpath>sahi_pro</installpath>
</com.izforge.izpack.panels.TargetPanel>
<com.izforge.izpack.panels.PacksPanel>
<pack name="Sahi Core" index="0" selected="true"/>
<pack name="Tools" index="1" selected="true"/>
<pack name="Sample Java Project" index="2" selected="true"/>
<pack name="Flowcharts Core" index="3" selected="true"/>
<pack name="Editor support files" index="4" selected="true"/>
<pack name="Sahi Pro Mac Shortcut" index="5" selected="true"/>
</com.izforge.izpack.panels.PacksPanel>
<com.izforge.izpack.panels.InstallPanel/>
<com.izforge.izpack.panels.ShortcutPanel/>
<com.izforge.izpack.panels.ProcessPanel/>
<com.izforge.izpack.panels.FinishPanel/>
</AutomatedInstallation>
For Sahi Pro Runner (Windows/Linux OS)
<AutomatedInstallation langpack="eng">
<com.izforge.izpack.panels.HelloPanel/>
<com.izforge.izpack.panels.HTMLInfoPanel/>
<com.izforge.izpack.panels.LicencePanel/>
<com.izforge.izpack.panels.TargetPanel>
<installpath>sahi_pro_runner</installpath>
</com.izforge.izpack.panels.TargetPanel>
<com.izforge.izpack.panels.PacksPanel>
<pack name="Sahi Core" index="0" selected="true"/>
<pack name="Tools" index="1" selected="true"/>
</com.izforge.izpack.panels.PacksPanel>
<com.izforge.izpack.panels.InstallPanel/>
<com.izforge.izpack.panels.ShortcutPanel/>
<com.izforge.izpack.panels.ProcessPanel/>
<com.izforge.izpack.panels.FinishPanel/>
</AutomatedInstallation>
For Sahi Pro Runner (Mac OS)
<AutomatedInstallation langpack="eng">
<com.izforge.izpack.panels.HelloPanel/>
<com.izforge.izpack.panels.HTMLInfoPanel/>
<com.izforge.izpack.panels.LicencePanel/>
<com.izforge.izpack.panels.TargetPanel>
<installpath>sahi_pro_runner</installpath>
</com.izforge.izpack.panels.TargetPanel>
<com.izforge.izpack.panels.PacksPanel>
<pack name="Sahi Core" index="0" selected="true"/>
<pack name="Tools" index="1" selected="true"/>
<pack name="Sahi Pro Runner Mac Shortcut" index="2" selected="true"/>
</com.izforge.izpack.panels.PacksPanel>
<com.izforge.izpack.panels.InstallPanel/>
<com.izforge.izpack.panels.ShortcutPanel/>
<com.izforge.izpack.panels.ProcessPanel/>
<com.izforge.izpack.panels.FinishPanel/>
</AutomatedInstallation>
For Sahi Pro Desktop Add-on (Windows OS)
<AutomatedInstallation langpack="eng">
<com.izforge.izpack.panels.HelloPanel/>
<com.izforge.izpack.panels.LicencePanel/>
<com.izforge.izpack.panels.HTMLInfoPanel/>
<com.izforge.izpack.panels.TargetPanel>
<installpath>sahi_pro</installpath>
</com.izforge.izpack.panels.TargetPanel>
<com.izforge.izpack.panels.PacksPanel>
<pack name="Enable Sahi Desktop Automation" index="0" selected="true"/>
<pack name="Sahi Windows" index="1" selected="true"/>
<pack name="Windows Sample Apps" index="2" selected="true"/>
<pack name="Windows Demo Scripts" index="3" selected="true"/>
<pack name="Sahi Windows sample Java project files" index="4" selected="true"/>
<pack name="Sahi Java Desktop" index="5" selected="true"/>
<pack name="Sahi Java Desktop Demo Scripts and Application" index="6" selected="true"/>
<pack name="Sahi Java Desktop sample Java project files" index="7" selected="true"/>
</com.izforge.izpack.panels.PacksPanel>
<com.izforge.izpack.panels.InstallPanel/>
<com.izforge.izpack.panels.ProcessPanel/>
<com.izforge.izpack.panels.FinishPanel/>
</AutomatedInstallation>
For Sahi Pro Desktop Add-on (Mac/Linux OS)
<AutomatedInstallation langpack="eng">
<com.izforge.izpack.panels.HelloPanel/>
<com.izforge.izpack.panels.LicencePanel/>
<com.izforge.izpack.panels.TargetPanel>
<installpath>sahi_pro</installpath>
</com.izforge.izpack.panels.TargetPanel>
<com.izforge.izpack.panels.PacksPanel>
<pack name="Enable Sahi Desktop Automation" index="0" selected="true"/>
<pack name="Sahi Java Desktop" index="1" selected="true"/>
<pack name="Sahi Java Desktop Demo Scripts and Application" index="2" selected="true"/>
<pack name="Sahi Java Desktop sample Java project files" index="3" selected="true"/>
</com.izforge.izpack.panels.PacksPanel>
<com.izforge.izpack.panels.InstallPanel/>
<com.izforge.izpack.panels.ProcessPanel/>
<com.izforge.izpack.panels.FinishPanel/>
</AutomatedInstallation>
For Sahi Pro Mobile Add-on (Windows/Linux OS)
<AutomatedInstallation langpack="eng">
<com.izforge.izpack.panels.HelloPanel/>
<com.izforge.izpack.panels.LicencePanel/>
<com.izforge.izpack.panels.TargetPanel>
<installpath>sahi_pro</installpath>
</com.izforge.izpack.panels.TargetPanel>
<com.izforge.izpack.panels.PacksPanel>
<pack name="Enable Sahi Mobile Automation" index="0" selected="true"/>
<pack name="Sahi iOS Primary" index="1" selected="true"/>
<pack name="Sahi Android" index="2" selected="true"/>
<pack name="Android Sample Apps" index="3" selected="true"/>
<pack name="Android Demo Scripts" index="4" selected="true"/>
<pack name="Android Java Driver sample file" index="5" selected="true"/>
</com.izforge.izpack.panels.PacksPanel>
<com.izforge.izpack.panels.InstallPanel/>
<com.izforge.izpack.panels.ProcessPanel/>
<com.izforge.izpack.panels.FinishPanel/>
</AutomatedInstallation>
For Sahi Pro Mobile Add-on (Mac OS)
<AutomatedInstallation langpack="eng">
<com.izforge.izpack.panels.HelloPanel/>
<com.izforge.izpack.panels.LicencePanel/>
<com.izforge.izpack.panels.TargetPanel>
<installpath>sahi_pro</installpath>
</com.izforge.izpack.panels.TargetPanel>
<com.izforge.izpack.panels.PacksPanel>
<pack name="Enable Sahi Mobile Automation" index="0" selected="true"/>
<pack name="Sahi iOS Primary" index="1" selected="true"/>
<pack name="Sahi iOS" index="2" selected="true"/>
<pack name="iOS Sample Apps" index="3" selected="true"/>
<pack name="iOS Demo Scripts" index="4" selected="true"/>
<pack name="iOS Java Driver sample file" index="5" selected="true"/>
<pack name="Sahi Android" index="6" selected="true"/>
<pack name="Android Sample Apps" index="7" selected="true"/>
<pack name="Android Demo Scripts" index="8" selected="true"/>
<pack name="Android Java Driver sample file" index="9" selected="true"/>
</com.izforge.izpack.panels.PacksPanel>
<com.izforge.izpack.panels.InstallPanel/>
<com.izforge.izpack.panels.ProcessPanel/>
<com.izforge.izpack.panels.FinishPanel/>
</AutomatedInstallation>
For Sahi Pro SAP Add-on (Windows OS)
<AutomatedInstallation langpack="eng">
<com.izforge.izpack.panels.HelloPanel/>
<com.izforge.izpack.panels.LicencePanel/>
<com.izforge.izpack.panels.TargetPanel>
<installpath>sahi_pro</installpath>
</com.izforge.izpack.panels.TargetPanel>
<com.izforge.izpack.panels.PacksPanel>
<pack name="Enable Sahi SAP Automation" index="0" selected="true"/>
<pack name="Sahi SAP" index="1" selected="true"/>
<pack name="SAP Demo Scripts" index="2" selected="true"/>
<pack name="Sahi SAP sample Java project files" index="3" selected="true"/>
</com.izforge.izpack.panels.PacksPanel>
<com.izforge.izpack.panels.InstallPanel/>
<com.izforge.izpack.panels.ProcessPanel/>
<com.izforge.izpack.panels.FinishPanel/>
</AutomatedInstallation>
For Sahi Pro AI-Assist Add-on
<AutomatedInstallation langpack="eng">
<com.izforge.izpack.panels.HelloPanel/>
<com.izforge.izpack.panels.LicencePanel/>
<com.izforge.izpack.panels.TargetPanel>
<installpath>sahi_pro</installpath>
</com.izforge.izpack.panels.TargetPanel>
<com.izforge.izpack.panels.PacksPanel>
<pack name="Sahi Pro AI Assist Add-on" index="0" selected="true"/>
<pack name="AI Assist Sample Scripts" index="1" selected="true"/>
</com.izforge.izpack.panels.PacksPanel>
<com.izforge.izpack.panels.InstallPanel/>
<com.izforge.izpack.panels.ProcessPanel/>
<com.izforge.izpack.panels.FinishPanel/>
<com.izforge.izpack.panels.XInfoPanel/>
</AutomatedInstallation>
For Sahi Pro Starter
<AutomatedInstallation langpack="eng">
<com.izforge.izpack.panels.HelloPanel/>
<com.izforge.izpack.panels.HTMLInfoPanel/>
<com.izforge.izpack.panels.LicencePanel/>
<com.izforge.izpack.panels.TargetPanel>
<installpath>sahi_pro_starter</installpath>
</com.izforge.izpack.panels.TargetPanel>
<com.izforge.izpack.panels.PacksPanel>
<pack name="Sahi Core" index="0" selected="true"/>
<pack name="Tools" index="1" selected="true"/>
<pack name="Sample Java Project" index="2" selected="true"/>
</com.izforge.izpack.panels.PacksPanel>
<com.izforge.izpack.panels.InstallPanel/>
<com.izforge.izpack.panels.ShortcutPanel/>
<com.izforge.izpack.panels.ProcessPanel/>
<com.izforge.izpack.panels.FinishPanel/>
</AutomatedInstallation>
cd sahi
vi silent_install.xml
(Press Esc and i)
paste the above contents into it
(Esc :wq)
java -jar install_sahi_pro_v600_20141015.jar silent_install.xml
This will install Sahi Pro in /home/user1/sahi_pro/
warning
If you are installing an earlier version of Sahi, it is possible that the installation fails with the above xml content.
If the installation fails, run the Sahi installer with GUI once and generate the xml content by clicking on Generate an automatic installation script
button at the end of the installation, as shown in the image below.
Use that xml content in the step above.
cd /home/user1/sahi_pro/userdata/bin
./start_sahi.sh