Problem with file association and mixed mode installer - Advanced Installer Community
user88
Posts: 4
Joined: Thu Mar 30, 2017 7:10 pm

Problem with file association and mixed mode installer

Hi,

I am using Advanced Installer 11.6.3 (although I've tested on 13.x trial, too). I'm using a mixed mode installer, and I'm using http://www.advancedinstaller.com/forums ... 0&start=15 as a guide. When I create the second extension, it pops up a message saying the verb is erased and the existing one is used (or something like this), but both .ext entries are there with the 32-bit and 64-bit exe's, respectively.

However, when I go to install my application, the 32-bit installer complains that the 64-bit component is not available. Is there anything more I need to do to make this work properly?

Thanks!
user88
Posts: 4
Joined: Thu Mar 30, 2017 7:10 pm

Re: Problem with file association and mixed mode installer

Here is the install log when I try to install on a 32-bit Windows 7 machine:

MSI (c) (70:F8) [21:20:58:454]: Doing action: CostInitialize
Action 21:20:58: CostInitialize. Computing space requirements
Action start 21:20:58: CostInitialize.
MSI (c) (70:F8) [21:20:58:464]: Machine policy value 'MaxPatchCacheSize' is 10
MSI (c) (70:F8) [21:20:58:464]: PROPERTY CHANGE: Adding ROOTDRIVE property. Its value is 'C:\'.
MSI (c) (70:F8) [21:20:58:474]: PROPERTY CHANGE: Adding CostingComplete property. Its value is '0'.
Action ended 21:20:58: CostInitialize. Return value 1.
MSI (c) (70:F8) [21:20:58:484]: Doing action: FileCost
Action 21:20:58: FileCost. Computing space requirements
Action start 21:20:58: FileCost.
MSI (c) (70:F8) [21:20:58:484]: Note: 1: 2205 2: 3: MsiAssembly
MSI (c) (70:F8) [21:20:58:484]: Note: 1: 2262 2: Class 3: -2147287038
MSI (c) (70:F8) [21:20:58:484]: Note: 1: 2709 2: myapp.exe_1
Error 2709. The specified Component name ('myapp.exe_1') not found in Component table.
MSI (c) (70:F8) [21:21:04:541]: Product: MYAPP -- Error 2709. The specified Component name ('myapp.exe_1') not found in Component table.

Action ended 21:21:04: FileCost. Return value 3.

----------------------------------------------

myapp.exe_1 is the 64-bit exe, myapp.exe is the 32-bit exe

----------------------------------------------
user88
Posts: 4
Joined: Thu Mar 30, 2017 7:10 pm

Re: Problem with file association and mixed mode installer

Here are some pieces of the aip file that seem relevant (I'd rather not upload the whole aip file in public):

<COMPONENT cid="caphyon.advinst.msicomp.MsiVerbComponent">
<ROW Extension_="ext" Component_="myapp.exe" Verb="open" Sequence="0" Command="&Open" Argument=""%1""/>
</COMPONENT>

<COMPONENT cid="caphyon.advinst.msicomp.MsiProgIdComponent">
<ROW ProgId="[|Manufacturer].[|ProductName].cmm" Description="" Icon_="ext.exe"/>
<ROW ProgId="[|Manufacturer].[|ProductName].inc" Description="" Icon_="ext_2.exe"/>
<ROW ProgId="[|Manufacturer].[|ProductName].mou" Description="" Icon_="ext_1.exe"/>
<ROW ProgId="[|Manufacturer].[|ProductName].run" Description="" Icon_="ext_5.exe"/>
<ROW ProgId="[|Manufacturer].[|ProductName].sat" Description="" Icon_="ext_8.exe"/>
<ROW ProgId="[|Manufacturer].[|ProductName].snr" Description="" Icon_="ext_3.exe"/>
<ROW ProgId="[|Manufacturer].[|ProductName].srt" Description="" Icon_="ext_7.exe"/>
<ROW ProgId="[|Manufacturer].[|ProductName].ext" Description="" Icon_="ext_6.exe"/>
<ROW ProgId="[|Manufacturer].[|ProductName].wpn" Description="" Icon_="ext_4.exe"/>
</COMPONENT>

<COMPONENT cid="caphyon.advinst.msicomp.MsiExtComponent">
<ROW Extension="ext" Component_="myapp.exe" ProgId_="[|Manufacturer].[|ProductName].ext" Feature_="MYAPP" Options="32"/>
<ROW Extension="ext" Component_="myapp.exe_1" ProgId_="[|Manufacturer].[|ProductName].ext" Feature_="MYAPP"/>
</COMPONENT>
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Problem with file association and mixed mode installer

Hello and welcome to our forums,

I'm not sure why do you get this error. Can you please send us the .AIP (project file) and a full verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

If you cannot share with us your project file, then you can try to isolate the behavior in a buildable sample (.aip + its referenced files) which we can build and test on our side.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Problem with file association and mixed mode installer

Hello,

Thank you for the sent files. We further investigated this and it seems this happens due to an Advanced Installer issue. When using a mixed mode package type with two extension with the same name (one for a 32-bit app and one for the 64-bit app) we incorrectly include a reference of the 64-app component in the 32-bit MSI installation database. This is an Advanced Installer issue which replicates only if you move the app components (the 32 and the 64-bit ones) under different features than the default created ones (32-bit and 64-bit) by our mixed package type wizard.. A fix will be available in a future version of Advanced Installer, we will update this thread when the fix will be available.

Until then, as a workaround, you can proceed like this:

1. go to "File Associations" page and delete your existing extensions with the same name
2. go to "Install Parameters" page and run again the Mixed Package mode wizard; just click on the [...] button from the right side of the "Package Type" combo box
3. make sure the 64-bit file of your app EXE is added on "64-bit Executables and Libraries" screen and click [Next]
4. make sure the 32-bit file of your app EXE is added on "64-bit Executables and Libraries" screen and click [Next]
5. make sure that "Move all to per-platform features" and "Build separate install databases" options are selected and click [Finish]
6. go to "File Associations" page and create again the extensions
7. rebuild and test the setup package

Also please make sure that the 32 and the 64-bit version of your app components are not moved anymore in a new features. Just leave them in the default "32-bit" and "64-bit" features configured by Advanced Installer. Thank you for your understanding.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
user88
Posts: 4
Joined: Thu Mar 30, 2017 7:10 pm

Re: Problem with file association and mixed mode installer

Thank you!!

This fixed my problem. I've been pulling my hair out trying to get this to work with registry settings, this is just perfect.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Problem with file association and mixed mode installer

You're always welcome.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Problem with file association and mixed mode installer

Hello,

This was fixed in version 14.1 of Advanced Installer released on June 30th, 2017.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”