Results 1 to 7 of 7

Thread: Package and Install

  1. #1

    Thread Starter
    Fanatic Member Jumpercables's Avatar
    Join Date
    Jul 2005
    Location
    Colorado
    Posts
    592

    Package and Install

    So I am trying to make an installer for my program. I am using VBInstaller downloaded from Microsoft. But I am not sure how to add my dependencies or where to find them.

    Example:

    Neither a merge module nor dependacy information could be found for c:\program files\microsoft office\office 10\execl.exe

    One or more files in MDAC.MSM have different versions that those installed on this machine
    ...

    How do I add those dependancies or am I doing these wrong? Did I go about the procedure correct? I just loaded VBInstaller and browesd to my project. Is there an easier way?


    Thanks In Adance!

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

    Re: Package and Install

    Its because Excel is not redistributable. Your target systems will need their own license for Excel.
    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
    Fanatic Member Jumpercables's Avatar
    Join Date
    Jul 2005
    Location
    Colorado
    Posts
    592

    Re: Package and Install

    So as long as Excel is installed on the other computer it will work fine?

    What about the other dependencies where do I find them?

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

    Re: Package and Install

    Which installer is it? MSI 1.1? It depends on what your using in your app.
    Are you targeting Excel XP only or are you trying to support all versions of Excel?
    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

    Thread Starter
    Fanatic Member Jumpercables's Avatar
    Join Date
    Jul 2005
    Location
    Colorado
    Posts
    592

    Re: Package and Install

    Version 1.1 and I would like to target all excel above 2002

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

    Re: Package and Install

    Since you are targeting more then one version of Excel then you need to modify your program to Late Bind with Excel. This means to remove the Excel reference and declare your Excel variables as Object. Then upon start of your app you need to determine the version of Excel that installed, if any, and handle appropriately.
    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

  7. #7

    Thread Starter
    Fanatic Member Jumpercables's Avatar
    Join Date
    Jul 2005
    Location
    Colorado
    Posts
    592

    Re: Package and Install

    I am using all objects however I am using this statement to locate cells and its the only reason I have the excel reference.
    VB Code:
    1. 'Finds the location of a cell that contains the string provide.
    2. 'If found returns the cell number location if not found returns -1
    3. Private Function FindCellLocation(Sheet As Object, Look As String) As Integer
    4.     Dim nCol As Integer
    5.        For nCol = 1 To Sheet.Cells.SpecialCells(xlCellTypeLastCell).Column
    6.         If Sheet.Cells(4, nCol).Value = Look Then
    7.             FindCellLocation = nCol
    8.             Exit For
    9.         End If
    10.         FindCellLocation = -1
    11.     Next nCol
    12. End Function

    Is there any way to preform this section without the reference? If not then I know this program works on the platform it was designed to run on. So I could technically keep the reference. In that case how would I add the execl reference? Or is that not needed if the current version of excel works with the program its running on.

    And how do you add the other dependanciess?
    Last edited by Jumpercables; Oct 8th, 2005 at 03:01 AM.

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