locked
CE CAB Wizard error - CAB file could not be created RRS feed

  • Question

  • I have been running a project with Visual Studio 2008 with no problems.  Recently, I updated Visual Studio 2008 to SP 1 and installed all of the latest Hotfixes/Updates. 

    Now when, I Build the Solution, I get the error "The Windows CE CAB Wizard encountered an error.  See the output window for more information."  The output file states:
    Error: CAB file <CAB File Release Path> could not be created.

    The .CAB file is not read only.  The path does not include any extra spaces or doesn't appear to be too long.

    Why can I know longer create a .CAB file??!!

    • Moved by Alan_chen Wednesday, December 22, 2010 6:52 AM (From:Visual C# General)
    Friday, December 17, 2010 10:22 PM

Answers

  • Using info provided by Jesse Jiang [MSFT] directing us to :

    Error: cab file could not be created - No, not again! Nice workaround/solution

    I did some digging and found at some point the 8.3 was disabled on this PC.

    Disclaimer:
    Read http://support.microsoft.com/kb/256986
    This article includes information about how to back up the registry.

    Backup your PC.
    ===
    Since you could seriously break something by not understanding me, atempt the following at your own risk.

    Solution for this instance:

    Verify:
    HKLM\SYSTEM\CurrentControlSet\Control\FileSystem
    REG_DWORD: NtfsDisable8dot3NameCreation = 0
    http://technet.microsoft.com/en-us/library/cc959352.aspx

    Execute your Build,
    At this point the error is happening.

    Find out what your TEMP file location is.

    CMD prompt “set t “, will display TEMP Variable
    Or
    System properties -> Advanced Tab -> Environment Variables -> User Variables -> TEMP

    Open your TEMP folder in Windows Explorer

    Display the folder in detail view

    Sort by date

    Locate the most recent “ wiz.xxx.inf “ (this is the cabwiz.ddf) file and open it in notepad.

    Examine the file paths, if any of the paths have a space in them they need to be corrected.

    Example:
    .Set InfFileName=C:\DOCUME~1\User.Name\Local Settings\Temp\wiz1C8.tmp

    one line was:

    Above "Local Settings" indicates User Profile was created while 8.3 names were disabled.

    Corrected by changing “System properties -> Advanced Tab -> Environment Variables -> User Variables -> TEMP” to C:\TEMP

    Example2:

    C:\PROGRA~1\Intermec\Developer Library\Dot Net Assemblies\CF 2.0\Intermec.DeviceManagement.SmartSystem.ITCSSApi.dll Intermec.020

    Indicates:

    Intermec Developer Library was installed with 8.3 name creation off,
    i.e. NtfsDisable8dot3NameCreation = 1

    Corrected by:

    Insuring “NtfsDisable8dot3NameCreation = 0” then closing VS project.

    Open windows explorer.

    Navigate to C:\Program Files

    Copy “Intermec” folder to same location i.e. “Copy of Intermec”

    Delete “Intermec” folder.

    Rename folder “Copy of Intermec” to “Intermec”

    (Other folders on this system did not have 8.3 names but the above two examples should provide adequate example.)

    Open project and create Cab

    Woo Hooo !

    Doh!

    ====

    If you are interested:

    In Windows Explorer -> Locate your Project “InstallDir” (unique to this project) you should find an AppName.inf

    InstallDir=%CE1%\%AppName%

    Open and examine AppName.inf this file This looks like a file created by Visual Studio to feed CabWiz.

    I am assuming CabWiz Then uses this to create the wizxxx.inf file with ddf syntax, in the users Temp folder and then passes the file path to makecab.exe 

     

    • Marked as answer by CWNETUSER Friday, January 14, 2011 5:15 PM
    Thursday, January 13, 2011 8:58 PM

All replies

  •  

    Hi CWNETUSER

     

    Welcome to the MSDN Forum, I'm Jesse come from MSDN support team.

     

    As your issue, did this happen on every project or only one project, so please try to rebuild it.

     

    If it do not work, please see this blog

     

    Error: cab file could not be created - No, not again! Nice workaround/solution

     

    I hope this information helps you solving this issue.

     

    Best regards,

    Jesse


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, December 23, 2010 7:24 AM
  • Hello,

    I was also facing this issue. Below is code i am using

    Try Dim info As New ProcessStartInfo("C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\SDKTools\cabwiz.exe")

    info.Arguments = "D:\vikas\test\RFGM1.4.0.13.inf" + " /compress"

    info.WorkingDirectory = "D:\vikas\test"

    info.UseShellExecute = False

     info.RedirectStandardOutput = True

     info.RedirectStandardError = True

     info.CreateNoWindow = True

     Dim process As New Process

     process.StartInfo() = info

    Dim res As Boolean res = process.Start()

    Dim standardOutput As StreamReader = process.StandardOutput

    Dim standardError As StreamReader = process.StandardError

     str = standardOutput.ReadToEnd

    str = standardError.ReadToEnd

     If (process.ExitCode <> 0) Then

    Return

     End If

    Catch exception5 As Exception

    Return

    End Try

     I am getting below error "Windows CE CAB Wizard Error: CAB file "D:\vikas\test\RFGM1.4.0.13.CAB" could not be created".

    Any help will be appriciated.

     Thanks, Vikas Bansal

    Thursday, December 23, 2010 8:50 AM
  •  

    Hi Vikas Bansal,

     

    As your describe how about cabwiz.exe work in Visual studio? You can try to use it in Visual Studio:

     File->New-Project->other Project Types->Set up and Deployment->Smart Device CAB Project.

    Did it meet error again?

     

    On other way you can create error log files to get the error message.

     

    cabwiz.exe  "c:\myfile.inf"  /err myfile.err  /cpu  MyARMDevice

    More information please check CAB Wizard.

     

    If I misunderstood you, please describe your question in more detail.

     

    Best regards,

    Jesse


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Jesse Jiang Thursday, December 30, 2010 6:12 AM
    • Unmarked as answer by CWNETUSER Friday, January 14, 2011 5:15 PM
    Monday, December 27, 2010 6:51 AM
  •  

    Hi,

     

    I'm very interested in hearing more about your issue, did you solve your problem?

    If so please share the solution with us and mark the right answers.

    If not please let me know and I will tray to help you find further solutions.

     

    Have a nice day!

    Jesse


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, December 29, 2010 9:31 AM
  • Using info provided by Jesse Jiang [MSFT] directing us to :

    Error: cab file could not be created - No, not again! Nice workaround/solution

    I did some digging and found at some point the 8.3 was disabled on this PC.

    Disclaimer:
    Read http://support.microsoft.com/kb/256986
    This article includes information about how to back up the registry.

    Backup your PC.
    ===
    Since you could seriously break something by not understanding me, atempt the following at your own risk.

    Solution for this instance:

    Verify:
    HKLM\SYSTEM\CurrentControlSet\Control\FileSystem
    REG_DWORD: NtfsDisable8dot3NameCreation = 0
    http://technet.microsoft.com/en-us/library/cc959352.aspx

    Execute your Build,
    At this point the error is happening.

    Find out what your TEMP file location is.

    CMD prompt “set t “, will display TEMP Variable
    Or
    System properties -> Advanced Tab -> Environment Variables -> User Variables -> TEMP

    Open your TEMP folder in Windows Explorer

    Display the folder in detail view

    Sort by date

    Locate the most recent “ wiz.xxx.inf “ (this is the cabwiz.ddf) file and open it in notepad.

    Examine the file paths, if any of the paths have a space in them they need to be corrected.

    Example:
    .Set InfFileName=C:\DOCUME~1\User.Name\Local Settings\Temp\wiz1C8.tmp

    one line was:

    Above "Local Settings" indicates User Profile was created while 8.3 names were disabled.

    Corrected by changing “System properties -> Advanced Tab -> Environment Variables -> User Variables -> TEMP” to C:\TEMP

    Example2:

    C:\PROGRA~1\Intermec\Developer Library\Dot Net Assemblies\CF 2.0\Intermec.DeviceManagement.SmartSystem.ITCSSApi.dll Intermec.020

    Indicates:

    Intermec Developer Library was installed with 8.3 name creation off,
    i.e. NtfsDisable8dot3NameCreation = 1

    Corrected by:

    Insuring “NtfsDisable8dot3NameCreation = 0” then closing VS project.

    Open windows explorer.

    Navigate to C:\Program Files

    Copy “Intermec” folder to same location i.e. “Copy of Intermec”

    Delete “Intermec” folder.

    Rename folder “Copy of Intermec” to “Intermec”

    (Other folders on this system did not have 8.3 names but the above two examples should provide adequate example.)

    Open project and create Cab

    Woo Hooo !

    Doh!

    ====

    If you are interested:

    In Windows Explorer -> Locate your Project “InstallDir” (unique to this project) you should find an AppName.inf

    InstallDir=%CE1%\%AppName%

    Open and examine AppName.inf this file This looks like a file created by Visual Studio to feed CabWiz.

    I am assuming CabWiz Then uses this to create the wizxxx.inf file with ddf syntax, in the users Temp folder and then passes the file path to makecab.exe 

     

    • Marked as answer by CWNETUSER Friday, January 14, 2011 5:15 PM
    Thursday, January 13, 2011 8:58 PM