Results 1 to 16 of 16

Thread: Runtime Dlls

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2005
    Posts
    15

    Runtime Dlls

    I was wondering if there was a way I could destribute my program as a normal .exe to a computer that doesnt have the VB6 Dlls. I know it won't run unless I include the dlls, but is there a way I could put them into my exe as resource files or something? Thanks.

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

    Re: Runtime Dlls

    Thats a catch 22. See you could place them into a resource file and extract them when your program runs, but in order for your program to run it needs those files first.

    You could also create a self extracting zip file that would do this or just create a installation package.
    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

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2005
    Posts
    15

    Re: Runtime Dlls

    Yes an installation package would work, but I'm trying to make it a single exe file. Is there not a way to merge the dlls with the exe and make it work that way?

  4. #4
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: Runtime Dlls

    No, but the installer can be just one file. Get NSIS (Nullsoft Installer), its free and you can create an installer for your app with it, and it will be compiled and compressed into one file. Other then that it is impossible, like RobDog explained.

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

    Re: Runtime Dlls

    As I previously posted a self extracting exe file like the ones that WinZip can pack will work or package it together using an installer like the P&D Wizard to make a Setup.exe are your only two real options.

    Check out the Aplication Deployment forums FAQ for other Installers.
    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

  6. #6

    Thread Starter
    New Member
    Join Date
    Jul 2005
    Posts
    15

    Re: Runtime Dlls

    Alright then, thanks for the help .

  7. #7
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Runtime Dlls

    thefuss22,

    Why would you try to shortcut the installation process? What could you possibly gain? Please read Installation Problems in my signature.

  8. #8
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: Runtime Dlls

    In the worst case scenario, you can make the installer Silent (can be done using NSIS). That way, when run, it will automatically install the application (you can also set it to run it automatically when it finishes) without any user intervention or windows shown to the user.

    But I wouldn't recommend it. I would be pretty pissed if some application installed itself on my PC without my permission. Use this suggestion wisely.
    It would be best if you can answer randems question in the post above this so we can have an idea of what exactly you are trying to achieve and we can help you better.

  9. #9

    Thread Starter
    New Member
    Join Date
    Jul 2005
    Posts
    15

    Re: Runtime Dlls

    Since my program that I have made is very small (doesn't do much), I didn't think it needed a installation, I was hoping I could just zip it and that way the user wouldn't have to go through the hassle of installation an application that was very small. But I have no problems with making it into an installation file.

    I don't think I would want the installer to install it silently either.

    Thanks.

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

    Re: Runtime Dlls

    If its that small and only the msvbvm60.dll or something then you should take my advise and use a self extracting zip file that WinZip or other compression utility can make.

    Moved from Classic VB forum.
    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
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: Runtime Dlls

    What I do to keep the installation file small is this.

    - I use NSIS to make the installer
    - I have the installer check for presence of msvbvm60.dll and if it is not found the installer downloads and installs it.

    That way I can make the installer at least 1MB smaller. If you need help with the script with this idea let me know.
    I do this because of most systems today have the msvbvm60.dll, either by default or some other application already installed it.

  12. #12

    Thread Starter
    New Member
    Join Date
    Jul 2005
    Posts
    15

    Re: Runtime Dlls

    That sounds good, that would be great if you could help me out with the script. But don't you need more then the msvbvm60.dll to run a VB6.0 application?

  13. #13
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Runtime Dlls

    Frankly I dont see the benefit of attempting to save 1mb of size and then make the user download more info anyway. I know I would be upset if everytime I installed an app it had to go to the internet to download something before installing. Expecially since all computers are not on the Internet at all times. Your app could only be install if one is connected to the internet at the time of install.

    I would give that app back to the place where I got it. I just would not use it. It's not like you only install apps while connected to the internet.

  14. #14
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: Runtime Dlls

    Like I said, it checks for the msvbvm60.dll, so if you installed the app once, or installed (or got the file in any other way) no connection would be attempted, and the application would be cleanly installed.
    In any case this is done for smaller apps that are downloaded from the internet, and both versions (with and without) are given and the users that have XP or know they have the file dont need to download the extra size.

  15. #15
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Runtime Dlls

    baja_yu,

    And I repeat. If the computer is not connected to the internet at the time of the install and does not have the file... The installation is basically useless unless more work by the user is done. Why create more work for the user???

  16. #16
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: Runtime Dlls

    Like I said, if you downloaded it then you are connected. And if you want to distribute it otherwise you can download the installation that includes it.

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