Results 1 to 14 of 14

Thread: What to include and how to install?

  1. #1

    Thread Starter
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    What to include and how to install?

    I have a small chat program that I have finished...

    I want to create the Smallest possible install.. and I dont want to use the P&D.

    I am using the standard controls.. which I know need no install.. the exe will run on its own..
    but I am also using the
    INET (msinet.ocx .. do I need the oca file too?)
    WINSOCK (MSWINSCK.OCX.. also.. oca?)
    RTB (RICHTX32.OCX .. also.. include oca?)
    controls as well...

    do I need the oca's? and If I Include these in the zip...whats the best way to register them.. can it be done silently?

    Thanks!
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

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

    Re: What to include and how to install?

    Registration can be done silently with the /s switch when using regsvr32.exe.

    Quote Originally Posted by MSDN
    Each ActiveX control is accompanied by a file with an .oca extension. This file stores cached type library information and other data specific to the control. The .oca files are typically stored in the same directory as the ActiveX controls and are recreated as needed (file sizes and dates may change).
    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
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: What to include and how to install?

    /s .. perfect...


    I just took the 3 controls...
    incl them in my zip....
    then I will test if they exist in the system32 directory... if not.. copy them in
    then reg them... great thanks!!
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  4. #4

    Thread Starter
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: What to include and how to install?

    so.. what do u think.. will this work ok?

    I tried to test it by unreging the ocx's then deleting them

    seemed to work fine...
    getsys function
    VB Code:
    1. Private Declare Function GetWindowsDirectory Lib "kernel32" Alias "GetWindowsDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long
    2.  
    3. Private Function GetSys() As String
    4.     Dim Path As String, strSave As String
    5.     strSave = String(200, Chr$(0))
    6.     GetSys = Left$(strSave, GetWindowsDirectory(strSave, Len(strSave)))
    7. End Function
    code for test / reg

    VB Code:
    1. cmdInstall.Enabled = False
    2. Dim wPath As String
    3. status "checking for system32 directory"
    4. wPath = GetSys & "\system32\"
    5. status "Checking for controls..."
    6. If Len(Dir(wPath & "RICHTX32.OCX")) = 0 Then
    7.      status "Copying and registering RICHTX32.OCX"
    8.      FileCopy App.Path & "\RICHTX32.OCX", wPath & "RICHTX32.OCX"
    9.      Shell "regsvr32.exe /s " & wPath & "RICHTX32.OCX"
    10. End If
    11. If Len(Dir(wPath & "MSWINSCK.OCX")) = 0 Then
    12.      status "Copying and registering MSWINSCK.OCX"
    13.      FileCopy App.Path & "\MSWINSCK.OCX", wPath & "MSWINSCK.OCX"
    14.      Shell "regsvr32.exe /s " & wPath & "MSWINSCK.OCX"
    15. End If
    16. If Len(Dir(wPath & "msinet.ocx")) = 0 Then
    17.      status "Copying and registering msinet.ocx"
    18.      FileCopy App.Path & "\msinet.ocx", wPath & "msinet.ocx"
    19.      Shell "regsvr32.exe /s " & wPath & "msinet.ocx"
    20. End If
    21. status "I think it worked! Click RUN!"
    22. cmdRun.Enabled = True
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

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

    Re: What to include and how to install?

    But dont you also need to test for file version? You dont want to disregard the ocx just because it exists? This is what the P&D Wiz does as well as 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
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: What to include and how to install?

    good thinking... but this app will only be going on a couple machines..
    all are new with XP SP2 on them.. if it has the file.. it "should" be the latest I would hope!!! LOL
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  7. #7
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: What to include and how to install?

    If it is only going on a couple of machines then you could manually verify the date/time stamps on these controls to ensure they have the latest.

  8. #8

    Thread Starter
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: What to include and how to install?

    I could... if I were able to.. the machines are not here...


    well.. I'll give it a shot.. if it fails.. then I try again! lol

    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  9. #9
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: What to include and how to install?

    Quote Originally Posted by Static
    I could... if I were able to.. the machines are not here...


    well.. I'll give it a shot.. if it fails.. then I try again! lol

    Well, Ok...then you could programmatically check the date/time stamp and compare it to the date/time stamp of what needs to be installed.

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

    Re: What to include and how to install?

    Wouldnt it be better to still create a setup package? It will check the versions for you and install only if they are needing to be updated.
    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

    Thread Starter
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: What to include and how to install?

    yes.. but setup packages can get large....

    1 person only has dialup.. and it will take forever.. so I am trying to keep it as small as possible.

    right now.. the 2 exe's and 3 ocx's zipped is only 300K
    the P&D makes it 1.8MB....

    on a side note.. the P&D wanted to inlcude RICHTX32.DLL ?? do I need this!!??
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

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

    Re: What to include and how to install?

    It may be a supporting dll for the RICHTX32.ocx.

    Use Depends.exe on the ocx and see what its dependancies are.
    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

  13. #13

    Thread Starter
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: What to include and how to install?

    Depends.exe?? where is this?
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

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

    Re: What to include and how to install?

    Its in the "?:\Program Files\Microsoft Visual Studio\Common\Tools\DEPENDS.EXE" location.
    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

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