Feature-based prerequisites are not installed - Advanced Installer Community
wilson
Posts: 4
Joined: Tue Nov 18, 2014 8:40 am

Feature-based prerequisites are not installed

I have build a msi package with a couple of feature-based prerequisites. I choose the prerequisites from pre-defined prerequisites - imported from visual studio. After build the project and run msi, I can see the window where shows the list of prerequisites (I can't untick, both are disabled, nothing under installed or found column and all shows 'must install'), then I click next to run the installation. But after installation finishes without any error, I can't see those prerequisites are installed. Can you please advise what could be the problem?

I am attaching a couple of screenshots as well as the project file for your reference.
Attachments
setup.aip
project file
(654.2 KiB) Downloaded 200 times
Untitled.png
Untitled.png (34.76 KiB) Viewed 3582 times
wilson
Posts: 4
Joined: Tue Nov 18, 2014 8:40 am

Re: Feature-based prerequisites are not installed

can anyone please help urgently as we are due to have a public release tomorrow.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Feature-based prerequisites are not installed

Hi and welcome to Advanced Installer forums.

Your "feature-based" prerequisites are not installed because they do not have the necessary permissions. As long as they are set to be installed silently (through their command line: /q /norestart), the UAC will not prompt when their installation starts and not being elevated, they will fail.

In order to launch them with elevation, you can set the main package to be elevated from the beginning by selecting the "Run as administrator" option from the "Install Parameters" page. In this case the prerequisite will inherit the mains' package rights.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
wilson
Posts: 4
Joined: Tue Nov 18, 2014 8:40 am

Re: Feature-based prerequisites are not installed

Thanks. Now I have some progress. However I encountered another issue when try to install VSTO (visual studio runtime toolds for office). Basically when i tried to install prerequisite, i got an error 'system can't find file specified'. I am not sure where the installer is trying to retrieve the file. In the setup files tab, i selected 'use file from disk' and the URL is the path where the package sits, that path only exists on my build machine. If installer is trying to locate file from that path, then definitely the file is not there on client's machine. I have attached screenshot of the error and project file for your investigation.
Attachments
setup.aip
project
(662.7 KiB) Downloaded 255 times
Prerequisite error
Prerequisite error
error.png (17.62 KiB) Viewed 3537 times
wilson
Posts: 4
Joined: Tue Nov 18, 2014 8:40 am

Re: Feature-based prerequisites are not installed

Can anyone help please?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Feature-based prerequisites are not installed

Hi,

I apologize for the delayed reply.

The path specified in the "Setup Files" tab is verified when the package is built. The prerequisite is taken from that path and included in the built package or copied next to the built package (depending on the package type selected in the "Media" page).

Your package type is set to "EXE Setup with resources next to it" in the "Media" page, so please make sure that all the necessary resources, including the prerequisite packages, are found next to the installer package when you try to install it.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”