skipau
Posts: 31
Joined: Mon Feb 22, 2010 5:12 am

Chained installers and elevated rights

Hi there. I am using Advanced installer 9.2 Enterprise edition.

I am currently creating an installer where I am including an MSI as a chained package. This MSI requires elevated rights as does the main MSI that I am chaining it to.

If I run the installer it will prompt for elevated rights and then start installing my product, then the chained MSI starts and runs but then I get an error with it as it can't register a dll (due to rights).

If I run the MSI that I have chained separately it prompts for elevation and it works fine.

So my thinking is that the either there is something I need to do to make the chained msi run with elevated rights... or the chained msi doesn't run with elevated rights...

Tried searching the net and here but not coming up with anything... Anyone please give me any advice here?

thanks!
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Chained installers and elevated rights

Hello,

I've tested your scenario, but I wasn't able to reproduce the behavior. During install, the chained MSI requires elevation separately from the main package installer and everything runs fine. Here are attached the samples which I've tested.
MainSample.aip
(12.5 KiB) Downloaded 583 times
ChainedSample.aip
(11.06 KiB) Downloaded 582 times

Can you reproduce this behavior on multiple clean machines? If so, can you please send us the verbose logs of both, the main installation and the chained MSI installation package, to support at advancedinstaller dot com so we can investigate?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
skipau
Posts: 31
Joined: Mon Feb 22, 2010 5:12 am

Re: Chained installers and elevated rights

Thank Daniel for that.

Running your examples worked as expected with the chained msi prompting for elevation when called form the master msi.

It seems to be something particular with the Crystal Reports 2008 runtime when chained that it doesn't ask for elevation.

to work around it I wrapped the msi in an exe and then added it as a Post-install package and included it in the master msi - now the exe asks for rights.. bit messy.. cause I then can't get it to use quiet install. but seems to work.

you think that is a valid work around?

thanks for your assistance on it!
Bogdan
Posts: 2794
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Chained installers and elevated rights

Can you give us a download a link for the MSI package of Crystal Reports 2008 runtime that you are using, so we can make some tests?

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
skipau
Posts: 31
Joined: Mon Feb 22, 2010 5:12 am

Re: Chained installers and elevated rights

I can't seem to find a link on the net ... with the change over from Business Objects to SAP its hard to find any links on the SAP site now - I will send it through to the support email. Thanks!
Bogdan
Posts: 2794
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Chained installers and elevated rights

Another better option would be to use merge modules to integrate the runtime in your package. I assume SAP would provide this type of resources too.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”