[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 152
  • Last Modified:

SETUP

 I have two versions of a program one for 14 and 15 inch monitors and one for 17 and larger. Using the SETUP program that comes will VB4 16 bit, can I let the user choose from within the setup program which version to install, or what is my best option & how do I pull it off?
0
ralphy
Asked:
ralphy
  • 3
  • 2
1 Solution
 
gwambCommented:
U can customize your Setup.

Source code for Setup1.exe is located on install CD.
0
 
moterkCommented:
If you do not want to modify your setup app then you can do the following.  Create a separate setup for each version and then write a small app that prompts the users for the version they want.  Then have that small app launch the appropriate setup.

Or many comertial setup creation apps will allow you to do this with one setup.  So if you plan to have a lot of apps that will install differently on different machines, you should concider investing in a comertial setup app.
0
 
ralphyAuthor Commented:
I found the place in frmsetup1- form_load
right below "showbeginform"
where it says
'this would be a good place to display an option dialog, etc.
I want the user to pick one of two xxxxx.ex_ files, all other files in the setup proceedure are the same.
To reiterate my original question HOW do I pull it off?
Thanks Guys
Ralphy
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
gwambCommented:
There are two steps how to customize your setup1.

1) Look into Setup.lst file. This will be generated by Setup wizard. In this file is section [Files]. All files from this section will be installed by default.
Create other section. E.g. [Screen1] and [Screen2]. In section [Screen1] insert files for 14 and 15 monitors and in section [Screen2] files for 17 monitors.

2) Edit frmSetup1.frm.
Create variable e.g. b15Monitor as Boolean. If this variable is True, than this installation is for 14 and 15 monitor.
Create option dialog in which user check type of installation.

----

In source code find "CalcDiskSpace gstrINI_FILES".
After this line insert

if b15Monitor then
   CalcDiskSpace "Section1"
else
   CalcDiskSpace "Section2"
end if

----

Next find CopySection gstrINI_FILES

After this line insert

if b15Monitor then
   CopySection "Section1"
else
   CopySection "Section2"
end if

----

Create Setup1.exe. Then create Setup installation and try.
0
 
ralphyAuthor Commented:
qwamb:
     Thanks for your help. One more question how do I create the dialog box?
     Go ahead and lock the question and claim your points.
Thanks
Ralphy
0
 
gwambCommented:
Create normal form.
Open this form via Form.Show vbModal.
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now