Link to home
Create AccountLog in
Visual Basic Classic

Visual Basic Classic

--

Questions

--

Followers

Top Experts

Avatar of cocosteel
cocosteel

package and deployment problem of vb6 application
hi there

i am having a few problems deploying a visual basic 6 application.

here the details:

1. i have a vb6 application containg 1 form 2 modules and 6 class modules
It contains references to the following libraries
-Visual basic for applications
-visual basic runtime objects and procedures
-visual basic objects and procedures
-OLE Automation
-Microsoft XML, v4.0
-Microsoft ActiveX Data Objects 2.7 Library
-Microsoft Scripting Runtime
-Microsoft Access 9.0 Object library

2. i have compiled this program into an exe.
3. I used visual studio tools - package and deployment wizard
4. i chose standard set up package
5. for the type of package i again chose standard set up package
6. i selected a folder on our network for the destination
7. the files that were included in the package were:
-COMCTL32.ocx
-COMDLG32.ocx
-MDAC_TYP.EXE
-MSACC9.OLB
-msvcrt.dll
-MSXML4.dll
-scrrun.dll
-SETUP.exe
-SETUP1.EXE
-ST6UNST.exe
-vb6 RunTime and OLE Automation
-VB6STKIT.dll
-XMLWrapper1.exe

8. from this i created a single CAB and named it
9. the wizard then notified me that MDAC_TYP.exe and XMLWrapper1.exe (my executable) could be installed as shared files - i did not choose to do this

THEN...

when i ran the setup package on the network from a PC that did not have visual studio installed - i immediately go the following message

"set up fatal error: unable to generate installation log file"

where am i going wrong?

thanks very much.


Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of spongiespongie🇵🇭

The problem is that you're not able to generate a log file.  You're problem is much harder to trace that way.  Had you tried installing on another computer?

Anyway, I've had my own set woes with the package and deployement wizard. That's why i only use it to generate a list of files needed to make my software running on another computer.  After that, I recreate the file in Inno Setup. Try using it. it's free. look for it here:


http://www.jrsoftware.org/


Perhaps this is not the quick answer you were looking for but i assure you, you'll never run into a deployment problem again.

Avatar of cocosteelcocosteel

ASKER

i havent used inno set up before, whats the procedure - i have downloaded the isetup-3.0.6.exe

could you talk me through how i should use it?

thanks




Have you looked at the setup.lst file in the network folder you selected?  This file tells the setup program what to install, and where to install it.

For example, at the top of the file will be some lines like the following:
[Bootstrap]
SetupTitle=Installing My Software Package
SetupText=Copying My Software Installation Files, please stand by . . .
CabFile=MyFile.CAB
Spawn=Setup1.exe
Uninstal=st6unst.exe
TmpDir=msftqws.pdw
Cabs=1

You can adjust the top two lines for custom messages that display while the software is installing.

Then there will be some bootstrap files listed.  After those, you will find an area something like the following:
[IconGroups]
Group0=My Software ' Folder to be created in the programs menu
PrivateGroup0=0
Parent0=$(Programs)

[My Software]
Icon1=""My Software.exe"" ' File in which to find the icon for the program
Title1=My Software ' Shortcut in the program menu to start the program
StartIn1=$(AppPath) ' Default path
Icon2="$(WinPath)ST6UNST.EXE -n "$(AppPath)ST6UNST.LOG"" ' create an uninstall option in the program menu
Title2=UnInstall My Software ' title for the shortcut
StartIn2=

[Setup]
Title=My Software
DefaultDir=$(ProgramFiles)\My Software ' Folder on Hard Drive in Program Files Directory
AppExe=My Software.exe ' actual name of program
AppToUninstall=My Software.exe

Try looking at this file, and adjusting the settings for installation over the network.  Make sure the paths listed are accessible, etc.

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


sorry to ask a dumb question, but
>Have you looked at the setup.lst file in the network folder you selected?

is setup.1st part of inno setup or is this a file created when i have compiled a vb6 exe (and nothing to do with inno setup)?

thanks

The setup.lst file is one of the three things that are needed for installation when you use the Package and Deployment wizard.  

In the network folder you selected, you should have a setup.lst file, the .CAB file, and the setup.exe file.  There is also a directory called support, which can be used to re-create the .CAB file, without using the wizard again.  This directory isn't needed for installation on another computer though.

You can create a self-extracting .zip file with these three items in it to make it easier for downloading.

cool, just investigating...

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


ASKER CERTIFIED SOLUTION
Avatar of spongiespongie🇵🇭

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

spongie,

i followed the instructions and this was my script:

; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

[Setup]
AppName=eParse
AppVerName=eParse_Version2_Inno
AppPublisher=Method One Consulting
AppPublisherURL=www.Method-One-Consulting.com
AppSupportURL=www.Method-One-Consulting.com
AppUpdatesURL=www.Method-One-Consulting.com
DefaultDirName={pf}\eParse
DefaultGroupName=eParse

[Tasks]
Name: "desktopicon"; Description: "Create a &desktop icon"; GroupDescription: "Additional icons:"

