Results 1 to 15 of 15

Thread: Visual Basic 6 on a USB Key?

  1. #1

    Thread Starter
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765

    Visual Basic 6 on a USB Key?

    Anyone know if its possible? I know it makes use of the Registry, so it may not be...

  2. #2
    Frenzied Member trisuglow's Avatar
    Join Date
    Jan 2002
    Location
    Horsham, Sussex, UK
    Posts
    1,536

    Re: Visual Basic 6 on a USB Key?

    Are you asking if you can install VB6 on a USB memory card and run it from there?

    I don't see why this wouldn't be possible, although it's almost certainly going to be a lot slower than an internal hard-drive. I don't think you'd just be able to plug it into a PC and go though, you're correct about the registry - each PC you wanted to use it on would need to register the dlls etc. in order for it to work.
    This world is not my home. I'm just passing through.

  3. #3

    Thread Starter
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765

    Re: Visual Basic 6 on a USB Key?

    More like just copying the VB98 folder onto the usb key and running it.

    It will run from the Key without any problems, but thats on a system with it installed..

  4. #4
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    Re: Visual Basic 6 on a USB Key?

    Welll yea...coz the dlls will be installed on your HD. So when you run the EXE windows will look at the DLLs on your HD, not the USB pen drive. This would be the same for most applications.
    Thus, if the PC doesn't have VB6, then it won't have the dlls location in memory

    Woka

  5. #5
    Frenzied Member David.Poundall's Avatar
    Join Date
    Sep 2002
    Location
    Robin Hood Land
    Posts
    1,457

    Re: Visual Basic 6 on a USB Key?

    Can you imagine the isues this would bring up regarding differing registered OCX's between machines - Nightmare.
    David

    Learn the Rules so that you know how to break them properly.

    Printing dll dBTools MZTools Winsock API WinsockVB More Winsock SGrid2 MSChart Mail2Web

    If you have found this thread useful then read this

  6. #6
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Visual Basic 6 on a USB Key?

    I thought you could put the needed files in the folder, as the pc will look there first. I'd think that it would be even faster.

  7. #7
    Frenzied Member David.Poundall's Avatar
    Join Date
    Sep 2002
    Location
    Robin Hood Land
    Posts
    1,457

    Re: Visual Basic 6 on a USB Key?

    But you would still have to register OCX's and Dll's on each machine though.
    David

    Learn the Rules so that you know how to break them properly.

    Printing dll dBTools MZTools Winsock API WinsockVB More Winsock SGrid2 MSChart Mail2Web

    If you have found this thread useful then read this

  8. #8
    Fanatic Member
    Join Date
    Mar 2002
    Location
    AUSTRALIA
    Posts
    603

    Re: Visual Basic 6 on a USB Key?

    Wokawidget,

    Semi related question.
    I note that most of your apps use DLLs
    I rarely ever give my user an Install version, I just give them the exe.
    With SGrid-2, I gave them a 'once only stand alone installer' (attached to one of my other posts).

    Can your DLL just be placed in the same folder as my exe, and not require P&D to install it ?
    Rob C

  9. #9
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    Re: Visual Basic 6 on a USB Key?

    The DLLs I use would need to be installed using an installer, or manually using the:

    regsvr32 "C\Program Files\Woof\vbGrowl.dll"

    I think this can be shelled from inside VB:
    Code:
    Shell "regsvr32 ""C\Program Files\Woof\vbGrowl.dll"""
    Can that be done? I've never tried. It's something very close to that if it's not. But I know the above regsvr command can be ran in DOS prompt.

    regsvr32 "C\Program Files\Woof\vbGrowl.dll" -u

    To uninstall.

    WHy don't you use an installer?
    They are VERY usefull, and you cannot 100% guarrentee the computers have the correct components installed on them.

    WOka

  10. #10
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Visual Basic 6 on a USB Key?

    Quote Originally Posted by dglienna
    I thought you could put the needed files in the folder, as the pc will look there first. I'd think that it would be even faster.
    Quote Originally Posted by David.Poundall
    But you would still have to register OCX's and Dll's on each machine though.
    Yes, but like also posted you would have multiple registered versions of the dlls/ocxs which would create a dll hell.
    Not to mention that some are in the "C:\Program Files\Common Files\Microsoft Shared" folder.
    I highly doubt that VB could be placed on a jump drive and it would work.

    Now for other smaller less complex programs this may work, but with the requirements like Woka pointed out.

    Also, location of the dlls does not increase/decrease performance since the location is stored in the reg.
    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 (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions 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 i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  11. #11
    Fanatic Member
    Join Date
    Mar 2002
    Location
    AUSTRALIA
    Posts
    603

    Re: Visual Basic 6 on a USB Key?

    WHy don't you use an installer?
    They are VERY usefull, and you cannot 100% guarrentee the computers have the correct components installed on them.
    I avoid complexity like the plague.
    I went through the 16 bit to 32 bit upgrade PIA with Crystal Reports and other controls. I swore never again.

    So I don't use 3rd Party controls, and I even avoid MS's VB Pro controls(the non-intrinsic ones). EG Avoiding problems like the ComCtls version changes.

    Thus there is never 'DLL Hell' with my pgms.

    I do make an exception for the SGrid-2, as it is just too good to ignore.

    I am also incorporating User Controls (.CTLs) directly into my projects, as 'I can have my cake and eat it too'' with those.
    Rob C

  12. #12
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Visual Basic 6 on a USB Key?

    Hmm. I guess it would have to be installed before it would work, and then uninstalled afterwards. Thanks.

  13. #13
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    Re: Visual Basic 6 on a USB Key?

    Quote Originally Posted by RobCrombie
    I avoid complexity like the plague.
    I went through the 16 bit to 32 bit upgrade PIA with Crystal Reports and other controls. I swore never again.

    So I don't use 3rd Party controls, and I even avoid MS's VB Pro controls(the non-intrinsic ones). EG Avoiding problems like the ComCtls version changes.

    Thus there is never 'DLL Hell' with my pgms.

    I do make an exception for the SGrid-2, as it is just too good to ignore.

    I am also incorporating User Controls (.CTLs) directly into my projects, as 'I can have my cake and eat it too'' with those.
    An installer make DLL hell = DLL heaven.

    Espescially one like Inno Setup, like in my sig. That's free. Have to learn a little to use it. But VB comes with the P&D wizard. I know it's not bril...na, in fact, don't use that, it's pants. Gave me loads of problems. Visual Studio Install isn't bad.

    Once you have your setup package setup, it's a walk in the park after that.

    Look at all the little projects I have.
    It makes my life SOOOO easy.

    I don't think anyone here would say it's a good idea not to use one.

    Woka

  14. #14

    Thread Starter
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765

    Re: Visual Basic 6 on a USB Key?

    Quote Originally Posted by dglienna
    I thought you could put the needed files in the folder, as the pc will look there first. I'd think that it would be even faster.
    Yeah, thats what happens, its just a matter of finding out which files are needed and copying them to the key.

    Atm, I get the splash screen, but it says "Unexpected Error; quiting"

    It refers to it as "Working Model Edition" on the splash screen (its actually Learning edition), so it may be a case of the registry keys being missing, so I'll give that a try tomorrow.

  15. #15
    Fanatic Member namrekka's Avatar
    Join Date
    Feb 2005
    Location
    Netherlands
    Posts
    639

    Re: Visual Basic 6 on a USB Key?

    Also an other problem. An USB-key is not a harddisk but a flash-ram device. Those devices can be written ca 1000~10000 times. So watch out with files who are written often. They must be moved to hardisk.

Posting Permissions

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



Click Here to Expand Forum to Full Width