SlideShare une entreprise Scribd logo
1  sur  6
Télécharger pour lire hors ligne
W H I T E PA P E R




                     Building Console
                     and Silent Installers
                     by Robert Dickau
                     Principal Technical Training Writer, Flexera Software
Building Console and Silent Installers
    Introduction                                                      parameters, or read configuration information from a simple
    In a contemporary environment, an end user is likely to find      response file.
    a number of heterogeneous systems. They will be installing
    and uninstalling with different platforms, different operating    These modes provide enormous flexibility in your
    environments, and different interaction environments.             installation, enabling you to give end users a choice of
    InstallAnywhere helps you meet the needs of these end             installation mode that best meets their needs.
    users by presenting installer options that can run in any
    number of environments.                                           Console-mode installers enable your end users a non-
                                                                      graphical user interface structured to enable interaction
    Beyond the basic installer wizard, graphical user tools,          through text only. Console mode is intended to add support
    and variable-based rules, InstallAnywhere offers additional       for non-graphical environments such as those common on
    options for you to use when building an installer. This white     so called “headless” Unix systems. Console mode mimics
    paper describes additional installation-related concepts,         the default GUI steps provided by InstallAnywhere, and
    including:                                                        uses standard input and output. The biggest advantage to
                                                                      console mode is that Unix developers no longer need X
      • Console-mode, for command-line-driven installations           Windows (X11) to run their installers.
      • Silent installations, for working with limited or no user
        interaction                                                   To enable console mode for your project, you must select the
                                                                      Console check box in the Installer UI > Look & Feel task.
       Learn More about InstallAnywhere
       If you wish to learn more about the capabilities of
       InstallAnywhere and download a free evaluation,
       please visit the Flexera Software Web site at
       www.flexerasoftware.com/installanywhere
                                                                      Additionally, to enable console mode for a Windows
                                                                      installer, choose the Console Launcher option for the
    Console Installers                                                Install Launcher Type in the task Project > Platforms >
    In enterprise-level environments, it is not uncommon for end      Windows, pictured in the following figure. Starting with
    users to install applications to servers and other remote         InstallAnywhere 2009, you can set the default UI mode of
    systems. In these cases, a rich graphical user interface          the uninstaller independently of the installer.
    (GUI) such as that provided by InstallAnywhere’s standard
    installer modes is not always desirable. You may find that
    your end users will a need command-line interface mode
    installer, or even a silent installation that requires no end-
    user interaction.

    InstallAnywhere Enterprise Edition supports both console-
    mode and silent-mode installations. Console mode provides
    your end user with a text-only interface, similar to that         To run an installer in console mode, the user runs the
    found in ANSI terminal applications. Silent mode provides         installer with the -i console argument, as in the following:
    an automated non-interactive installation mode, which can
    either run entirely using the default settings you defined         install -i console
    in the project, use intelligent logic to determine installation   Note: If console mode has not been enabled for your project,



2                                                                               Flexera Software: InstallAnywhere White Paper Series
Building Console and Silent Installers




the installer displays an error message that begins, “Installer   As with graphical panels, the customizer for a console
User Interface Not Supported”.                                    action enables you to modify the text and behavior of the
                                                                  action in console mode. The default text of a console action
InstallAnywhere does not automatically provide console            is generally similar to the text used by the graphical panel,
alternatives for panels you have added to your installer.         though slightly reworded to reflect the text-only mode. For
You must provide consoles for each panel that you want            example, where panel text might refer to Previous and Next
displayed during console mode. In general, InstallAnywhere        buttons, the console action mentions typing “back” to return
console actions provide parity with panels provided in the        to a previous step.
graphical mode.
                                                                  At run time, the console actions display the text you
For example, the Pre-Install task normally includes graphical     specified in the respective customizers. For example, the
panels such as Introduction, Choose Install Folder, and           console version of the Introduction panel appears as follows:
Pre-Install Summary.
                                                                    Introduction
                                                                    ---------------------
                                                                    InstallAnywhere will guide you through the installation of
                                                                    SampleApp.

                                                                    It is strongly recommended that you quit all programs before
                                                                    continuing with this installation.
                                                                    Respond to each prompt to proceed to the next step in the
