]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add windows installer start menu item
authorJeff Lenk <jeff@jefflenk.com>
Fri, 22 Oct 2010 19:10:14 +0000 (14:10 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Fri, 22 Oct 2010 19:10:14 +0000 (14:10 -0500)
w32/Setup/Product.wxs

index bbdac487291b5a180effe8377ce435a1bc84597f..f1fea35af779b6bf38d4dd364138d6e1752ee528 100644 (file)
                                        <?endif ?>\r
                                </Directory>\r
                        </Directory>\r
+                       <Directory Id="ProgramMenuFolder">\r
+                               <Directory Id="ApplicationProgramsFolder" Name="FreeSWITCH"/>\r
+                       </Directory>\r
                </Directory>\r
 \r
+               <DirectoryRef Id="ApplicationProgramsFolder">\r
+                       <Component Id="ApplicationShortcut" Guid="B554D1D1-C8C6-4d46-A3E7-4BA836EF929B">\r
+                               <Shortcut Id="ApplicationStartMenuShortcut"\r
+                                                        Name="FreeSWITCH"\r
+                                                        Description="FreeSWITCH Telephony SoftSwitch"\r
+                                                        Target="[INSTALLLOCATION]FreeSwitchConsole.exe"\r
+                                                        WorkingDirectory="INSTALLLOCATION"/>\r
+                               <RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>\r
+                               <RegistryValue Root="HKCU" Key="Software\Microsoft\FreeSWITCH" Name="installed" Type="integer" Value="1" KeyPath="yes"/>\r
+                       </Component>\r
+               </DirectoryRef>\r
+\r
                <Feature Id="ProductFeature" Title="FreeSWITCH Core" Level="1">\r
                        <!-- TODO: Remove the comments around this ComponentRef element and the Component above in order to add resources to this installer. -->\r
                        <!-- <ComponentRef Id="ProductComponent" /> -->\r
@@ -57,7 +72,8 @@
                        <?if $(var.Platform) = x64 ?>\r
                          <MergeRef Id="CrtFiles_x64"/>\r
                        <?endif ?>\r
-    </Feature>\r
+                       <ComponentRef Id="ApplicationShortcut" />\r
+               </Feature>\r
     <Feature Id="ProductFeatureConf" Title="FreeSWITCH Configuration Sample" Level="1">\r
       <ComponentGroupRef Id="FreeSWITCHConfFiles" />\r
     </Feature>\r