By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,365 Members | 1,360 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,365 IT Pros & Developers. It's quick & easy.

Problem deploying VB 6.0 app

P: n/a
VB Gurus,

I have developed a VB 6.0 application on WIN XP Pro which I am trying to
deploy on another machine on the network which is running Win 2000 Pro.

I am using the "Package & Deployment wizard" that comes with the Visual
Studio 6.0 Toolset to deploy it on a shared folder.

Everything seems to go fine until I run the app ... then it does ** not show
any data ** in the DataGrid controls. No errors are generated either. I have
bound the DataGrid to ADODC which uses Excel Spreadsheet DSNs (all of which
I copy manually to the deployed folder).

What am I missing ? I have included below, the contents of SETUP.LST
generated by the wizard for reference. The thing that strikes as odd to me
is in the [Setup] section it says: "DefaultDir=$(ProgramFiles)\MyApp". Why
$(ProgramFiles)?

Thanks in advance.
-- Shashank

----------------------------------------------------------------------------
-------------------------------------
[Bootstrap]
SetupTitle=Install
SetupText=Copying Files, please stand by.
CabFile=MyApp.CAB
Spawn=Setup1.exe
Uninstal=st6unst.exe
TmpDir=msftqws.pdw
Cabs=1

[Bootstrap Files]
Fi****@VB6STKIT.DLL,$(WinSysPathSysFile),,,6/18/98 1:00:00
AM,102912,6.0.81.69
Fi****@COMCAT.DLL,$(WinSysPathSysFile),$(DLLSelfRe gister),,5/31/98 1:00:00
AM,22288,4.71.1460.1
Fi****@stdole2.tlb,$(WinSysPathSysFile),$(TLBRegis ter),,8/23/01 7:00:00
AM,17920,3.50.5014.0
Fi****@asycfilt.dll,$(WinSysPathSysFile),,,8/23/01 7:00:00
AM,77824,3.50.5014.0
Fi****@olepro32.dll,$(WinSysPathSysFile),$(DLLSelf Register),,8/23/01 7:00:00
AM,106496,5.0.5014.0
Fi****@oleaut32.dll,$(WinSysPathSysFile),$(DLLSelf Register),,8/23/01 7:00:00
AM,569344,3.50.5014.0
Fi****@msvbvm60.dll,$(WinSysPathSysFile),$(DLLSelf Register),,8/23/01 7:00:00
AM,1388544,6.0.92.37

[IconGroups]
Group0=MyApp
PrivateGroup0=True
Parent0=$(Programs)

[MyApp]
Icon1="MyApp.exe"
Title1=MyApp
StartIn1=$(AppPath)

[Setup]
Title=MyApp
DefaultDir=$(ProgramFiles)\MyApp
AppExe=MyApp.exe
AppToUninstall=MyApp.exe

[Setup1 Files]
Fi****@RICHED32.DLL,$(WinSysPathSysFile),,,5/7/98 1:00:00
AM,174352,4.0.993.4
Fi****@RICHTX32.OCX,$(AppPath),$(DLLSelfRegister), $(Shared),6/24/98 1:00:00
AM,203576,6.0.81.69
Fi****@TABCTL32.OCX,$(AppPath),$(DLLSelfRegister), $(Shared),6/24/98 1:00:00
AM,209192,6.0.81.69
Fi****@MSFLXGRD.OCX,$(AppPath),$(DLLSelfRegister), $(Shared),6/24/98 1:00:00
AM,244024,6.0.81.69
Fi****@msstdfmt.dll,$(AppPath),$(DLLSelfRegister), $(Shared),4/5/01 12:43:19
PM,118784,6.0.88.4
Fi****@MSDATGRD.OCX,$(AppPath),$(DLLSelfRegister), $(Shared),6/24/98 1:00:00
AM,260920,6.0.81.69
Fi****@MSCOMCT2.OCX,$(AppPath),$(DLLSelfRegister), $(Shared),6/26/98 1:00:00
AM,644400,6.0.81.77
Fi****@MSADODC.OCX,$(AppPath),$(DLLSelfRegister),$ (Shared),6/24/98 1:00:00
AM,118064,6.0.81.71
Fi****@msado10.dll,$(AppPath),$(DLLSelfRegister),$ (Shared),11/10/97 9:30:12
PM,226064,1.0.1.31
Fi*****@MSBIND.DLL,$(AppPath),$(DLLSelfRegister),$ (Shared),6/18/98 1:00:00
AM,77824,6.0.81.69
Fi*****@MyApp.exe,$(AppPath),,,7/5/03 1:06:18 PM,73728,1.0.0.0
Jul 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
You might want to make sure that you installed (upgraded) MDAC on both
machines to version 2.6 (or higher if any).

