Newbie questions-Prerequisites - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

RMittelman
Posts: 4
Joined: Wed Jan 10, 2007 11:56 pm

Newbie questions-Prerequisites

Hi, I have some simple questions. I mainly program in VB6.

If I need a particular version of ADO (for example 2.7), and I have the MDAC-Typ file needed, how do I check for the prerequisite, and how do I have it installed? I can supply a given version of the install with my setup, but don't want it installed unless necessary, and don't want them to download the install.

What about the various files needed by VB6 to run? Do I have to add them all to each project, or can I somehow define a prerequisite for the whole group? Do I put them in a separate cab file?

How do I mark a file to not be removed if they uninstall my app?

What's the difference between registering or self-registering an included DLL?

Thanks...

RMittelman
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
If I need a particular version of ADO (for example 2.7), and I have the MDAC-Typ file needed, how do I check for the prerequisite, and how do I have it installed?
This can be easily achieved using prerequisites. As for the prerequisite condition you can use a versioned file that is installed with ADO. For more details about how to use prerequisites please see:
http://www.advancedinstaller.com/user-g ... tware.html
What about the various files needed by VB6 to run? Do I have to add them all to each project, or can I somehow define a prerequisite for the whole group? Do I put them in a separate cab file?
If you application needs VB6 to be installed prior to run then add is as prerequisites for you package. To do this switch to "Prerequisites" page, "Software" tab and choose "Add->Visual Basic 6 Runtime".
How do I mark a file to not be removed if they uninstall my app?
To avoid a file beeping removed mark the associated component in the "Organization" page as "Permanent".
What's the difference between registering or self-registering an included DLL?
For more details about this and on how to register a file with your package please see:
http://www.advancedinstaller.com/user-g ... ialog.html

Best Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
RMittelman
Posts: 4
Joined: Wed Jan 10, 2007 11:56 pm

Newbie questions redux

Thanks so much for the quick reply. I must say that I am having trouble finding the settings you have referred to in your reply. I see no prerequisites-software tab. I see no bootstrapper page. Is this because I am using the free version? If so, I guess I have to try a professional project rather than a simple project. Please advise. If so, I hope the 30 day evaluation scheme is based on 30 actual days of use, rather than when I first downloaded and opened this program up.

Anyway, assuming I get past that issue, here are some followup questions:

On the ADO question: Say I want the user to have ADO 2.7 SP1 Refresh. I set up a prerequisite for the file Msado15.dll, version 2.71.9030.0. If the user already has that version or later, nothing happens. If not, I specify the particular install file, MDAC_TYP.exe. Should I include that particular exe on my install CD, in a separate CAB file, or in the single CAB file, either seperate from or included in my setup.exe, or as a stand-alone exe on the CD? Also, I didn't see anything on the page you directed me to about how to check for the particular version of the file you need.

On the VB6 question: Even though a VB6 program needs several files in order to run, are you saying I need to check for one particular file, for example VBRUN.dll, with the appropriate version number (don't know that right now, but I will get it)? Do I have to include these 4 or 5 files individually in each and every setup project I make? Or do I build a simple VB6 Prerequisite setup.exe project, and include that in my install CD? Same questions about cab files as above topic would apply.

Is there a quick resource you can point me to which would help me evaluate whether to use a bundled EXE or separate CAB file or several CAB files, one for each category of files I may need to install?

Thanks again for your quick response...
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

In order to use "Prerequisites" you need to create a "Professional" type of project. In the trial period all features are enabled, after that you need to purchase a license of Advanced Installer to continue using them.
Should I include that particular exe on my install CD, in a separate CAB file, or in the single CAB file, either seperate from or included in my setup.exe, or as a stand-alone exe on the CD?
No prerequisites are not include in CAB files, they are include in the EXE file if you choose "File In Package" as location for your prerequisite. For more details please see:
http://www.advancedinstaller.com/user-g ... rties.html

You can specify a condition for the prerequisite in the "Install Conditions" page:
http://www.advancedinstaller.com/user-g ... tions.html

Advanced Installer has VB6 as common prerequisite. For common prerequisite the "Install Conditions" are automatically added by Advanced Installer.
Is there a quick resource you can point me to which would help me evaluate whether to use a bundled EXE or separate CAB file or several CAB files, one for each category of files I may need to install?
All those settings can be made in the "Media" page:
http://www.advancedinstaller.com/user-guide/media.html

Please let me know if you encounter any problem.

Best Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
RMittelman
Posts: 4
Joined: Wed Jan 10, 2007 11:56 pm

Hi, thanks for the reply. This all seems to work once I changed my project type to Professional. Thankfully, my 30 day clock only started now, even though I installed the program weeks ago.

I found and downloaded the latest VB Runtime file, vbrun60sp6.exe, and located the exact version, 6.0.97.82, on the MS web site, which I entered in the "Install Conditions" tab. So far so good. I chose "File in Package", so I expected it to end up in the cab/msi file, but when I built the project, it ended up in the designated project folder as a seperate file. Is this OK?

I guess that I need to burn all files from my project folder (in this case, Setup.exe, Setup.ini, vbrun60sp6.exe, MyProject.aip and MyProject.msi) to the root of an install CD, right? Then the setup will find the prerequisite install and run it from there?

Finally: I use an Autorun.inf file (which mentions "Setup.exe" and "MyProject.ico") in my installs. I always copy the inf & ico files to the destination project folder, then burn everything to the CD. So, the question is: Using AI, can I include these files but specify for each "don't include in MSI/CAB, simply copy this file to the project folder"? That would make life VERY easy. If not, I have to continue copying them manually.

Thanks...
RMittelman
Posts: 4
Joined: Wed Jan 10, 2007 11:56 pm

I noticed that the Setup.exe which AI created already has the icon which belongs to my project exe, so I guess I don't need the icon seperately in the install CD, as I can tell the Autorun.inf "Icon=.\Setup.exe" and that should work. Will Setup.exe created by AI ALWAYS have the icon from the project exe, or is this a setting I must set each time? So I only need to know if AI can copy a file to the project folder without including it in the msi. Thanks...
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
So far so good. I chose "File in Package", so I expected it to end up in the cab/msi file, but when I built the project, it ended up in the designated project folder as a seperate file. Is this OK?
This is depending on what option you use in the "Media" page, "Bootstrapper" tab "Leave install files outside" or "Include install files in EXE".
I guess that I need to burn all files from my project folder (in this case, Setup.exe, Setup.ini, vbrun60sp6.exe, MyProject.aip and MyProject.msi) to the root of an install CD, right? Then the setup will find the prerequisite install and run it from there?
MyProject.aip is the Advanced Installer project and you don't need to include it on the CD.
Using AI, can I include these files but specify for each "don't include in MSI/CAB, simply copy this file to the project folder"?
I'm afraid that this is not supported but we already have the autorun feature on our TODO list and will be available in a future version. Until then you need to manually create the autorun.inf files in the project folder.
I noticed that the Setup.exe which AI created already has the icon which belongs to my project exe, so I guess I don't need the icon seperately in the install CD, as I can tell the Autorun.inf "Icon=.\Setup.exe" and that should work. Will Setup.exe created by AI ALWAYS have the icon from the project exe, or is this a setting I must set each time?
The icon for the EXE bootstrapper can be set in the "Media" page, "Bootstrapper" tab. And you can use it in the autorun.inf file like this:

Code: Select all

[autorun]
open=package.exe
icon=package.exe
Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”