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!

kfrankham1984
Posts: 1
Joined: Tue Jan 24, 2006 12:19 pm

Help needed please

Hi

I am new to advanced installer, but have had a few succesful attempts of creating an msi.

I now face a more challenging install, and would like any helpful information before i start this project.

Basically my install needs to do the following;

First it needs to run a setup file to install a peice of software that we use.

Next it will install a visual foxpro front end that our software runs on

(Both of these files are .exe install files that have been created previously by the programmers of our software about 7 years ago)

The bits that I have no problem with are installing fonts into the windows fonts folder and creating the desktop and start menu shortcuts.

Ideally I would like to combine all the files that are installed in both of the .exe files and combine these into one install file that does the lot, along with fonts and shortcuts. The problem i have is that i dont know which files are installed by the 2 seperate .exe files, how can I find this out?

If i cant find out what files are installed by the 2 seperate .exe files, then the other way i would like to do the install is by making it launch each of the 2 .exe install files seperately via a custom action. I have tried this already, but it launches them both at the same time. Ideally i would like it to run the second .exe when installation of the first.exe is complete. How do i do this?

Finally, when the 2 installs have completed there are 2 more stages left to carry out.

A seperate .exe file needs to be copied over the top of the installed .exe file (An updated version of the software)

A group of files need to be copied from the installation cd to a folder on the machine the install is ran on, but these files need to be copied after the install has ran, as the files that need to be replaced are put onto the machine via the install in the first place.

Any help would be very much appreciated with this matter, and many thanks in advance.
Mihai
Posts: 38
Joined: Wed Mar 23, 2005 12:19 pm

Hi,


I would suggest the following scenario:

The 2 installation starts, one by one, before the installation of you main application.
The main installation begins and will install the files of your application.
The files that must be installed over some of the files installed before are placed in a folder that has as target a location that could be variable.

So, here how you can achieve that:

1. Add the 2 EXE, that installs that piece of software that you use and the Visual FoxPro front end, as prerequisites of your application. You can add a prerequisite to your application from "Media" > "Prerequisites" page by using the "New" button.

2. Add the files of your application in the "Application Folder" directory from the "Files and Folders" page.

3. The files that you want to install over those that has been installed by the 2 EXE must be added to a folder that has a certain location. You must set a property with the full path of the destination folder.

So, if that location is fixed (you know exactly that always will be: c:\..\somepath) then you can go in "Install Parameters" page and add a new property using the "New" button and set the value of the property to that fixed path.

Otherwise, if you don't know the exact location where the files are installed (maybe because the user is let to chose the installation folder in the two prerequisite installs) then you have to create a search for that folder. You can use the Search Wizard to create the search (use "Wizard">"Search..." menu item). The result of the search will be stored the property that you have specified in the wizard.

Whatever the method you must use, you will have a property that will contain the path of the folder that contains the files that must be overwritten. Now you can go i the "Files and Folders" page and create a new folder based on that property using: "New Folder">"Property Based" toolbar button. That is the folder in which, the files that will overwrite the already installed files, must be added.

[optional] If you have to use the Search Wizard, is a good idea to condition the component of the files from the property based folder. The condition should be exactly the property that you used in the Search Wizard. You can do that from "Organization" page.
Mihai Udrea
Advenced Installer Team

Return to “Common Problems”