PRB: WinExec Error 0002h When Running SetupWiz Setup ProgramLast reviewed: May 9, 1997Article ID: Q149266 |
The information in this article applies to:
SYMPTOMSAfter the initial Copying Initialization Files dialog box is displayed by a Setup Wizard-generated setup program, an error is raised stating:
Cannot start main setup program (winexec). Error code 0002HThe setup is not successful and fails after this dialog box.
MORE INFORMATIONThe corresponding error message for error code 0002H from WinExec is "File not found." This error can be raised any time that one or more of the files that the Setup1.exe program requires to begin operation are missing. This can occur if one or more files are removed during step 7 of the Setup Wizard. In addition, if the Swdepend.ini file that is used by the Setup Wizard to determine what files are needed is missing any entries, then the distribution media may not contain all necessary files. The Setup Wizard checks for the existence of the Swdepend.ini file when it starts. If the file does not exist it will be created by the Setup Wizard from template file \vb\setupkit\kitfiles\Sw16tmpl.ini for 16 bit and \vb\setupkit\kitfil32\Sw32tmpl.ini for 32 bit. The 16-bit Setup Wizard adds entries to Swdepend.ini based on Sw16tmpl.ini, and the 32-bit version does likewise using Sw32tmpl.ini. If either of the template files have been corrupted or were installed incorrectly during the installation of Visual Basic 4.0, then the Swdepend.ini file may be missing important entries. The approximate sizes for correctly installed template files are listed here:
Edition of Visual Basic 4.0 SW16TMPL.INI SW32TMPL.INI --------------------------- ------------ ------------ Standard NA 4.0K Professional 2.7K 4.0K Enterprise 3.5K 5.0KIf the Sw16tmpl.ini or Sw32tmpl.ini is smaller than this size, it may be corrupted or may not have been installed correctly. To resolve this problem, follow these steps:
|
Keywords : TlsSetWiz vb416 vb4win kbprb
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |