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!

NigelShaw
Posts: 58
Joined: Wed Apr 01, 2015 12:45 am

Excel & PIA

Hi

How can i add a set of radio buttons that when clicked, would determine the PIA to be installed for excel? I would like to put 3 radio buttons on my custom dialog that i added as a prompt.

Problem
My application does a lot of Excel interaction. As i can only install 1 version of the Interop, i can only connect to one version of Excel. To circumvent this, i changed my Com reference and created the excel as an object at runtime. All was ok until i installed onto a machine with Excel 2007. Now i get an interop error.

I figured that i could search to see what excel version existing or make the user select the excel version they have installed. My preference would be to auto find it and notify the user during install in a text box field.

How could i achieve this? I am very new to Advanced Installer but a quick learner :)

i think i need prerequisites and a seach but how to set them correctly, i dont know yet



Thanks

Nigel
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Excel & PIA

Hi Nigel,

Considering the implications of installing PIAs, our team decided to add the PIAs as open site predefined prerequisites as a generic solution. The detection is performed automatically, but they can only be installed from a dialog box before the main installation and not from a dialog box during the installation like you mentioned.

To add the predefined PIA prerequisites just go to Prerequisites page and select them from the Packages list.

Some pointers if you decide to go a custom way:
- to detect the Office version on the target machine you can add a predefined search from the Search page
- prerequisites are installed based on install conditions as described in the Professional tutorial

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”