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!

Ampfing

Run other install-routines in setup.exe

Hello together,

I've got the following problem:
In order to run a VB.NET programm I need to install two other programms first (both have their own setup.exe) and register a DLL with windows. Now I would like to create one setup.exe that installs the two programms, registers the DLL (MSCommLib) and then copies my programm to a user specified folder.
How do I achieve this???
The copying of my programm is the least problem...
Also creating a shortcut to the programm in the startmenu is allright. But how do I tell Advanceinstaller to run the setup-files of the other two programms (and is it possible to register the DLL with the command regsvr32 instead of creating a registry key as I don't know which key has to be created and where...)?

Thanks in advance for any help
Mike
Posts: 292
Joined: Wed Jun 01, 2005 10:50 am
Location: Craiova, Romania
Contact: Website

Hi ,

In order to run the setup of the other two applications, you can use the "Prerequisites" feature.
Go to the "Media" page -> "Prerequisites" tab and use the <Add> button to add your setup files.

An easy way to register a DLL is by right-clicking on it and selecting "Properties". In the "Properties" tab you can enable the "Auto Register File" check-box. The drawback is that Microsoft recommends using registration through the registry, because if something goes wrong during installation this cannot be undone during rollback.

If you want to use "regsvr32.exe" you have to use a custom action. Go to the "Custom action" tab, right-click on the "Commit" section and select "New Attached Custom Action". In the dialog that opens select the "regsvr32.exe" file.
For the "Command Line" field use the <Edit> button to select the DLL that you have included in the package. Use quotes in case the path might contain spaces. Your command line should be something like "[#MSCommLib.dll]" (quotation marks included).

All the best,
Mihai
Mihai Bobaru
Advanced Installer Team
http://www.advancedinstaller.com
Ampfing

Thank you very much

Hi Mihai,

thanks a lot for your help!
It works now and I'm really happy about that :-)

Have a nice day

Return to “Common Problems”