|
-
Feb 9th, 2006, 03:10 PM
#1
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"
-
Feb 9th, 2006, 07:47 PM
#2
Re: What to include and how to install?
Registration can be done silently with the /s switch when using regsvr32.exe.
 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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
Feb 10th, 2006, 09:38 AM
#3
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"
-
Feb 10th, 2006, 09:50 AM
#4
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:
Private Declare Function GetWindowsDirectory Lib "kernel32" Alias "GetWindowsDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long
Private Function GetSys() As String
Dim Path As String, strSave As String
strSave = String(200, Chr$(0))
GetSys = Left$(strSave, GetWindowsDirectory(strSave, Len(strSave)))
End Function
code for test / reg
VB Code:
cmdInstall.Enabled = False
Dim wPath As String
status "checking for system32 directory"
wPath = GetSys & "\system32\"
status "Checking for controls..."
If Len(Dir(wPath & "RICHTX32.OCX")) = 0 Then
status "Copying and registering RICHTX32.OCX"
FileCopy App.Path & "\RICHTX32.OCX", wPath & "RICHTX32.OCX"
Shell "regsvr32.exe /s " & wPath & "RICHTX32.OCX"
End If
If Len(Dir(wPath & "MSWINSCK.OCX")) = 0 Then
status "Copying and registering MSWINSCK.OCX"
FileCopy App.Path & "\MSWINSCK.OCX", wPath & "MSWINSCK.OCX"
Shell "regsvr32.exe /s " & wPath & "MSWINSCK.OCX"
End If
If Len(Dir(wPath & "msinet.ocx")) = 0 Then
status "Copying and registering msinet.ocx"
FileCopy App.Path & "\msinet.ocx", wPath & "msinet.ocx"
Shell "regsvr32.exe /s " & wPath & "msinet.ocx"
End If
status "I think it worked! Click RUN!"
cmdRun.Enabled = True
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Feb 11th, 2006, 11:17 AM
#5
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
Feb 13th, 2006, 08:38 AM
#6
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"
-
Feb 13th, 2006, 08:58 AM
#7
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.
-
Feb 13th, 2006, 11:16 AM
#8
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"
-
Feb 13th, 2006, 11:28 AM
#9
Re: What to include and how to install?
 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.
-
Feb 13th, 2006, 12:06 PM
#10
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
Feb 13th, 2006, 04:54 PM
#11
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"
-
Feb 13th, 2006, 05:44 PM
#12
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
Feb 13th, 2006, 10:50 PM
#13
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"
-
Feb 13th, 2006, 11:11 PM
#14
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|