[Files]
Source: "C:\eparsepackage\eParseV2.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\eparsepackage\Support\STDOLE2.TLB"; DestDir: {sys}; Flags: restartreplace uninsneveruninstall regtypelib; CopyMode: alwaysskipifsameorolder;
Source: "C:\eparsepackage\Support\MSVBVM60.dll"; DestDir: {sys}; Flags: restartreplace uninsneveruninstall regserver; CopyMode: alwaysskipifsameorolder;
Source: "C:\eparsepackage\Support\OleAut32.dll"; DestDir: {sys}; Flags: restartreplace uninsneveruninstall regserver; CopyMode: alwaysskipifsameorolder;
Source: "C:\eparsepackage\Support\OlePro32.dll"; DestDir: {sys}; Flags: restartreplace uninsneveruninstall regserver; CopyMode: alwaysskipifsameorolder;
Source: "C:\eparsepackage\Support\AsycFilt.dll"; DestDir: {sys}; Flags: restartreplace uninsneveruninstall; CopyMode: alwaysskipifsameorolder;
Source: "C:\eparsepackage\Support\ComCat.dll"; DestDir: {sys}; Flags: restartreplace uninsneveruninstall regserver; CopyMode: alwaysskipifsameorolder;

; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Name: "{group}\eParse"; Filename: "{app}\eParseV2.exe"
Name: "{userdesktop}\eParse"; Filename: "{app}\eParseV2.exe"; Tasks: desktopicon

[Run]
Filename: "{app}\eParseV2.exe"; Description: "Launch eParse"; Flags: nowait postinstall skipifsilent

i deployed this on my local machine
unfortunately i when i tried to run the program i got

"system error & H80009005 (-2147467259)"

this was my setup.lst from pdw

[Bootstrap Files]
File1=@VB6STKIT.DLL,$(WinSysPathSysFile),,,6/18/98 12:00:00 AM,102912,6.0.81.69
File2=@COMCAT.DLL,$(WinSysPathSysFile),$(DLLSelfRegister),,5/31/98 12:00:00 AM,22288,4.71.1460.1
File3=@STDOLE2.TLB,$(WinSysPathSysFile),$(TLBRegister),,7/22/02 8:05:04 PM,16896,2.40.4518.0
File4=@ASYCFILT.DLL,$(WinSysPathSysFile),,,7/22/02 8:05:04 PM,143632,2.40.4518.0
File5=@OLEPRO32.DLL,$(WinSysPathSysFile),$(DLLSelfRegister),,7/22/02 8:05:04 PM,164112,5.0.4518.0
File6=@OLEAUT32.DLL,$(WinSysPathSysFile),$(DLLSelfRegister),,7/22/02 8:05:04 PM,626960,2.40.4518.0
File7=@msvbvm60.dll,$(WinSysPathSysFile),$(DLLSelfRegister),,5/27/00 1:10:18 AM,1388544,6.0.88.77

am i doing something wrong?

thanks

Avatar of spongiespongie🇵🇭

Yup. you're only installing vb runtime files not the actual files you need to run your program.  Look at your setup.lst again.  Look for the files in [setup1] section.  You should translate and include them as well in the inno setup compiler. Place them in the [files] section in inno setup.

im just running through it! almost finished

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


spongie,

almost there i think
but is there a way to convert the Inno_Script.iss into an  executable that i can just click on and it will install - starting at the
"This will install application1. do you wish to continue message box?"
rather than running the compiler and selecting the .iss and then pressing the run button.  


thanks very much

Avatar of spongiespongie🇵🇭

hmmm...as far as i know there's no such feature but there are other add-on tools for inno setup that are likewise available for download for free.  Check out the website again :>

hey spongie!!
isetup compiler is giving this error:
"unrecognized parameter name: "regserver;Copymode"

my script looks like this:

Source: "D:\AGMver2.2.70\Support\imgedit.ocx"; DestDir: "{sys}"; Flags: restartreplace
uninsneveruninstall regserver; CopyMode: alwaysskipifsameorolder;
Source: "D:\AGMver2.2.70\Support\Vb5ext.olb"; DestDir: "{sys}"; Flags: restartreplace
uninsneveruninstall sharedfile; CopyMode: alwaysskipifsameorolder;
.
.
.

is there any problem in syntax??

pls reply asap..

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


hi!
found the fix for the last question..
simply had to rearrange *copymode* so tht it comes after source.

compiler runs fine & makes a setup.
but,while i run the installation...i get following error:

*Unable to register DLL/OCX:DllRegisterServer export not found.
  Click Retry to try again, Ignore to proceed anyway (not recommended),or
  Abort to cancel the installation*

i hav abt 58 dlls/ocx/vb sys files in all. am getting this error for abt 9 dlls.

if i ignore n proceed, the application is up...
but gives *Runtime error '339' : Component 'crystl32.ocx' or one of its dependencies not
correctly registered: a file is necessary or invalid*

wot shud i do to register all my dlls without fail during the installation itself??

pls reply asap...

thnx

Avatar of spongiespongie🇵🇭

Hi cocosteel. Or is it Ganga? Anyway, here's the line I use with .dll and .ocx


Source: "D:\AGMver2.2.70\Support\myDLL.dll"; DestDir: "{sys}";flags:regserver sharedfile


hi spongie!
thnx for evthing...
learnt lotsa things from this thread.

wud u suggest what needs to be done to
deploy a vb6 app on win xp machine??
app is developed on win nt 4.0

regards,
ganga

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


hey spongie

heres 200 points available for an INNO setup question - you helped me last time.

https://www.experts-exchange.com/questions/20732165/Inno-set-up-for-VB6.html
Visual Basic Classic

Visual Basic Classic

--

Questions

--

Followers

Top Experts

Visual Basic is Microsoft’s event-driven programming language and integrated development environment (IDE) for its Component Object Model (COM) programming model. It is relatively easy to learn and use because of its graphical development features and BASIC heritage. It has been replaced with VB.NET, and is very similar to VBA (Visual Basic for Applications), the programming language for the Microsoft Office product line.