SMS: Installation Scripts for "Run Command on Workstation"Last reviewed: October 30, 1997Article ID: Q156271 |
The information in this article applies to:
SUMMARYAn installation script is required for "Run Command on Workstation" packages, if the executable file specified in the Package Command Line terminates after calling a second executable file that relies on accessing the package share location to continue. Many applications run a setup program, and the original executable (such as Setup.exe) does not keep running throughout the duration of setup. When creating a "Run Command on Workstation" package, the executable file to run is specified. When the workstation receives that package, and the Package Command Manager (PCM) goes to run it, PCM does a NET USE to the package share location. As soon as the original executable file is finished running, PCM deletes the share. If the executable file spawned another executable file before it closed, the second application will fail if it relies on the source share. The error messages that may result from this problem vary from application to application. PCM will report in the Pcmwin.log file that the package ran successfully. There may or may not be error messages when the installation fails, depending on the setup application. The following are examples of common error messages or problems that may be encountered:
WORKAROUNDTo work around this problem, do one of the following:
MORE INFORMATIONMSTest is not the only option for writing an installation script for "Run Command on Workstation" packages. There are other options, such as using InstallShield or WINInstall, Visual Basic, C, or even Visual Test (for client computers running Windows NT only). NOTE: If the entire setup program runs from a single executable file (many programs do), it is not necessary to write an installation script at all. The following are some third-party applications that can be used to write an installation script:
For more information on this subject, see the following articles in the Microsoft Knowledge Base:
ARTICLE-ID: Q130373 TITLE : Obtaining Package ID From Within an Microsoft Test Script ATRICLE-ID: Q151735 TITLE : Visual Test 4.0 Not Supported with Windows 95 PCM ARTICLE-ID: Q153227 TITLE : PCM Requires Reboot After Executing Package ARTICLE-ID: Q128612 TITLE : SMS: Visual Basic Application Setup Fails When Executed by PCMAdditional Reference Words: prodsms WIN Install Shield Keywords : smsappscripts smspcm kb3rdparty kbnetwork Version : 1.0 1.1 1.2 Platform : WINDOWS |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |