Re: Can a Visual Basic 6 program be made into a portable app?



On 9 Dec, 21:01, Otis <otie_nos...@xxxxxxx> wrote:

If so, what is the procedure? Thank you.

Depends what you mean by "portable app". Do you mean something that
can be copied onto a CD or a USB memory stick and then run straight
from the device? If so then the answer is "Yes", but the details of
how to do it depend on exactly what your app is doing. You can of
course do it using a commercial packaging app (MoleBox for example) or
you can do it for free if you use a sort of "XCopy deployment" package
where you place your compiled VB exe and all of its required support
files in a folder on the memory stick or whatever, together with a
suitable manifest. If you use only the standard "built into the VB
runtime" Controls (Command Button, Label, PictureBox, Frame. ListBox,
Timer etc) then you don't need a manifest or any support files and you
can simply put just the compiled VB6 exe onto the memory stick,
because the VB runtime ships with the OS right up to and including
Win7 and will already be present. If your program uses other things
(RichTextBox, CommonDialog Control, third party Controls, etc or
anything that needs to be copied to and / or would normally need to be
registered on the system) then you will need to create a suitable
manifest and either include it as a separate file in the same folder
as your compiled exe and your support files or alternatively embed the
manifest into your compiled exe. The manifest causes the system to use
the copies of the support files that are present in the same folder as
your exe (or in a predetermined subfolder) without them needing to be
registered on your system.

Mike

.



Relevant Pages

  • Re: Spooky netwoking behaviour! XPHome, Win98SE, XPPro...SP2, SP1....H
    ... Other machines on the same network work fine. ... This particular exe uses an XP visual style manifest resource compiled into ... Note that the exe is written in VB6, not .NET, but it uses a XP visual style ...
    (microsoft.public.windowsxp.network_web)
  • Re: Manifests and requestedExecutionLevel
    ... The existing app is a single executable, ... Since you already have the small .exe running, ... And Admin user priviledge is High MIC. ... The manifest has the capability of telling Vista that it needs to be started ...
    (microsoft.public.vc.mfc)
  • Re: Application caching
    ... using shared memory from other user sessions is ... ... If the exe is still in memory, it should read it from disk again if it ... Microsoft MVP - Terminal Services ... We have set up Server 2008 with Terminal Server for about 10 users. ...
    (microsoft.public.windows.terminal_services)
  • Re: C# and native resources
    ... For instance when you run mt on a X86 platform, ... following assemblyIdentity element: ... Extracting the manifest from my finished EXE, ... the manifest fragment that I fed into mt when the EXE was built (the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: msdos exe file loading related questions, answer as much as u can ;)
    ... # of bytes of last 512-byte block of the exe file ... interpreted by the exe program loader to mean the whole last 512-byte ... program memory image's memory address and some say it is a 32-bit ...
    (comp.lang.asm.x86)