Results 1 to 6 of 6

Thread: When making my program exe.

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2007
    Posts
    16

    Post When making my program exe.

    OK,
    I have a question. I am a few months from really needing to know this, but I figure I better start getting some answers. I am writing a program in Visual Basics. My program will require a few .txt files to be in the users C: drive. When making my program exe. 1. How do I attach the .txt files with the package? 2. How do I get the program to load these .txt files to the users C: folder? I don't want the user to have to move files around for my program to work. I simply want them to be able to download my program and it does all the work for them. When a user downloads my program from my web site, I need the .txt files to go to the C: folder because that's the path I used.

    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: When making my program exe.

    Are you using Visual Basic 6 or the VBA editor behind one of the Office apps?
    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
    Frenzied Member zaza's Avatar
    Join Date
    Apr 2001
    Location
    Borneo Rainforest Habits: Scratching
    Posts
    1,486

    Re: When making my program exe.

    It sounds like you may have posted this in the wrong Forum. This forum is for developing applications in Microsoft Office, not in VB6 or VB.Net.

    If this is the correct forum, then I'm afraid you can't make an executable out of an Office document.

    If not, then it depends which version of VB you are using. In both versions, there is a built-in installer but it is much better for VB.Net than for VB6 and in that case you would be better off using one of a number of other install packages that are widely available.
    In either case, have a look in the Application Deployment forum, where you will find many answers for whichever version of VB you are using.
    I use VB 6, VB.Net 2003 and Office 2010



    Code:
    Excel Graphing | Excel Timer | Excel Tips and Tricks | Add controls in Office | Data tables in Excel | Gaussian random number distribution (VB6/VBA,VB.Net) | Coordinates, Vectors and 3D volumes

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

    Re: When making my program exe.

    Only version of Office that can is the Developer version.
    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

  5. #5
    Frenzied Member zaza's Avatar
    Join Date
    Apr 2001
    Location
    Borneo Rainforest Habits: Scratching
    Posts
    1,486

    Re: When making my program exe.

    Nobody uses that. Or VSTO.
    I use VB 6, VB.Net 2003 and Office 2010



    Code:
    Excel Graphing | Excel Timer | Excel Tips and Tricks | Add controls in Office | Data tables in Excel | Gaussian random number distribution (VB6/VBA,VB.Net) | Coordinates, Vectors and 3D volumes

  6. #6
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: When making my program exe.

    the OP says visual basics, so maybe this is not the right forum and as it is a deployment issue still the wrong forum

    it would be bad practice to put any dependent files into the root folder of drive C:, as there could be security or permissions issues, with Vista even using App.Path could still have issues, as far as actually doing it you need to be looking at the instructions for the packaging program you are going to use for your setup/ installation
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

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