Software Installer within the Advanced Installer - 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!

tehsquirly
Posts: 22
Joined: Fri Apr 20, 2007 4:16 am

Software Installer within the Advanced Installer

Hi,

I need some help.

Let's say I have a printer driver that has its own setup wizard (exe file), and I want the setup to go to that drivers installation wizard when you click that driver on the custom dialog. I'm guessing this would be done In 'custom actions' ? I tried messing around with it but wasn't able to get it working.

So I want them to choose the driver, then click install, then it will open up that drivers setup.exe within the installer and then when that is installed and closed it will return to the regular installer. I want to also be able to add drivers to the driver section, because some of the printers have exe's, and some only have manual installation files.


When I tried doing this myself and adding the files for the exe to the "files and folders", then adding the custom action for the setup.exe file, it would start launching the setup installation when I selected that file in Custom installation, but then while loading it would give this error -

Image

How could I do this?

Thanks,

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

Hi Riley,

Two MSI files cannot be executed at the same time. I think this is why you get that error. So you need to schedule that custom action under "InstallFinalize" ("Custom Actions" page) and use "Asynchronous execution, do not wait for return " as "Execution Properties".

But the custom action approach is not recommended. My recommendation to install other application with your package is by using prerequisites:
http://www.advancedinstaller.com/user-g ... tware.html

On how to install a driver with Advanced Installer please see (or you can use the "Driver" wizard from "Wizards" main menu):
http://www.advancedinstaller.com/user-g ... ivers.html

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
tehsquirly
Posts: 22
Joined: Fri Apr 20, 2007 4:16 am

Hi Gigi,

Thanks for the reply. I got it to the point where it somewhat works. I have it setup so there is 2 different drivers and they are under different orginization, so you could choose to install only 1 of them.

When you choose 1 of them from the Custom installer, and click next it will install, but then when it goes to open the .EXE, then it will open the exe for both printer drivers for some reason, instead of only the 1 driver. I don't understand why it does this. Here are screens of how I have it setup.

Image

Image

Image

I hope you can help me, if only both exe's didn't launch, I would be good to go.

Thanks,

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

Hi Riley,

You need to condition the execution of the custom actions with the features state. So use following "Execution Condition" for the first custom action:
(&FeatureId = 3) were "FeatureId" is the feature identifier.

Use similar condition for the second custom action.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
tehsquirly
Posts: 22
Joined: Fri Apr 20, 2007 4:16 am

Hi Gigi,

Thanks for your help so far. I got the .exe installations working now. But, I also want to add drivers that dont have installation files, it's just the INF and other files. So I go to "driver" and add the INF, but the thing is advanced installer only adds the INF file, not the other files that the INF needs. I don't know how to add the driver with the other files. Installer ends prematurely if I try installing with only the INF file, because it doesn't have the other files it needs. I tried adding the files manually to the files and folders directory that the INF was in, but that didn't help.

Here are some screens -

Image

Image

Image

Image

Image

Thanks for your help,

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

Hi Riley,

If the driver files are not detected by the wizard add them manually next to the .INF file in "Files and Folders" page. Also note that Advanced Installer uses Windows Driver Install Frameworks (DIFx), version 2.01, to install the drivers.

This framework is designed for installing Software First Install drivers. These are the drivers that come with your application, e.g. an antivirus filter for the network adapter. It is not recommended to use it for installing Hardware First Install type of drivers, e.g. a driver for your sound card.

If the problem persist please sent the INF file to support at advancedinstaller dot com so we can take a look.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
tehsquirly
Posts: 22
Joined: Fri Apr 20, 2007 4:16 am

Hi Gigi,

It is a hardware first install, because it is a printer. What do you suggest I do?

I think I got it working...what I did was tell the INF to link with the DLL file, so when I click install it shows a warning says a driver is going to be installed, so I think it is working but I can not test it because I don't have the printer plugged in.

Why isn't it recommended to use for Hardward First Install?

If it isn't recommended what kind of windows installer is recommended for that kind of installation.

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

Hi Riley,

It is not recommended using DIFx for MSI installers to install drivers for first installed hardware. You should use DPInst.

For more details please see:
http://www.microsoft.com/whdc/driver/in ... fault.mspx

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”