Solved

SETUP

Posted on 1998-06-19
13
277 Views
Last Modified: 2013-11-14
Maybe you can help me.
I'm trying to use the vb 4.0 setup kit but it needs a command line and don't know what is this command line can you help me. And how does this work?
first i use the setup wizard and then i replace the setup.exe?
Please i'm desperate.
0
Comment
Question by:rutexavier
  • 5
  • 4
  • 2
  • +2
13 Comments
 
LVL 6

Expert Comment

by:clifABB
ID: 1463819
The setup project actually creates an executable it will call Setup1.exe.  Setup.exe which is written in C++ will call setup1 during the install procedure passing it information it needs to complete the procedure.
This information includes:
for 16-bit:
  The source directory
for 32-bit (separated only by spaces):
  The source directory
  The name/path of the logfile
  The name/path of the app removal executable

Basically, if you have modified Setup1, you need to have it create an executable called Setup1.exe.  Then use the Setup Wizard to put it all together.
0
 
LVL 9

Expert Comment

by:Dalin
ID: 1463820
You select "Application Setup Wizzard", and then select the project you want to make the setup, and then click next...
0
 

Author Comment

by:rutexavier
ID: 1463821
Ok, but i didn't understand your answer.
Suppose i have a vb project named xpto i create the xpto.exe
Now i use the setup wizard to create the distribution files and put them in c:\temp, but i want to ask the user for the serial number of the aplication. So what must i do?
open the setup1.vbp and add all i want and then what must be the command line to setup1.exe???????????????
And how can i put all together in the setup wizard??????????
0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
LVL 9

Expert Comment

by:Dalin
ID: 1463822
hope clif will be back soon.
I will check back in about a hour...
0
 

Author Comment

by:rutexavier
ID: 1463823
Dalin you didn't answer to my problem
0
 

Author Comment

by:rutexavier
ID: 1463824
I think you are in the way aswer to the rest and i'll give you Excelent
0
 
LVL 6

Expert Comment

by:clifABB
ID: 1463825
As you have figured out, you would edit setup1 and put the request for the serial number there, then recompile to Setup1.exe.

After you do that, run setup wizard and follow the instructions.  When setup wizard is done, you will have what you want.

I doubt if you want to hear this, but a better alternative might be to purchase a better install engine such as InstallShield Express.  It allows you to run an application (such as a serial number verifier) from within the install.
0
 

Author Comment

by:rutexavier
ID: 1463826
I already posted a new mail
0
 

Author Comment

by:rutexavier
ID: 1463827
clifAB i think you are in the right way!!!!
0
 
LVL 6

Expert Comment

by:clifABB
ID: 1463828
rutexavier:
Do you mean I should repost as an answer, or do you mean I'm leading you in the right direction?
0
 

Expert Comment

by:TpB
ID: 1463829
I hope this helps

Programmer's Guide
Chapter 30: Distributing Your Application.
pg 713.

All setup.exe does is call setup1.exe, and depending if 32 or 16 bit does a few simple basics.

You will find all of the needed information, including the command lines that the Setup.exe sends when running setup1.exe.

You will also find all of the information for editing you install files.

I am not sure if all version of VB came with this information, I have the enterprise edition. If you find the information missing, or can't find it let me know.
0
 
LVL 4

Accepted Solution

by:
zsi earned 100 total points
ID: 1463830
rutexavier,

Edit the setup1 project found in setupkit\setup1.

In frmSetup1.frm, in the form_load event, enter in your code to get the registration number.

Add your code after the line that refers to "ShowWelcomeForm".

This will display your registration dialog after the Welcome screen.  Of course, if you want to display your registration dialog at some other time, you just insert your code at the appropriate point.  

You'll find the code is well commented and even gives some suggestions for further improvements (e.g. options dialog).

If your registration fails, make sure that you call      "Goto ExitSetup".  This will clean up the installation program properly.

Hope this helps
zsi

0
 
LVL 6

Expert Comment

by:clifABB
ID: 1463831
zsi:
That's not entirely fair without a response from rutexavier on my last post.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question