To add console equivalents to these graphical panels,               installation. If you want to change something on a previous
begin by clicking the Add Action button and selecting the           step, type ‘back’.
Consoles tab.
                                                                    You may cancel this installation at any time by typing ‘quit’.

                                                                    PRESS <ENTER> TO CONTINUE:

                                                                  Similarly, the console version of the Choose Link Location
                                                                  panel appears similar to the following:

                                                                    Choose Link Location
                                                                    ---------------------
                                                                    Where would you like to create links?
                                                                    -> 1- Default: C:Documents and SettingsUserStart
                                                                    MenuProgramsSampleApp
                                                                       2- In your home folder
                                                                       3- Choose another location...
                                                                       4- Don’t create links

                                                                    ENTER THE NUMBER OF AN OPTION ABOVE, OR PRESS
                                                                    <ENTER> TO ACCEPT THE DEFAULT:

You then select the desired consoles and click Add, which         Console-mode enables text to be output to the console
places the console actions in the Pre-Install task. It is         line-by-line. It does not support formatted text, clearing the
not necessary to insert the console actions next to their         screen, or positioning the cursor.
graphical panel equivalents, but doing so can help with
the overall organization. Another approach is to group the        Tip: Running the installer in console mode sets the
panels and console actions separately.                            InstallAnywhere variable INSTALLER_UI to the value
                                                                  “CONSOLE”. If necessary, you can test the value of
                                                                  INSTALLER_UI to determine whether any action should run.

                                                                  Silent Installers
                                                                  Silent mode, which enables an installer to run without any
                                                                  user interaction, is fully supported on all Unix platforms. (A
                                                                  near-silent mode, displaying only progress information, is
                                                                  available on Windows and Mac OS X.) As with console
                                                                  mode, you must enable silent mode for your project in the
                                                                  Look & Feel subtask.

Flexera Software: InstallAnywhere White Paper Series                                                                                       3
Building Console and Silent Installers




    To perform a silent installation from the command line, a           file. This negates the need for using the additional -i switch
    user runs the following command:                                    to the installer executable.

      install -i silent                                                 Configuring Variables Used in Response Files
                                                                        In some cases it is undesirable to store property values in a
    This command runs the silent installer with all of the project’s    response file generated with the -r switch. In the Project >
    default settings. As with console mode, the user will see an        Info task, you can configure variables to encrypt or exclude
    error message if the project does not support silent mode.          from a response file.

    Using a Response File                                               For example, suppose you have a simple User Input panel
    To override the default settings in a silent installation, a user   that asks the user to provide a sensitive passphrase.
    can point to a response file. A response file contains the
    values of InstallAnywhere variables to use during a silent
    installation.

    To generate a response file, a user runs the installer with
    the -r switch. You can also use the setting Always Generate
    Response File in the Project > Info subtask. When the installer
    runs, it records end-user choices in a file called installer.
    properties, stored in the same directory as the installer.

    Sample contents of a response file are the following.

      # Fri Oct 31 25:00:00 CST 2008
      # Replay feature output
      #---------------------
      # This file was built by the Replay feature of InstallAnywhere.
      # It contains variables that were set by Panels, Consoles or      In the InstallAnywhere project, the panel is configured to
      Custom Code.                                                      store the user input in InstallAnywhere variables with the
      #Choose Install Folder                                            base name $SECRET_PASSPHRASE$, which means the
      #---------------------                                            variables SECRET_PASSPHRASE and SECRET_PASSPHRASE_1
      USER_INSTALL_DIR=C:Program FilesSampleApp3000                 both expose the sensitive data.
      #Choose Shortcut Folder
      #---------------------
      USER_SHORTCUTS=C:Documents and SettingsAll
      UsersStart MenuProgramsSampleApp3000

    Apart from comments (lines that begin with the hash sign
    #), the response file contains entries of the form:
                                                                        To prevent the value from being included in the response
      PROPERTY_NAME=Value                                               file, begin by clicking the Configure button in the Project
                                                                        > Info task, which displays the Configure Variables dialog
    A user can manually create a response file or modify                box. Click Add to add the names of variables to encrypt
    property values inside a recorded response file as                  or exclude from the response file, along with the desired
    appropriate.                                                        behavior (whether to exclude the entire variable entry from
                                                                        the response file, exclude only the value, or encrypt the
    When a user deploys an installation, the installer executable       variable’s value).
    looks for a file called installer.properties or installername.
    properties, and if such a file is present reads the property
    names and values and uses the specified property values
    during the installation. To specify a different file name or
    location, the user can specify the desired response file with
    the -f switch, as in:

      ./install.bin -i silent -f /usr/tmp/SampleResponseFile.
      properties

    The response file can specify the user-interface mode by
    setting INSTALLER_UI=SILENT (for example) in the response

4                                                                                 Flexera Software: InstallAnywhere White Paper Series
Building Console and Silent Installers




If you select Exclude Value Only, a user who generates a
response file by running install -r receives the following entries
for the corresponding panel:

 #Secret Passphrase
 #---------------------
 SECRET_PASSPHRASE=
 SECRET_PASSPHRASE_1=

Summary
This white paper discussed additional installation-related
concepts such as console-mode and, silent installations.
It also highlighted how InstallAnywhere helps developers
execute best practices for these advanced concepts.



  Begin a Free Evaluation of InstallAnywhere
  You can download a free trial version of InstallAnywhere
  from the Flexera Software Web site at:
  www.flexerasoftware.com/installanywhere/eval.



  Learn More Best Practices for Building Quality Installations
  Join an InstallAnywhere training class – visit
  www.flexerasoftware.com/training for available classes.

  Also, if you have a critical installation project but are
  short on developer bandwidth or expertise, Flexera
  Software’s Professional Services team can help. Learn
  more at: www.flexerasoftware.com/services/consulting/
  software-installations.htm




Flexera Software: InstallAnywhere White Paper Series                                                          5
Flexera Software LLC                      Schaumburg                                United Kingdom (Europe,                   Japan (Asia,                              For more office locations visit:
1000 East Woodfield Road,                 (Global Headquarters):                    Middle East Headquarters):                Pacific Headquarters):                    www.flexerasoftware.com
Suite 400                                 +1 800-809-5659                           +44 870-871-1111                          +81 3-4360-8291
Schaumburg, IL 60173 USA                                                            +44 870-873-6300

Copyright © 2011 Flexera Software LLC. All other brand and product names mentioned herein may be the trademarks and registered trademarks of their respective owners.
                                                                                                                                                                                    IA_WP_Console_Oct11

Contenu connexe

En vedette

Métricas orientadas a objeto
Métricas orientadas a objeto   Métricas orientadas a objeto
Métricas orientadas a objeto David Leon Sicilia
 
Pradip Children Book Illustrator
Pradip Children Book IllustratorPradip Children Book Illustrator
Pradip Children Book IllustratorFreelancer
 
Maximizing the Revenue from Your Digital Goods Principles of High Performance...
Maximizing the Revenue from Your Digital Goods Principles of High Performance...Maximizing the Revenue from Your Digital Goods Principles of High Performance...
Maximizing the Revenue from Your Digital Goods Principles of High Performance...Flexera
 
Guia de ordenamiento para la firma del libro de acta 2013 i
Guia de ordenamiento para la firma del libro de acta 2013 iGuia de ordenamiento para la firma del libro de acta 2013 i
Guia de ordenamiento para la firma del libro de acta 2013 iDavid Leon Sicilia
 
Virtual Desktops for the Enterprise
Virtual Desktops for the EnterpriseVirtual Desktops for the Enterprise
Virtual Desktops for the EnterpriseFlexera
 
Q Pres Marzo 2010
Q Pres Marzo 2010Q Pres Marzo 2010
Q Pres Marzo 2010Quadrante
 
Guia de ordenamiento para la firma del libro de acta 2012 ii educación
Guia de ordenamiento para la firma del libro de acta 2012 ii educaciónGuia de ordenamiento para la firma del libro de acta 2012 ii educación
Guia de ordenamiento para la firma del libro de acta 2012 ii educaciónDavid Leon Sicilia
 
Delivering Results to the Last Uncluttered Space
Delivering Results to the Last Uncluttered SpaceDelivering Results to the Last Uncluttered Space
Delivering Results to the Last Uncluttered SpacePower Direct
 
Guia de ordenamiento para la firma del libro de acta 2012 ii estudios juridicos
Guia de ordenamiento para la firma del libro de acta 2012 ii estudios juridicosGuia de ordenamiento para la firma del libro de acta 2012 ii estudios juridicos
Guia de ordenamiento para la firma del libro de acta 2012 ii estudios juridicosDavid Leon Sicilia
 

En vedette (15)

Christmas Vacation
Christmas VacationChristmas Vacation
Christmas Vacation
 
Métricas orientadas a objeto
Métricas orientadas a objeto   Métricas orientadas a objeto
Métricas orientadas a objeto
 
Utpl
UtplUtpl
Utpl
 
Wordpress prez 20121
Wordpress prez 20121Wordpress prez 20121
Wordpress prez 20121
 
Pradip Children Book Illustrator
Pradip Children Book IllustratorPradip Children Book Illustrator
Pradip Children Book Illustrator
 
Hardware komputer-dan-fungsinya
Hardware komputer-dan-fungsinyaHardware komputer-dan-fungsinya
Hardware komputer-dan-fungsinya
 
Maximizing the Revenue from Your Digital Goods Principles of High Performance...
Maximizing the Revenue from Your Digital Goods Principles of High Performance...Maximizing the Revenue from Your Digital Goods Principles of High Performance...
Maximizing the Revenue from Your Digital Goods Principles of High Performance...
 
Guia de ordenamiento para la firma del libro de acta 2013 i
Guia de ordenamiento para la firma del libro de acta 2013 iGuia de ordenamiento para la firma del libro de acta 2013 i
Guia de ordenamiento para la firma del libro de acta 2013 i
 
Virtual Desktops for the Enterprise
Virtual Desktops for the EnterpriseVirtual Desktops for the Enterprise
Virtual Desktops for the Enterprise
 
Bostan Dumtru
Bostan DumtruBostan Dumtru
Bostan Dumtru
 
Q Pres Marzo 2010
Q Pres Marzo 2010Q Pres Marzo 2010
Q Pres Marzo 2010
 
Guia de ordenamiento para la firma del libro de acta 2012 ii educación
Guia de ordenamiento para la firma del libro de acta 2012 ii educaciónGuia de ordenamiento para la firma del libro de acta 2012 ii educación
Guia de ordenamiento para la firma del libro de acta 2012 ii educación
 
Delivering Results to the Last Uncluttered Space
Delivering Results to the Last Uncluttered SpaceDelivering Results to the Last Uncluttered Space
Delivering Results to the Last Uncluttered Space
 
Anthro Pln
Anthro PlnAnthro Pln
Anthro Pln
 
Guia de ordenamiento para la firma del libro de acta 2012 ii estudios juridicos
Guia de ordenamiento para la firma del libro de acta 2012 ii estudios juridicosGuia de ordenamiento para la firma del libro de acta 2012 ii estudios juridicos
Guia de ordenamiento para la firma del libro de acta 2012 ii estudios juridicos
 

Plus de Flexera

Get a Complete View of Your Business Services and IT Estate in ServiceNow wit...
Get a Complete View of Your Business Services and IT Estate in ServiceNow wit...Get a Complete View of Your Business Services and IT Estate in ServiceNow wit...
Get a Complete View of Your Business Services and IT Estate in ServiceNow wit...Flexera
 
Make Smarter Cloud Decisions at Every Step of Your Journey
Make Smarter Cloud Decisions at Every Step of Your JourneyMake Smarter Cloud Decisions at Every Step of Your Journey
Make Smarter Cloud Decisions at Every Step of Your JourneyFlexera
 
10 Tips to Optimize, Automate, and Govern your Hybrid IT Environment
10 Tips to Optimize, Automate, and Govern your Hybrid IT Environment10 Tips to Optimize, Automate, and Govern your Hybrid IT Environment
10 Tips to Optimize, Automate, and Govern your Hybrid IT EnvironmentFlexera
 
Using Automated Policies for SaaS Governance and Compliance
Using Automated Policies for SaaS Governance and ComplianceUsing Automated Policies for SaaS Governance and Compliance
Using Automated Policies for SaaS Governance and ComplianceFlexera
 
The Practical Approach for End-to-End SaaS Management
The Practical Approach for End-to-End SaaS ManagementThe Practical Approach for End-to-End SaaS Management
The Practical Approach for End-to-End SaaS ManagementFlexera
 
7 Things You Need to Know for Your Cloud-First Strategy
7 Things You Need to Know for Your Cloud-First Strategy7 Things You Need to Know for Your Cloud-First Strategy
7 Things You Need to Know for Your Cloud-First StrategyFlexera
 
The Role of In-House & External Counsel in Managing Open Source Software
The Role of In-House & External Counsel in Managing Open Source SoftwareThe Role of In-House & External Counsel in Managing Open Source Software
The Role of In-House & External Counsel in Managing Open Source SoftwareFlexera
 
Addressing Open Source Risks During M&A: A Legal View
Addressing Open Source Risks During M&A: A Legal ViewAddressing Open Source Risks During M&A: A Legal View
Addressing Open Source Risks During M&A: A Legal ViewFlexera
 
Having Trouble Managing All Your Cloud Services? We Know!
Having Trouble Managing All Your Cloud Services? We Know!Having Trouble Managing All Your Cloud Services? We Know!
Having Trouble Managing All Your Cloud Services? We Know!Flexera
 
Webinar: Maximizing the ROI of IT by Simplifying Technology Complexity
Webinar: Maximizing the ROI of IT by Simplifying Technology ComplexityWebinar: Maximizing the ROI of IT by Simplifying Technology Complexity
Webinar: Maximizing the ROI of IT by Simplifying Technology ComplexityFlexera
 
Webinar: What's New In FlexNet Manager Suite 2018 R1
Webinar: What's New In FlexNet Manager Suite 2018 R1Webinar: What's New In FlexNet Manager Suite 2018 R1
Webinar: What's New In FlexNet Manager Suite 2018 R1Flexera
 
Open Source Security - It can be done easily.
Open Source Security - It can be done easily.Open Source Security - It can be done easily.
Open Source Security - It can be done easily.Flexera
 
Software Distribution, Customer Experience and the IoT: Get Ready for Fast, S...
Software Distribution, Customer Experience and the IoT: Get Ready for Fast, S...Software Distribution, Customer Experience and the IoT: Get Ready for Fast, S...
Software Distribution, Customer Experience and the IoT: Get Ready for Fast, S...Flexera
 
Windows 10 webinar: What’s new for IT pros Windows 10 v 1709
Windows 10 webinar: What’s new for IT pros Windows 10 v 1709Windows 10 webinar: What’s new for IT pros Windows 10 v 1709
Windows 10 webinar: What’s new for IT pros Windows 10 v 1709Flexera
 
Don’t Let Hackers Breach Your Data: Shutting Your Risk Window on Apache Struts2
Don’t Let Hackers Breach Your Data:  Shutting Your Risk Window on Apache Struts2Don’t Let Hackers Breach Your Data:  Shutting Your Risk Window on Apache Struts2
Don’t Let Hackers Breach Your Data: Shutting Your Risk Window on Apache Struts2Flexera
 
BDNA joins Flexera
BDNA joins FlexeraBDNA joins Flexera
BDNA joins FlexeraFlexera
 
Flexera Event - The Game Has Changed - Are You Ready?
Flexera Event - The Game Has Changed - Are You Ready?Flexera Event - The Game Has Changed - Are You Ready?
Flexera Event - The Game Has Changed - Are You Ready?Flexera
 
Webinar: Take Proactive Control of Your SAP Licensing, Indirect Usage and Ven...
Webinar: Take Proactive Control of Your SAP Licensing, Indirect Usage and Ven...Webinar: Take Proactive Control of Your SAP Licensing, Indirect Usage and Ven...
Webinar: Take Proactive Control of Your SAP Licensing, Indirect Usage and Ven...Flexera
 
Keeping a Lid on Costs for Cloud Infrastructure and SaaS Applications
Keeping a Lid on Costs for Cloud Infrastructure and SaaS ApplicationsKeeping a Lid on Costs for Cloud Infrastructure and SaaS Applications
Keeping a Lid on Costs for Cloud Infrastructure and SaaS ApplicationsFlexera
 
Do You Manage Software? Understanding Your Role in Cybersecurity Defense
Do You Manage Software? Understanding Your Role in Cybersecurity DefenseDo You Manage Software? Understanding Your Role in Cybersecurity Defense
Do You Manage Software? Understanding Your Role in Cybersecurity DefenseFlexera
 

Plus de Flexera (20)

Get a Complete View of Your Business Services and IT Estate in ServiceNow wit...
Get a Complete View of Your Business Services and IT Estate in ServiceNow wit...Get a Complete View of Your Business Services and IT Estate in ServiceNow wit...
Get a Complete View of Your Business Services and IT Estate in ServiceNow wit...
 
Make Smarter Cloud Decisions at Every Step of Your Journey
Make Smarter Cloud Decisions at Every Step of Your JourneyMake Smarter Cloud Decisions at Every Step of Your Journey
Make Smarter Cloud Decisions at Every Step of Your Journey
 
10 Tips to Optimize, Automate, and Govern your Hybrid IT Environment
10 Tips to Optimize, Automate, and Govern your Hybrid IT Environment10 Tips to Optimize, Automate, and Govern your Hybrid IT Environment
10 Tips to Optimize, Automate, and Govern your Hybrid IT Environment
 
Using Automated Policies for SaaS Governance and Compliance
Using Automated Policies for SaaS Governance and ComplianceUsing Automated Policies for SaaS Governance and Compliance
Using Automated Policies for SaaS Governance and Compliance
 
The Practical Approach for End-to-End SaaS Management
The Practical Approach for End-to-End SaaS ManagementThe Practical Approach for End-to-End SaaS Management
The Practical Approach for End-to-End SaaS Management
 
7 Things You Need to Know for Your Cloud-First Strategy
7 Things You Need to Know for Your Cloud-First Strategy7 Things You Need to Know for Your Cloud-First Strategy
7 Things You Need to Know for Your Cloud-First Strategy
 
The Role of In-House & External Counsel in Managing Open Source Software
The Role of In-House & External Counsel in Managing Open Source SoftwareThe Role of In-House & External Counsel in Managing Open Source Software
The Role of In-House & External Counsel in Managing Open Source Software
 
Addressing Open Source Risks During M&A: A Legal View
Addressing Open Source Risks During M&A: A Legal ViewAddressing Open Source Risks During M&A: A Legal View
Addressing Open Source Risks During M&A: A Legal View
 
Having Trouble Managing All Your Cloud Services? We Know!
Having Trouble Managing All Your Cloud Services? We Know!Having Trouble Managing All Your Cloud Services? We Know!
Having Trouble Managing All Your Cloud Services? We Know!
 
Webinar: Maximizing the ROI of IT by Simplifying Technology Complexity
Webinar: Maximizing the ROI of IT by Simplifying Technology ComplexityWebinar: Maximizing the ROI of IT by Simplifying Technology Complexity
Webinar: Maximizing the ROI of IT by Simplifying Technology Complexity
 
Webinar: What's New In FlexNet Manager Suite 2018 R1
Webinar: What's New In FlexNet Manager Suite 2018 R1Webinar: What's New In FlexNet Manager Suite 2018 R1
Webinar: What's New In FlexNet Manager Suite 2018 R1
 
Open Source Security - It can be done easily.
Open Source Security - It can be done easily.Open Source Security - It can be done easily.
Open Source Security - It can be done easily.
 
Software Distribution, Customer Experience and the IoT: Get Ready for Fast, S...
Software Distribution, Customer Experience and the IoT: Get Ready for Fast, S...Software Distribution, Customer Experience and the IoT: Get Ready for Fast, S...
Software Distribution, Customer Experience and the IoT: Get Ready for Fast, S...
 
Windows 10 webinar: What’s new for IT pros Windows 10 v 1709
Windows 10 webinar: What’s new for IT pros Windows 10 v 1709Windows 10 webinar: What’s new for IT pros Windows 10 v 1709
Windows 10 webinar: What’s new for IT pros Windows 10 v 1709
 
Don’t Let Hackers Breach Your Data: Shutting Your Risk Window on Apache Struts2
Don’t Let Hackers Breach Your Data:  Shutting Your Risk Window on Apache Struts2Don’t Let Hackers Breach Your Data:  Shutting Your Risk Window on Apache Struts2
Don’t Let Hackers Breach Your Data: Shutting Your Risk Window on Apache Struts2
 
BDNA joins Flexera
BDNA joins FlexeraBDNA joins Flexera
BDNA joins Flexera
 
Flexera Event - The Game Has Changed - Are You Ready?
Flexera Event - The Game Has Changed - Are You Ready?Flexera Event - The Game Has Changed - Are You Ready?
Flexera Event - The Game Has Changed - Are You Ready?
 
Webinar: Take Proactive Control of Your SAP Licensing, Indirect Usage and Ven...
Webinar: Take Proactive Control of Your SAP Licensing, Indirect Usage and Ven...Webinar: Take Proactive Control of Your SAP Licensing, Indirect Usage and Ven...
Webinar: Take Proactive Control of Your SAP Licensing, Indirect Usage and Ven...
 
Keeping a Lid on Costs for Cloud Infrastructure and SaaS Applications
Keeping a Lid on Costs for Cloud Infrastructure and SaaS ApplicationsKeeping a Lid on Costs for Cloud Infrastructure and SaaS Applications
Keeping a Lid on Costs for Cloud Infrastructure and SaaS Applications
 
Do You Manage Software? Understanding Your Role in Cybersecurity Defense
Do You Manage Software? Understanding Your Role in Cybersecurity DefenseDo You Manage Software? Understanding Your Role in Cybersecurity Defense
Do You Manage Software? Understanding Your Role in Cybersecurity Defense
 

Dernier

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 

Dernier (20)

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 

Building Console and Silent Installers

  • 1. W H I T E PA P E R Building Console and Silent Installers by Robert Dickau Principal Technical Training Writer, Flexera Software
  • 2. Building Console and Silent Installers Introduction parameters, or read configuration information from a simple In a contemporary environment, an end user is likely to find response file. a number of heterogeneous systems. They will be installing and uninstalling with different platforms, different operating These modes provide enormous flexibility in your environments, and different interaction environments. installation, enabling you to give end users a choice of InstallAnywhere helps you meet the needs of these end installation mode that best meets their needs. users by presenting installer options that can run in any number of environments. Console-mode installers enable your end users a non- graphical user interface structured to enable interaction Beyond the basic installer wizard, graphical user tools, through text only. Console mode is intended to add support and variable-based rules, InstallAnywhere offers additional for non-graphical environments such as those common on options for you to use when building an installer. This white so called “headless” Unix systems. Console mode mimics paper describes additional installation-related concepts, the default GUI steps provided by InstallAnywhere, and including: uses standard input and output. The biggest advantage to console mode is that Unix developers no longer need X • Console-mode, for command-line-driven installations Windows (X11) to run their installers. • Silent installations, for working with limited or no user interaction To enable console mode for your project, you must select the Console check box in the Installer UI > Look & Feel task. Learn More about InstallAnywhere If you wish to learn more about the capabilities of InstallAnywhere and download a free evaluation, please visit the Flexera Software Web site at www.flexerasoftware.com/installanywhere Additionally, to enable console mode for a Windows installer, choose the Console Launcher option for the Console Installers Install Launcher Type in the task Project > Platforms > In enterprise-level environments, it is not uncommon for end Windows, pictured in the following figure. Starting with users to install applications to servers and other remote InstallAnywhere 2009, you can set the default UI mode of systems. In these cases, a rich graphical user interface the uninstaller independently of the installer. (GUI) such as that provided by InstallAnywhere’s standard installer modes is not always desirable. You may find that your end users will a need command-line interface mode installer, or even a silent installation that requires no end- user interaction. InstallAnywhere Enterprise Edition supports both console- mode and silent-mode installations. Console mode provides your end user with a text-only interface, similar to that To run an installer in console mode, the user runs the found in ANSI terminal applications. Silent mode provides installer with the -i console argument, as in the following: an automated non-interactive installation mode, which can either run entirely using the default settings you defined install -i console in the project, use intelligent logic to determine installation Note: If console mode has not been enabled for your project, 2 Flexera Software: InstallAnywhere White Paper Series
  • 3. Building Console and Silent Installers the installer displays an error message that begins, “Installer As with graphical panels, the customizer for a console User Interface Not Supported”. action enables you to modify the text and behavior of the action in console mode. The default text of a console action InstallAnywhere does not automatically provide console is generally similar to the text used by the graphical panel, alternatives for panels you have added to your installer. though slightly reworded to reflect the text-only mode. For You must provide consoles for each panel that you want example, where panel text might refer to Previous and Next displayed during console mode. In general, InstallAnywhere buttons, the console action mentions typing “back” to return console actions provide parity with panels provided in the to a previous step. graphical mode. At run time, the console actions display the text you For example, the Pre-Install task normally includes graphical specified in the respective customizers. For example, the panels such as Introduction, Choose Install Folder, and console version of the Introduction panel appears as follows: Pre-Install Summary. Introduction --------------------- InstallAnywhere will guide you through the installation of SampleApp. It is strongly recommended that you quit all programs before continuing with this installation. Respond to each prompt to proceed to the next step in the To add console equivalents to these graphical panels, installation. If you want to change something on a previous begin by clicking the Add Action button and selecting the step, type ‘back’. Consoles tab. You may cancel this installation at any time by typing ‘quit’. PRESS <ENTER> TO CONTINUE: Similarly, the console version of the Choose Link Location panel appears similar to the following: Choose Link Location --------------------- Where would you like to create links? -> 1- Default: C:Documents and SettingsUserStart MenuProgramsSampleApp 2- In your home folder 3- Choose another location... 4- Don’t create links ENTER THE NUMBER OF AN OPTION ABOVE, OR PRESS <ENTER> TO ACCEPT THE DEFAULT: You then select the desired consoles and click Add, which Console-mode enables text to be output to the console places the console actions in the Pre-Install task. It is line-by-line. It does not support formatted text, clearing the not necessary to insert the console actions next to their screen, or positioning the cursor. graphical panel equivalents, but doing so can help with the overall organization. Another approach is to group the Tip: Running the installer in console mode sets the panels and console actions separately. InstallAnywhere variable INSTALLER_UI to the value “CONSOLE”. If necessary, you can test the value of INSTALLER_UI to determine whether any action should run. Silent Installers Silent mode, which enables an installer to run without any user interaction, is fully supported on all Unix platforms. (A near-silent mode, displaying only progress information, is available on Windows and Mac OS X.) As with console mode, you must enable silent mode for your project in the Look & Feel subtask. Flexera Software: InstallAnywhere White Paper Series 3
  • 4. Building Console and Silent Installers To perform a silent installation from the command line, a file. This negates the need for using the additional -i switch user runs the following command: to the installer executable. install -i silent Configuring Variables Used in Response Files In some cases it is undesirable to store property values in a This command runs the silent installer with all of the project’s response file generated with the -r switch. In the Project > default settings. As with console mode, the user will see an Info task, you can configure variables to encrypt or exclude error message if the project does not support silent mode. from a response file. Using a Response File For example, suppose you have a simple User Input panel To override the default settings in a silent installation, a user that asks the user to provide a sensitive passphrase. can point to a response file. A response file contains the values of InstallAnywhere variables to use during a silent installation. To generate a response file, a user runs the installer with the -r switch. You can also use the setting Always Generate Response File in the Project > Info subtask. When the installer runs, it records end-user choices in a file called installer. properties, stored in the same directory as the installer. Sample contents of a response file are the following. # Fri Oct 31 25:00:00 CST 2008 # Replay feature output #--------------------- # This file was built by the Replay feature of InstallAnywhere. # It contains variables that were set by Panels, Consoles or In the InstallAnywhere project, the panel is configured to Custom Code. store the user input in InstallAnywhere variables with the #Choose Install Folder base name $SECRET_PASSPHRASE$, which means the #--------------------- variables SECRET_PASSPHRASE and SECRET_PASSPHRASE_1 USER_INSTALL_DIR=C:Program FilesSampleApp3000 both expose the sensitive data. #Choose Shortcut Folder #--------------------- USER_SHORTCUTS=C:Documents and SettingsAll UsersStart MenuProgramsSampleApp3000 Apart from comments (lines that begin with the hash sign #), the response file contains entries of the form: To prevent the value from being included in the response PROPERTY_NAME=Value file, begin by clicking the Configure button in the Project > Info task, which displays the Configure Variables dialog A user can manually create a response file or modify box. Click Add to add the names of variables to encrypt property values inside a recorded response file as or exclude from the response file, along with the desired appropriate. behavior (whether to exclude the entire variable entry from the response file, exclude only the value, or encrypt the When a user deploys an installation, the installer executable variable’s value). looks for a file called installer.properties or installername. properties, and if such a file is present reads the property names and values and uses the specified property values during the installation. To specify a different file name or location, the user can specify the desired response file with the -f switch, as in: ./install.bin -i silent -f /usr/tmp/SampleResponseFile. properties The response file can specify the user-interface mode by setting INSTALLER_UI=SILENT (for example) in the response 4 Flexera Software: InstallAnywhere White Paper Series
  • 5. Building Console and Silent Installers If you select Exclude Value Only, a user who generates a response file by running install -r receives the following entries for the corresponding panel: #Secret Passphrase #--------------------- SECRET_PASSPHRASE= SECRET_PASSPHRASE_1= Summary This white paper discussed additional installation-related concepts such as console-mode and, silent installations. It also highlighted how InstallAnywhere helps developers execute best practices for these advanced concepts. Begin a Free Evaluation of InstallAnywhere You can download a free trial version of InstallAnywhere from the Flexera Software Web site at: www.flexerasoftware.com/installanywhere/eval. Learn More Best Practices for Building Quality Installations Join an InstallAnywhere training class – visit www.flexerasoftware.com/training for available classes. Also, if you have a critical installation project but are short on developer bandwidth or expertise, Flexera Software’s Professional Services team can help. Learn more at: www.flexerasoftware.com/services/consulting/ software-installations.htm Flexera Software: InstallAnywhere White Paper Series 5
  • 6. Flexera Software LLC Schaumburg United Kingdom (Europe, Japan (Asia, For more office locations visit: 1000 East Woodfield Road, (Global Headquarters): Middle East Headquarters): Pacific Headquarters): www.flexerasoftware.com Suite 400 +1 800-809-5659 +44 870-871-1111 +81 3-4360-8291 Schaumburg, IL 60173 USA +44 870-873-6300 Copyright © 2011 Flexera Software LLC. All other brand and product names mentioned herein may be the trademarks and registered trademarks of their respective owners. IA_WP_Console_Oct11