--
Stéphane Richard
Senior Software and Technology Supervisor
http://www.totalweb-inc.com
For all your hosting and related needs
"Shashank Date" <sd***@everestkc.net> wrote in message
news:4e******************************@free.teranew s.com...
VB Gurus,

I have developed a VB 6.0 application on WIN XP Pro which I am trying to
deploy on another machine on the network which is running Win 2000 Pro.

I am using the "Package & Deployment wizard" that comes with the Visual
Studio 6.0 Toolset to deploy it on a shared folder.

Everything seems to go fine until I run the app ... then it does ** not show any data ** in the DataGrid controls. No errors are generated either. I have bound the DataGrid to ADODC which uses Excel Spreadsheet DSNs (all of which I copy manually to the deployed folder).

What am I missing ? I have included below, the contents of SETUP.LST
generated by the wizard for reference. The thing that strikes as odd to me
is in the [Setup] section it says: "DefaultDir=$(ProgramFiles)\MyApp". Why
$(ProgramFiles)?

Thanks in advance.
-- Shashank

-------------------------------------------------------------------------- -- -------------------------------------
[Bootstrap]
SetupTitle=Install
SetupText=Copying Files, please stand by.
CabFile=MyApp.CAB
Spawn=Setup1.exe
Uninstal=st6unst.exe
TmpDir=msftqws.pdw
Cabs=1

[Bootstrap Files]
Fi****@VB6STKIT.DLL,$(WinSysPathSysFile),,,6/18/98 1:00:00
AM,102912,6.0.81.69
Fi****@COMCAT.DLL,$(WinSysPathSysFile),$(DLLSelfRe gister),,5/31/98 1:00:00
AM,22288,4.71.1460.1
Fi****@stdole2.tlb,$(WinSysPathSysFile),$(TLBRegis ter),,8/23/01 7:00:00
AM,17920,3.50.5014.0
Fi****@asycfilt.dll,$(WinSysPathSysFile),,,8/23/01 7:00:00
AM,77824,3.50.5014.0
Fi****@olepro32.dll,$(WinSysPathSysFile),$(DLLSelf Register),,8/23/01 7:00:00 AM,106496,5.0.5014.0
Fi****@oleaut32.dll,$(WinSysPathSysFile),$(DLLSelf Register),,8/23/01 7:00:00 AM,569344,3.50.5014.0
Fi****@msvbvm60.dll,$(WinSysPathSysFile),$(DLLSelf Register),,8/23/01 7:00:00 AM,1388544,6.0.92.37

[IconGroups]
Group0=MyApp
PrivateGroup0=True
Parent0=$(Programs)

[MyApp]
Icon1="MyApp.exe"
Title1=MyApp
StartIn1=$(AppPath)

[Setup]
Title=MyApp
DefaultDir=$(ProgramFiles)\MyApp
AppExe=MyApp.exe
AppToUninstall=MyApp.exe

[Setup1 Files]
Fi****@RICHED32.DLL,$(WinSysPathSysFile),,,5/7/98 1:00:00
AM,174352,4.0.993.4
Fi****@RICHTX32.OCX,$(AppPath),$(DLLSelfRegister), $(Shared),6/24/98 1:00:00 AM,203576,6.0.81.69
Fi****@TABCTL32.OCX,$(AppPath),$(DLLSelfRegister), $(Shared),6/24/98 1:00:00 AM,209192,6.0.81.69
Fi****@MSFLXGRD.OCX,$(AppPath),$(DLLSelfRegister), $(Shared),6/24/98 1:00:00 AM,244024,6.0.81.69
Fi****@msstdfmt.dll,$(AppPath),$(DLLSelfRegister), $(Shared),4/5/01 12:43:19 PM,118784,6.0.88.4
Fi****@MSDATGRD.OCX,$(AppPath),$(DLLSelfRegister), $(Shared),6/24/98 1:00:00 AM,260920,6.0.81.69
Fi****@MSCOMCT2.OCX,$(AppPath),$(DLLSelfRegister), $(Shared),6/26/98 1:00:00 AM,644400,6.0.81.77
Fi****@MSADODC.OCX,$(AppPath),$(DLLSelfRegister),$ (Shared),6/24/98 1:00:00
AM,118064,6.0.81.71
Fi****@msado10.dll,$(AppPath),$(DLLSelfRegister),$ (Shared),11/10/97 9:30:12 PM,226064,1.0.1.31
Fi*****@MSBIND.DLL,$(AppPath),$(DLLSelfRegister),$ (Shared),6/18/98 1:00:00
AM,77824,6.0.81.69
Fi*****@MyApp.exe,$(AppPath),,,7/5/03 1:06:18 PM,73728,1.0.0.0

Jul 17 '05 #2

P: n/a

"Stephane Richard" <st**************@verizon.net> wrote in message
Those DSN files can they just be copied manually? or should you add them
through the control Panel? or add them as services? Hmmm
I added them through the Control Panel. Still not difference.
I don't know how to add them as services.

But here is an interesting observation ... when I deleted one of the DSNs
on the source machine so that it could not be found at runtime, the form
which refered to it threw an "Unknown Error" exception.

When I did the same thing on the target machine, it did not throw any
error!!
Ran exactly like before ... looks like it does not even refer to the DSNs.

Isn't that strange ?
I'll need to do a little research....but except for the obvious EXE files
and a few others....I thought everything else had to be "registered" somehow on the machine.
You mean like registering the OCXs and DLLs and stuff ? I thought the
"Package & Deployment" wizard took care of that .. but then again, it may
not.
One more thing to check.
Stéphane Richard


Thank you so much.
-- Shashank
Jul 17 '05 #3

P: n/a

"Shashank Date" <sd***@everestkc.net> wrote in message
I thought everything else had to be "registered" somehow
on the machine.


You mean like registering the OCXs and DLLs and stuff ? I thought the
"Package & Deployment" wizard took care of that .. but then again, it may
not.
One more thing to check.


Ok, I also did this ... registered every OCX and DLL used by my app using
regsvr32.exe. Some of them were already loaded in the memory, so
it asked me to use "Pview" (don't have it) to unload them. And of course,
I rebooted and all that good stuff. Still no go :-((

I am only trying to deploy from one Win XP to another Win 2K Pro.
I cannot imagine the nightmare of those who have to deploy across
thousands of machines with differing Win versions.
Jul 17 '05 #4

P: n/a
as for the DSN yes the deployement wizard should take care of that,
essentially....and if you have already dsn servers, then you shouldn't need
to install it as a service....I did the research and the DSN server is the
service that can understand/initiate whatever DSN needed by any application.

So I'm wondering what else could be tried....doing more reserarch.

--
Stéphane Richard
Senior Software and Technology Supervisor
http://www.totalweb-inc.com
For all your hosting and related needs
"Shashank Date" <sd***@everestkc.net> wrote in message
news:08******************************@free.teranew s.com...

"Shashank Date" <sd***@everestkc.net> wrote in message
I thought everything else had to be "registered" somehow
on the machine.


You mean like registering the OCXs and DLLs and stuff ? I thought the
"Package & Deployment" wizard took care of that .. but then again, it may not.
One more thing to check.


Ok, I also did this ... registered every OCX and DLL used by my app using
regsvr32.exe. Some of them were already loaded in the memory, so
it asked me to use "Pview" (don't have it) to unload them. And of course,
I rebooted and all that good stuff. Still no go :-((

I am only trying to deploy from one Win XP to another Win 2K Pro.
I cannot imagine the nightmare of those who have to deploy across
thousands of machines with differing Win versions.

Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.