ViX designer file types

Add-in Express™ Support Service
That's what is more important than anything else

ViX designer file types
Creating file type using ViX designer 
Mads




Posts: 28
Joined: 2010-10-22
Hi

When building msi created with ViX designer I get "This component cannot be advertised because the KeyPath type disallows it". I have created the file type using the designer. The xml generated is below. What is the problem?

myprog.wxs
<ProgId Id="PROG" Advertise="yes" Icon="_86CB9055E163">
<Extension Id="myprog" />
</ProgId>

--
Mads
Posted 13 Aug, 2014 08:33:28 Top
Andrei Smolin


Add-in Express team


Posts: 14094
Joined: 2006-05-11
Hello Mads,

We reproduce this issue if we set KeyPath="no" in the code fragment below. Do you have this attribute set to "yes"?

      <Component Id="comp_B3838A52_381A_4E51_ABE5_B3BA163508C6" Guid="44456605-EF2E-4BC0-A5C1-82609A5396F8" Permanent="no" SharedDllRefCount="no" Transitive="no">
        <File Id="_D87702E2_B84E_44AF_AA93_48D175BDCF7F" DiskId="1" Hidden="no" ReadOnly="no" TrueType="no" System="no" Vital="yes" Name="test2.exe" Source="D:	est2.exe" KeyPath="yes" />
        <ProgId Id="PROG" Advertise="yes" Icon="_CCD699E65B9A">
          <Extension Id="myprog">
            <Verb Id="open" Command="&amp;Open" Argument="&quot;%1&quot;" Sequence="1" />
          </Extension>
        </ProgId>
      </Component>


Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 13 Aug, 2014 09:02:07 Top
Mads




Posts: 28
Joined: 2010-10-22
Hi

The value of KeyPath is "yes". If I change it to "no" and rebuild the project, VS reloads the file and the value is set back to "yes".

--
Mads
Posted 13 Aug, 2014 09:12:40 Top
Andrei Smolin


Add-in Express team


Posts: 14094
Joined: 2006-05-11
Posted 13 Aug, 2014 09:44:16 Top