Microsoft KB Archive/196236

= FIX: Error Generating Cab Files Error Code 3 =

Article ID: 196236

Article Last Modified on 3/7/2005

-

APPLIES TO


 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q196236



SYMPTOMS
If the Project Manager is open or if the source directory and the disk images directory are pointed to the same location, the following error message appears when the Setup Wizard is generating the cab files for distribution:

Error generating cab files: Error code 3



RESOLUTION
Try one of the following to resolve this problem:
 * Close down the Project Manager before you run the Setup Wizard.
 * Do not point the disk images directory (step 3 of the Setup Wizard) to the same folder that you chose in step 1 of Setup Wizard.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

This bug was corrected in Visual Studio 6.0 Service Pack 3. For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:

194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why

194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed



Steps to Reproduce Behavior
Method 1:  Create a directory in your local hard drive, such as, C:\Test.  Create a .prg file and put the following program in the .prg file: LOCAL ln_OpenMainPrg, la_Version[1]

*- Create a "Main.prg" programmatically. IF FILE("Main.prg") ln_OpenMainPrg = FOPEN("Main.prg", 12) ELSE ln_OpenMainPrg = FCREATE("Main.prg") ENDIF

IF ln_OpenMainPrg < 0 && Check for error WAIT WINDOW NOWAIT "Cannot open or create output file" ELSE && If no error, write to file =FWRITE(ln_OpenMainPrg, "? 'Hello, World!'") ENDIF =FCLOSE(ln_OpenMainPrg) && Close file

*- Create project and build the .exe programmatically. CREATE PROJECT Test NOWAIT NOSHOW MODIFY PROJECT Test NOWAIT Application.ActiveProject.Files.Add("Main.prg") BUILD EXE Test FROM Test  Save and run the .prg file. While the Project Manager is still open, start the Setup Wizard. Go through all the steps, and click Finish.

RESULT: About three-quarters of the way through the building process, the "Error generating CAB file(s), Error code: 3" error message appears.</ol>

Method 2:
 * 1) Run the Setup Wizard and have the disk images directory (chosen in step 3) point to the folder that you chose in step 1, Locate Files.
 * 2) After the Setup Wizard finishes, start the Setup Wizard a second time, complete all the steps and click Finish.

RESULT: The error occurs sometime during the compression process.

Keywords: kbbug kbfix kbappsetup kbwizard kbvs600sp3fix KB196236

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.