XMetaL Tips and Tricks

XMetaL Community Forum XMetaL Tips and Tricks Info: Silently Installing XMetaL Author versions 2.0 – 5.0 SP1

  • Derek Read

    Info: Silently Installing XMetaL Author versions 2.0 – 5.0 SP1

    Participants 1
    Replies 0
    Last Activity 13 years, 11 months ago

    Product(s):
    XMetaL Author versions 2.0 – 5.0 SP1

    Note: The silent installation functionality was broken in the 5.1.1.017 release with no workarounds possible. Silent installation does work in versions prior to that release. The feature is being restored for the 5.5 release and because it is using an updated version of InstallShield the exact process described here will no longer apply.

    Description:
    The standard InstallShield installation methods for creating and running silent installations are used to silently install XMetaL Author.

    [u]Unpack the Web Installer[/u]
    If you obtained XMetaL Author on CD you can skip this section. If you obtained a single EXE file (sometimes referred to as the “web installer”) you will need to unpack it to obtain the “real” installer as follows.
       1. Run the installer's EXE.
       2. When prompted for a location to unpack the installer to specify a location you can easily locate and interact with at a command prompt. This location will be referred to as the INSTALLER-ROOT in the rest of the instructions in this article.
       3. The EXE will unpack the installer to the location you specified and the dialog should say “Extracting Files” (or something similar depending on your version) with a progress bar being displayed. You will know all files have been unpacked when the “real” installer has launched itself and is displaying a splash screen with the XMetaL logo and options similar to the following.
              * View Installation Guide
              * Install XMetaL Author
              * Exit
       4. Terminate this process once all files have been unpacked by selecting the Exit option.
       5. Confirm the location you specified in step 2 contains a number of folders and files, including a file called setup.exe and possibly a file called autorun.inf among others.

    [u]Create a setup.iss File[/u]
       1. Confirm that XMetaL Author is not currently installed on your machine. If it is, uninstall the product and remove any remaining files and folders. Following these steps when XMetaL Author is already installed will end up creating a silent uninstallation setup.iss file.
       2. Launch the XMetaL Author installer located in INSTALLER-ROOTXMetaL by typing the following command from a command prompt (DOS window): setup.exe -r. Note that there is an additional setup.exe file in INSTALLER-ROOT that simply launches a splash screen with the installation options, make sure you do not run that file.
       3. The installer will run as usual but will be recording the options you choose. Go through the entire installation process selecting all desired options and entering any information you are prompted for. The program will create a setup.iss file and write it to your windows directory (typically this is c:windows but it may differ depending on how your systems are configured).

    [u]Prepare the Installer for Silent Installation[/u]
       1. Confirm that all required 3rd party software is installed on your user's machines. This is typically only an issue when installing XMetaL Author versions older than 4.5 on computers running Windows versions prior to Windows 2000 and XP.
       2. Optionally, customize files inside the INSTALLER-ROOTXMetaLCustomizable folder as per the instructions contained in the XMetaL Developer Customization Guide and the file csetup.ini.
       3. Copy the entire XMetaL Author installation package (everything inside INSTALLER-ROOT) to storage that will be available to all of your users.
       4. Copy the file setup.iss to INSTALLER-ROOTXMetaL and confirm that the file is not read-only.

    [u]Running the Installer Silently[/u]
       1. Launch the XMetaL Author installer located in INSTALLER-ROOTXMetaL by typing the following command from a command prompt (DOS window): setup.exe -s. You may also automate this process using a batch file, script or anything else that is able to run a program and pass parameters to it. Please note that there is an additional setup.exe file in INSTALLER-ROOT that simply launches a splash screen with installation options, be sure you are not running this setup.exe file.
       2. If installation fails check the contents of setup.log (error codes are listed below).

    [u]Creating a Silent Uninstallation Script[/u]
    It is possible to silently uninstall the product. You may wish to do this if installing a newer version requires uninstalling an older version. To create an ISS file that records uninstallation steps first install the version of XMetaL Author you have previously deployed on your computers. Then run the same setup.exe a second time using the -r command line switch and select all necessary choices to uninstall the product. These settings will be recorded in a setup.iss file you can use to uninstall the same version from your other computers.

    [u]Error Codes (setup.log)[/u]
    0 Success
    -1 General error
    -2 Invalid mode
    -3 Required data not found in the “setup.iss” file
    -4 Not enough memory available
    -5 File does not exist
    -6 Cannot write to the response file
    -7 Unable to write to the log file
    -8 Invalid path to the InstallShield Silent response file
    -9 Not a valid list type (string or number)
    -10 Data type is invalid
    -11 Unknown error during setup
    -12 Dialog boxes are out of order
    -51 Cannot create the specified folder
    -52 Cannot access the specified file or folder
    -53 Invalid option selected

    External References:

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support