Drivers and 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!

dmcminn_mwd
Posts: 3
Joined: Tue Jun 02, 2009 4:19 pm

Drivers and prerequisites

Hi,

I am currently evaluating Advanced Installer (7.0.1) and I have a couple of questions:

1) I use a custom package name so that it is displayed as "[Manufacturer] [ProductName]" in the add/remove programs list, otherwise it is added as "[ProductName]". This is OK, but when I install a set of drivers they have a reference to only the [ProductName], so that if I go to uninstall the drivers then I get the standard warning to say "This driver is associated with [ProductName] are you sure you want to uninstall?".

I think this should be the custom product name, should it not? Because I get the warning even if I have uninstalled my product first, and it should only be shown if my product is still installed.

2) I am trying to build a CD package for our product, so I would like to include the software prerequisites that might not be installed. When I setup a software prerequisite (Windows Installer 4.5 for Vista x86), I would like it to be "File in package" and in a sub-folder in my final installation ("Prerequisites"), so that I have the following structure:

Code: Select all

Install package root
+- setup.exe
+- my product.msi
\- Prerequisites (DIR)
   \- Windows6.0-KB942288-v2-x86.msu
When I build my package the file is downloaded correctly, but then I get the following error:
error.
Exception - Reason: Could not copy file from 'C:\Documents and Settings\All Users\Application Data\Caphyon\Advanced Installer\Windows6.0-KB942288-v2-x86.msu' to 'C:\AdvancedInstallerProjects\dEMon-NoVA\DefaultBuild\Prerequisites\<Windows6.0-KB942288-v2-x86.msu>'.

Build finished because an error was encountered.
The file is copied OK if I browse for the file manually and add it, rather than leaving it to be downloaded. However, is this a bug and are there any plans to fix it?

Thank you.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Drivers and prerequisites

Hi,

Thank you for your interest in Advanced Installer.
when I install a set of drivers they have a reference to only the [ProductName], so that if I go to uninstall the drivers then I get the standard warning to say "This driver is associated with [ProductName] are you sure you want to uninstall?".
Please note that the "Custom name" field in the "Add/Remove (Control Panel)" section of the "Product Details" page represents only the name shown in the "Add or Remove Programs" Control Panel applet. The package still uses its Product Name internally, so the behavior you are encountering is normal.
I get the warning even if I have uninstalled my product first, and it should only be shown if my product is still installed.
I'm not sure why you are encountering this behavior. Isn't the driver uninstalled by your package? If not, did you configure it this way or the package is not working correctly?
When I build my package the file is downloaded correctly, but then I get the following error:
This behavior is caused by a bug in Advanced Installer. Thank you for bringing this to our attention. A bugfix will be included in the next version. Until then, a workaround is to specify the path of the prerequisite installer manually.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dmcminn_mwd
Posts: 3
Joined: Tue Jun 02, 2009 4:19 pm

Re: Drivers and prerequisites

Hi cosmin,
cosmin wrote:
when I install a set of drivers they have a reference to only the [ProductName], so that if I go to uninstall the drivers then I get the standard warning to say "This driver is associated with [ProductName] are you sure you want to uninstall?".
Please note that the "Custom name" field in the "Add/Remove (Control Panel)" section of the "Product Details" page represents only the name shown in the "Add or Remove Programs" Control Panel applet. The package still uses its Product Name internally, so the behavior you are encountering is normal.
OK, thanks.
cosmin wrote:
I get the warning even if I have uninstalled my product first, and it should only be shown if my product is still installed.
I'm not sure why you are encountering this behavior. Isn't the driver uninstalled by your package? If not, did you configure it this way or the package is not working correctly?
I configured it to not uninstall with the main package (I am trying to re-create an existing installation package using Advanced Installer to see how well it compares), as we have a couple of products that use the same drivers. The drivers are in the form of an MSM that I include in the package (so the same drivers can be shared and registered against both products), but it could be a difference in the version of DIFx between our old package and the one used in AI.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Drivers and prerequisites

Hi,

If the drivers are not uninstalled with the package which installs them, they are still linked to the product. A solution would be to install the drivers only if they are not installed. This way, if the drivers are already installed on the machine you can use the existing ones.

You can try detecting the driver by using a search. The property of this search can then be used by a conditional install level for the feature of the merge module with the drivers.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dmcminn_mwd
Posts: 3
Joined: Tue Jun 02, 2009 4:19 pm

Re: Drivers and prerequisites

Hi Cosmin,

Thanks, I'll give that a try.

Return to “Common Problems”