Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Askings Questions in Package and Deployment Wizard 1

Status
Not open for further replies.

VBXL

Programmer
Jul 10, 2001
198
GB
How can you make a program ask question when you try to install it i.e

customer settings for the program

after using the Package and Deployment Wizard

Cheers

Xplain
 
You can only do this sort of thing in the program itself. So it would have to happen AFTER installation.

You could have an extra form "frmSettings" which is the first to load and asks all neccessary questions. Then it could update a registry setting (maybe FirstRun="NO").

When your app runs you must check this setting and only load the "frmSettings" form if the registry entry First run is not "No" or doesn't exist.

If you must ask the use for input before/during installation you'll have to use something better than the deployment wizard that comes with VB.
 

The source code for the setup program can be found in C:\Program Files\Microsoft Visual Studio\VB98\Wizards\PDWizard\Setup1 (or similar). you can modify this to include additional setup functions, compile it and put the setup1.exe file into the C:\Program Files\Microsoft Visual Studio\VB98\Wizards\PDWizard folder. the package and deployment wizard will use this version of the setup1.exe program during the install process.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top