Results 1 to 10 of 10

Thread: Error 457 creating an installer

  1. #1
    New Member
    Join Date
    Mar 09
    Posts
    5

    Error 457 creating an installer

    Working on an old VB6 application, asked to create an installer. Read around, thought I understood, but I guess not.

    After getting the application from VSS, I'm able to run it on my development box just fine. Fire up the VS6.0 Package and Deployment Wizard, point it to my .vbp file, and hit the Package button.

    Runs through the options windows just fine. When I click 'Finish', I immediately get a message that "Unexpected error 457 has occurred: This key is already associated with an element of this collection."

    What key with what collection in what database? registry key? Some xml file?

    After clicking OK, the wizard claims to be writing a 'setup.lst' file, but after 10 minutes, I figure it's not working and kill it.

    Didn't find any help googling around, thought maybe a VB-specific forum might have some knowledge.

    New to installers, so I easily could have taken a wrong turn earlier in the process. I just took the defaults all the way through, though.

  2. #2
    Super Moderator RobDog888's Avatar
    Join Date
    Apr 01
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    59,467

    Re: Error 457 creating an installer

    Thread Moved

    Do you have VS SP-6 installed? What OS are you running on? Maybe different OS then what was originally packaged/developed on?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (VBA, VB 6, VB.NET, C#)
    Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Star Wars Gangsta Rap Reps & Rating PostsVS.NET on Vista (New)Multiple .NET Framework Versions (New)Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel Core 2 Extreme Ed., 2 WD Raptor 10K RPM 150 GB HDs RAID 1, 2 GBs DDR2 667 MHz RAM, 3 Viewsonic 17" LCDs, Windows Vista RTM, IE 7, Office 2007

  3. #3
    New Member
    Join Date
    Mar 09
    Posts
    5

    Re: Error 457 creating an installer

    VB 6.0 SP6 Yes

    Running XP, SP 3

    No idea what it was developed on, I just pulled from the repository. Seems like it runs o.k. on my box.

    P.S. Thanks Rob for putting this in the right forum, I didn't see this one.

  4. #4
    PowerPoster
    Join Date
    Feb 06
    Posts
    8,576

    Re: Error 457 creating an installer

    Sounds as if you may have tried to include a dependency or other file more than once?

    Collection keys are case-insensitive. The PDW probably uses the simple file name as a key so even if in different paths these names would need to be unique.
    Last edited by dilettante; Mar 24th, 2009 at 10:22 AM.

  5. #5
    New Member
    Join Date
    Mar 09
    Posts
    5

    Re: Error 457 creating an installer

    I don't think so, but new to this, so not 100% sure.

    I don't see any .dep files in the solution, and checking the included files when I try to build the package, I don't see any repetition.

    It might help if the wizard's error said what key it was, I suppose, but it doesn't.

    Thanks for the idea.

  6. #6
    New Member
    Join Date
    Mar 09
    Posts
    5

    Re: Error 457 creating an installer

    dilettante gave me an idea. I started through the wizard, and when I got to the Included files, I removed everything I was allowed to. I figured maybe I'd get something built, then could start adding back in the items one at a time until it broke.

    Hah!

    The only things I'm left with are SETUP.EXE, SETUP1.EXE, ST6UNST.EXE, and VB6STKIT.DLL. After getting through the wizard, as soon as I hit 'Finish', same error 457.

    So that was worth a try, but didn't pan out.

    Maybe I'm approaching the problem incorrectly. We've got this VB6 thing that a couple of people are using. One of them reports she "cannot save reports to pdf", but so far hasn't responded to requests for details (i.e., does she not have the ability to, or does but it fails, or what).

    Anyway, that was the idea of the installer--since the other person can save reports, we figured there's a difference in the two PCs, let's create an installer to ensure they're the same.

    Maybe there's a different approach I should be taking (?).

  7. #7
    PowerPoster
    Join Date
    Feb 06
    Posts
    8,576

    Re: Error 457 creating an installer

    I don't know of any save to PDF functionality in VB6. Must be using some 3rd party component or "print to PDF" printer driver?

    That PDW behavior sounds very strange. I'd be thinking "reformat, reinstall everything" but I know that's no help. This isn't a PDW problem I've ever seen reported though and I can't find an MS KB article covering it.

  8. #8
    New Member
    Join Date
    Mar 09
    Posts
    5

    Re: Error 457 creating an installer

    Sorry, the 'save to pdf' comes out of Crystal Reports.

    My suspicion is that this user is running an old version of the application, so that's why we were trying to build an install. No worries, I'll figure something out by manually installing the app, or building the app to a shared area and giving her a shortcut there, or something.

  9. #9
    New Member
    Join Date
    Jul 12
    Posts
    2

    Re: Error 457 creating an installer

    I had the same kind of problems and it seemed that it was caused by the following:
    I had added some files that were located in a special install folder, dedicated to the project I was generating a package for.
    Some of those file were also registered on my Windows XP PC in a different location than the install folder.
    It turned out that those files were exactly the files that were causing the problems.

    I created a new script and selected he files in the location tthat hey were registered in (use regedit to find them) and no longer used those files in the install folder. Then the package creation worked fine.
    Make sure that the registered files are of the same version as the version that you need in your project.

    You can also unregsiter the files (if youd don't need them) and select the files in the install directory.

    It looks like the Package and Deployment wizard first looks in the registry to find some file locations and if they don't match ith the locations you specified in some sections of your PDM file, you will get the error 457.

  10. #10
    New Member
    Join Date
    Jul 12
    Posts
    2

    Re: Error 457 creating an installer

    In addition to my reply above, I also found out that, when you use Visual Source Safe too, and the file locations of the files that you added to the VSS project do not match the paths that yous use in the PDM file for that Visual Basic projects install package, you can also get error 457 or error 76 (file not found).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •