NEC manual 18Express5800/320Fc Active Upgrade User’s Guide

Page 68

Configuring Custom Actions

Executing Visual Basic Scripts and Other Types of Executable Files

By default, the File field on the Custom Actions page accepts only batch files (.bat), application files (.exe), and Visual Basic scripts (.vbs). However, if necessary, you might be able to run another type of executable file (such as a Perl script) by implementing the command-line script host for the file.

You can also optionally run the command-line script host for Visual Basic scripts (cscript.exe) if you need to enable options that are available only in that environment.

For example, to run your Visual Basic script in a command-line script host, do the following when performing the procedure in “Configuring Custom Actions” on page 3-12:

Next to File, type the full path and file name of the command-line script host: %SystemRoot%\system32\cscript.exe

(%SystemRoot% is an environment variable that automatically inserts your system root directory, typically C:\WINNT.)

Next to Arguments, type the full path name and file name of your executable file. For example:

C:\bin\myvbscript.vbs

If applicable, you can type additional arguments that are specific to your script file or options that are specific to the session. For example, for a cscript session, you might want to specify the //T option to control the maximum amount of time your program is allowed to run:

C:\bin\myvbscript.vbs //T:30

The preceding example would terminate the program and cscript session after 30 seconds. Setting this type of time limit is a useful way of ensuring that your executable file cannot delay the upgrade process.

For more information about the cscript command, open a Command Prompt session and enter cscript /?.

Related Topics

“Programming Notes for Custom Actions” on page 3-15

“Configuring Custom Actions” on page 3-12

3-18Express5800/320Fc: Active Upgrade™ User’s Guide

Image 68 Contents
Express5800/320Fc Active Upgrade User’s Guide Manual Name Express5800/320Fc Active Upgrade User’s Guide Contents Performing the Upgrade TroubleshootingGlossary IndexFigures Tables Tables Vi Express5800/320Fc Active Upgrade User’s Guide Notation Conventions Purpose of This ManualAudience Call the RegisterDeviceNotification function R N I N G U T I O NTypographical Conventions Getting Help Http//support.microsoft.comPreface Express5800/320Fc Active Upgrade User’s Guide Features Chapter OverviewOverview of the Active Upgrade Process Related TopicsDuplexed System Mirror4Express5800/320Fc Active Upgrade User’s Guide Merged System Aborting the Active Upgrade Process Committing the UpgradeAborting the Upgrade Active Upgrade State Model Active Upgrade State ModelT E Page Chapter Preparing for the Active Upgrade Process Software Upgrade SupportSystem Prerequisites U T I O N 4Express5800/320Fc Active Upgrade User’s Guide Recommendations Managing Critical Applications During the Upgrade Process Pre-Upgrade Tasks 8Express5800/320Fc Active Upgrade User’s Guide Open My Computer Installing the Active Upgrade SoftwareTo install the Active Upgrade console Configuring Windows Firewall for the Active Upgrade Process To configure Windows FirewallWindows Firewall Exceptions To set the enclosure with A-side power as primary Changing VTM IP address Installing Java Runtime EnvironmentConfiguring IP address in Virtual Technician Module VTM Configuring the network for Remote Desktop Connection d,e Configuring the VTM IP addressConfiguring the network for Remote KVM Connection b,c Gathering Information Active Upgrade Process Worksheet Value Custom actions to run Log files to back up To configure Automatic Updates Copying Software Installation Packages to the SystemConfiguring Windows Automatic Updates Automatic Updates Control Panel To verify the list of updates Automatic Updates Icon in System TrayStarting and Exiting the Active Upgrade Console Understanding the Active Upgrade Console Interface Title BarNavigation Bar Configuration Navigation BarNavigation Bar Active Upgrade Navigation Bar Links Main Window Configuring the Active Upgrade Process Main WindowStatus Bar Main Window Activity Log10. Status Bar Chapter Configuring the Active Upgrade Process Creating and Managing Configuration FilesCreating a Configuration File Loading a Configuration File Editing an Existing Configuration File Performing an Upgrade with No Configuration FileTo save the current configuration file Selecting Disks to UpgradeSaving a Configuration File Hard Disk Color Coding Description Selecting Other Configurations to Include To select system and data disksTo call a child configuration file into the current file Selecting Application Services to Control Selecting Event Log Files to Back Up To preserve event log files Configuring Custom Actions To configure a custom action Control Types for Custom Actions Purpose Backup Timing for the Advanced Control Type PurposeProgramming Notes for Custom Actions Starting and Stopping ApplicationsUsing Active Upgrade Environment Variables Environment Variables for Custom Actions DescriptionViewing Standard Output and Error Stream Generating Exit Values18Express5800/320Fc Active Upgrade User’s Guide Providing a Description for a Configuration File Displaying the Upgrade SummaryDisplaying the Upgrade Summary Click Retry on the Active Upgrade Performing a Readiness CheckActivity Log Entries Icon Text Color Severity Description Splitting the System Click Split on the Active Upgrade To split the systemManaging Upgrade Tasks on the Upgrade Side Connecting to the Desktop on the Upgrade Side Remote KVMConnecting to the Upgrade Side with Remote KVM To initiate a Remote KVM session with the Upgrade SideTo terminate a Remote KVM session with the Upgrade Side Connecting to the Upgrade Side with Remote DesktopTo terminate a Remote Desktop Connection to the Upgrade Side Running Software Installation Programs Windows Automatic UpdatesTo apply the downloaded updates Select Custom Install and click NextOther Installation Packages Restarting the Upgrade SideTo manually restart the Upgrade Side Managing Your Applications on the Production Side Verifying the Upgrade Side Before Merging the System Merging the SystemTo merge the system Verifying the Upgrade Side Before Committing the Upgrade Committing the Upgrade Aborting the Upgrade Finishing the Upgrade Viewing Active Upgrade Process Status Activity LogActivity Log in Active Upgrade Console Activity Log Entries Icon Text Color Severity Description Activity Log Detail Status Bar Status Hardware State DescriptionStatus Upgrade State Description Status Operational State DescriptionStatus Partner State Partner State DescriptionPage Saving the Activity Log to a File To save the activity log to a fileVerifying the Status of Application Services To verify the status of a serviceVerifying the Status of Installed Software Service Control ManagerAdd or Remove Programs Control Panel Verifying If RDR Disks Are Resynchronizing General Problems and Solutions Troubleshooting Readiness Check Error ActionTroubleshooting Readiness Check Troubleshooting Custom Actions Error Troubleshooting Miscellaneous Problems Error/Problem ActionTroubleshooting Miscellaneous Problems Getting Help Active Upgrade technology Application serviceChild configuration Commit upgradeConfiguration file Duplex mode duplexedCritical system resource Custom actionFault-tolerant mode High priority update hotfixInstallation program EnclosureNesting nested configuration files Parent configurationMerge system Persistent data fileService Simplex mode simplexedSplit mode SessionUpgrade Side VolumeIndexIndex Index Index Index-4Express5800/320Fc Active Upgrade User’s Guide Index Index Index-6Express5800/320Fc Active Upgrade User’s Guide