ok, thanks for that...

Just in case that someone else happens to need to do the same thing:

           <Component Id="DependencyVisualizerComponent"
Guid="PUT-GUID-HERE">
             <File Name="DependencyVisualizer.exe"
Id="DependencyVisualizerExe"
                   Source="!(wix.SourceDir)DependencyVisualizer.exe"/>
             <RegistryKey Action="createAndRemoveOnUninstall" Root="HKCR"
                          Key="VisualStudio.Launcher.sln\Shell\Visualize">
               <RegistryValue Action="write" Value="Visualize Dependencies"
Type="string" />
               <RegistryKey Action="createAndRemoveOnUninstall"
Key="Command">
                 <RegistryValue Action="write" Type="string"
Value="&quot;[#DependencyVisualizerExe]&quot; &quot;%1&quot;"/>
               </RegistryKey>
             </RegistryKey>

             <!--
               This is how it should be done, if it would have worked..

               RobMen @ 13.2 -07:
               You probably can't use the standard WiX elements because
               those will cause your Component to take ownership of the
.sln extension
               (as you note, not something you want to do).  Instead,
you'll
               probably have to write a number of targeted registry keys.

             <Extension ContentType="text\plain" Id="sln">
               <Verb Id="Visualize" Command="Visualize dependencies"
                     TargetFile="DependencyVisualizerExe"
                     Argument='"%1"'/>
             </Extension>
             -->
           </Component>


On 2/13/07, Rob Mensching <[EMAIL PROTECTED]> wrote:

 You probably can't use the standard WiX elements because those will cause
your Component to take ownership of the .sln extension (as you note, not
something you want to do).  Instead, you'll probably have to write a number
of targeted registry keys.



*From:* [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] *On Behalf Of *Simon Dahlbacka
*Sent:* Monday, February 12, 2007 2:47 PM
*To:* wix-users@lists.sourceforge.net
*Subject:* [WiX-users] adding non-default extension



I'm trying to add an <Extension> to an existing file type (.sln if that
matters)

I've tried with the following snippet...

<Component Id="FooComponent" Guid="PUT-GUID-HERE">
         <File Name="Foo.exe" Id="FooExe"
                    Source="!(wix.SourceDir)Foo.exe"/>
         <Extension ContentType="text\plain" Id="sln">
                <Verb Id="Foo" Command="Do foo"
                      TargetFile="FooExe"
                      Argument='"%1"'/>
         </Extension>
</Component>


The problem with this is that this becomes the *default* action, which
obviously is not what I want for the .sln type, how do I do so that it does
*not* become the default action?

regards,

Simon

ps. ALLUSERS=1 or not does not seem to have any effect on this behavior..

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to