Silent and Custom Ranorex Installation

Best practices, code snippets for common functionality, examples, and guidelines.
dhalperin
Posts: 1
Joined: Fri Mar 19, 2010 8:48 pm

Silent and Custom Ranorex Installation

Post by dhalperin » Fri Mar 19, 2010 8:50 pm

Hi,

I have downloaded the .zip file for v2.2.2 and tried to automate the installation. The problem is, no matter how I try to do this, it will always install the entire application. I am trying to install the core components ONLY. I would then like to use the package in SCCM to distribute it.

Thanks.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Silent Install

Post by Support Team » Sun Mar 21, 2010 6:34 pm

For silent installation of Ranorex please see the following thread:
http://www.ranorex.com/forum/can-i-auto ... t1164.html

You can (de)select features installed by the MSI using the command line options "ADDLOCAL" and "REMOVE". For example, the following command line will install all Ranorex components except for Ranorex Studio:

Code: Select all

msiexec /i Ranorex-2.2.2.msi ADDLOCAL="ALL" REMOVE="RanorexStudioFeature"
Possible feature names used as parameter to ADDLOCAL or REMOVE (separated by commas) are:
"MainFeature" (core components)
"RanorexSamples"
"RanorexStudioFeature"
"RanorexFirefoxExtension" (Firefox add-on)
"RanorexIEAddon" (IE Add-on, available with Ranorex 2.3)

Regards,
Alex
Ranorex Support Team

anja
Posts: 67
Joined: Fri Nov 26, 2010 3:39 pm

Re: Silent and Custom Ranorex Installation

Post by anja » Tue Jan 11, 2011 1:20 pm

Hello,

I've got an additional topic to this...

Is it possible to add a parameter with the license-server and license type?
I ask this because our tests should be executed within several Operating Systems. For this we use VMs for execution.We want to use clean VM Images to start and then install Ranorex Runtime silent via command line. At this point we get the problem that no license is installed... The licenses are situated on a license server.
Is there any possibility for us to automate this step?

Thank you

Anja

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Silent and Custom Ranorex Installation

Post by Support Team » Tue Jan 11, 2011 1:40 pm

Hi,
Ranorex Team
anja wrote:Is there any possibility for us to automate this step?
Sorry but there is no parameter for the MSI Package, but there is another simple solution. Just use the command "XCOPY" in a batch file and copy following file "Ranorex2_Server.lic" to "ProgamData". Ranorex2_Server.lic file will be created when you use a License Server for one Ranorex Client. Just search for that file on such a machine.

Regards,
Peter
Ranorex Team

Tiano
Posts: 2
Joined: Tue Sep 13, 2011 9:27 am

Re: Silent and Custom Ranorex Installation

Post by Tiano » Tue Sep 13, 2011 9:29 am

The /v command-line parameter enables you to pass parameters supported by Windows Installer through setup.exe to the MSI package. For example, you can create and save a verbose log file to a location of your choice by passing the /L parameter through setup.exe to the MSI package. To create the log file, type:

E:\install\pcomm\setup.exe /v"/L*v\"%temp%\pcsinst.log\"
Last edited by Tiano on Thu Jun 21, 2012 1:32 pm, edited 2 times in total.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Silent and Custom Ranorex Installation

Post by Support Team » Wed Oct 19, 2011 11:32 am

Tiano wrote:The /v command-line parameter enables you to pass parameters supported by Windows Installer through setup.exe to the MSI package.
Actually, IMHO you do not even need that "/v" switch for the most command line arguments (except to bypass the arguments supported by the setup.exe directly, like "/?"). Usually, it should be enough to just pass the MSI command line arguments directly to the "setup.exe" or "Ranorex-X.X.X.X.exe" file.

Regards,
Alex
Ranorex Team