|
-
Mar 15th, 2005, 06:03 AM
#1
Thread Starter
PowerPoster
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...
-
Mar 15th, 2005, 06:09 AM
#2
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.
-
Mar 15th, 2005, 06:11 AM
#3
Thread Starter
PowerPoster
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..
-
Mar 15th, 2005, 06:53 AM
#4
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
-
Mar 15th, 2005, 07:17 AM
#5
Frenzied Member
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.
-
Mar 15th, 2005, 06:49 PM
#6
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.
-
Mar 15th, 2005, 07:02 PM
#7
Frenzied Member
Re: Visual Basic 6 on a USB Key?
But you would still have to register OCX's and Dll's on each machine though.
-
Mar 15th, 2005, 07:03 PM
#8
Fanatic Member
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 ?
-
Mar 15th, 2005, 07:20 PM
#9
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
-
Mar 15th, 2005, 07:31 PM
#10
Re: Visual Basic 6 on a USB Key?
 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.
 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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
Mar 15th, 2005, 07:36 PM
#11
Fanatic Member
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.
-
Mar 15th, 2005, 07:42 PM
#12
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.
-
Mar 15th, 2005, 07:51 PM
#13
Re: Visual Basic 6 on a USB Key?
 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
-
Mar 15th, 2005, 08:16 PM
#14
Thread Starter
PowerPoster
Re: Visual Basic 6 on a USB Key?
 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.
-
Mar 16th, 2005, 05:23 AM
#15
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|