Solved

SETUP

Posted on 1998-06-19
13
274 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
 
LVL 9

Expert Comment

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

Author Comment

by:rutexavier
Comment Utility
Dalin you didn't answer to my problem
0
 

Author Comment

by:rutexavier
Comment Utility
I think you are in the way aswer to the rest and i'll give you Excelent
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 6

Expert Comment

by:clifABB
Comment Utility
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
Comment Utility
I already posted a new mail
0
 

Author Comment

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

Expert Comment

by:clifABB
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
zsi:
That's not entirely fair without a response from rutexavier on my last post.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

743 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now