Microsoft KB Archive/190814

= How To Display a ReadMe File at the End of a Custom Setup =

Article ID: 190814

Article Last Modified on 7/1/2004

-

APPLIES TO


 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q190814



SUMMARY
This article demonstrates how to modify the Setup Toolkit project (Setup1.vbp) to display a text file, such as a ReadMe.Txt, at the end of an application's setup.

NOTE: Microsoft Technical Support does not support the modification of the setup process or any of the setup files. Support is provided for the Package and Deployment Wizard on an "as is" basis only.



MORE INFORMATION
Follow these steps to modify the Setup Toolkit project to display a text file at the end of Setup:

Step-by-Step Example
NOTE: This example assumes that NotePad is already installed on the end user's computer, and it is located in the same folder as Windows.

 Create a text file named ReadMe.txt. Make a backup copy of the VB98\Wizards\PDWizard\Setup1 folder. Open VB98\Wizards\PDWizard\Setup1\Setup1.vbp. Open the basSetup1 module, and go to the ExitSetup Sub procedure.  At the beginning of Sub ExitSetup, add the following statement: Dim vRetVal As Variant

  Locate the following statement in Sub ExitSetup: If IsWindowsNT4WithoutSP2 Then

ABOVE this statement, add the following statement: vRetVal = Shell(gstrWinDir & "NotePad.exe " & gstrDestDir & _        "ReadMe.txt", 1)

 Save the project, and make Setup1.exe.

NOTE: Save Setup1.exe in the VB98\Wizards\PDWizard folder. When you save setup1.exe in this folder, you will be bounced back to VB98\Wizards\PDWizard\Setup1 unless you click the original setup1.exe in that folder to overwrite it explicitly</li> Use the Package and Deployment Wizard to create a Standard Setup Package for a simple project, such as Calc.vbp. In the Included Files screen, add the ReadMe.txt file you created earlier.</li> Run Setup.exe from the file distribution set you created in step 8. If the application's Setup completes successfully, NotePad displays the ReadMe.txt file at the end of Setup.</li> Restore the original Setup Toolkit files before using the Package and Deployment Wizard to distribute applications that do not have a ReadMe file.</li></ol>

<div class="references_section">