SlideShare uma empresa Scribd logo
1 de 6
Baixar para ler offline
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

Mais conteúdo relacionado

Destaque

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
 

Destaque (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
 

Mais 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
 

Mais 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
 

Último

Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 

Último (20)

Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 

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