Primary Interop Assembly Launch Condition fails - 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!

rho
Posts: 69
Joined: Tue May 12, 2009 1:22 pm

Primary Interop Assembly Launch Condition fails

Hi,

we have a lauchn condition which checks for Word 2007 Primary Interop Assemblies (PIA) being intalled. The check for this seems to be not working correctly, if PIA is installed, but not Word.
See attached screenshot for runtime behavior.
This is AI 8.8.1 enterprise.
Attachments
piaMissing.jpg
piaMissing.jpg (71.19 KiB) Viewed 8725 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Primary Interop Assembly Launch Condition fails

Hello,

If you have this setting in your project:
settings.jpg
settings.jpg (4.98 KiB) Viewed 8719 times
and the installed redistributable doesn't contain the PIAs for Microsoft Word 2007, please keep in mind this is expected behavior.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rho
Posts: 69
Joined: Tue May 12, 2009 1:22 pm

Re: Primary Interop Assembly Launch Condition fails

Hi,
yes, the checkbox in your screenshot causes the messagebox from my screenshot.
But as you can see from my screenshot, the PIAs are installed. I downloaded them from this link: http://www.microsoft.com/download/en/de ... x?id=18346 which states, that it contains the necessary files for Word, too.
If word is installed on the machine, too, everything works fine with this pia-package and the launch condition. It seems, as if word is being checked for existence, too.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Primary Interop Assembly Launch Condition fails

Hello,
This download works with the following Office program: 2007 Microsoft Office system
This is a quote from the link you provided. Why would you need to concern about machines that have Office Word PIA installed, but not Office Word? As mentioned in the article, a PIA is meant to work with a certain Office application and in your case that is Word.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rho
Posts: 69
Joined: Tue May 12, 2009 1:22 pm

Re: Primary Interop Assembly Launch Condition fails

For setup testing I don't care if Word is installed. It's enough if the PIAs are there.
If I'd want to check if Word is installed I'd use "Installed Office application" from Software Launch Condition.

As the PIA installs fine without Word being present (meaning, the PIA-setup doesn't check if Word is actually there), I'd assume, that "Installed Office 2007 PIA" checks for just this, not if Word is actually there. Can you tell me what checks are being executed?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Primary Interop Assembly Launch Condition fails

Hello,
Can you tell me what checks are being executed?
This is slightly complicated. The Microsoft Office PIA install package has conditions set for each component.
This means that it will install Word PIA only if Word is already present on the target machine. The condition is good, because there's no point for Word PIA if Word isn't already on the target machine.
However, the PIA installation package could be misleading as it appears installed in control panel ARP. Each component in the PIA installation package( e.g. Word PIA ) it's actually not installed if the associated Office product is not present on the target machine.

Our launch condition only searches for Word PIA, but that's actually not installed if Word wasn't present on the machine during PIA installation.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rho
Posts: 69
Joined: Tue May 12, 2009 1:22 pm

Re: Primary Interop Assembly Launch Condition fails

Thanks for clarification. I'll enforce my launch conditions. ;)
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Primary Interop Assembly Launch Condition fails

You're welcome, anytime.

Return to “Common Problems”