提交 7f8057b1 authored 作者: Mitch Capper's avatar Mitch Capper

Improved setup, fixed missing files in link.pl

上级 7d055604
#!/usr/bin/perl #!/usr/bin/perl
use strict; use strict;
my $FS_BUILD_PATH = "freeswitch.final\\Win32\\Debug"; my $FS_BUILD_PATH = "freeswitch\\Win32\\Debug";
my $WORKING_DIR = "FSClient\\working"; my $WORKING_DIR = "FSClient\\bin\Debug";
my $USE_LN = 0; #THIS SHOULD BE SET TO 0 (unless you have an ln equiv for windows) my $USE_LN = 0; #THIS SHOULD BE SET TO 0 (unless you have an ln equiv for windows)
my $COPY_CONF = 1; my $COPY_CONF = 1;
...@@ -9,8 +9,8 @@ my $VERBOSE = 1; ...@@ -9,8 +9,8 @@ my $VERBOSE = 1;
my $VERBOSE_SYS_RES = 0; my $VERBOSE_SYS_RES = 0;
die "Build directory does not exist: $FS_BUILD_PATH" if (! -e $FS_BUILD_PATH); die "Build directory does not exist: $FS_BUILD_PATH" if (! -e $FS_BUILD_PATH);
die "Working directory does not exist: $WORKING_DIR" if (! -e $WORKING_DIR); die "Working directory does not exist: $WORKING_DIR" if (! -e $WORKING_DIR);
my @MAIN_FILES = qw/FreeSwitch.dll libapr.dll libaprutil.dll libbroadvoice.dll libspandsp.dll libteletone.dll mod_managed.dll pthread.dll/; my @MAIN_FILES = qw/FreeSwitch.dll libapr.dll libaprutil.dll libbroadvoice.dll libspandsp.dll libteletone.dll mod_managed.dll pthread.dll libeay32.dll ssleay32.dll/;
my @modules = qw/mod_celt mod_commands mod_console mod_dialplan_xml mod_dptools mod_event_socket mod_ilbc mod_local_stream mod_logfile mod_loopback mod_PortAudio mod_siren mod_sndfile mod_sofia mod_speex mod_tone_stream mod_h26x mod_silk/; my @modules = qw/mod_celt mod_commands mod_console mod_dialplan_xml mod_dptools mod_event_socket mod_ilbc mod_local_stream mod_logfile mod_loopback mod_PortAudio mod_siren mod_sndfile mod_sofia mod_speex mod_tone_stream mod_h26x mod_silk mod_spandsp mod_bv/;
my $link_cmd = $USE_LN ? "ln -s -a" : "copy"; my $link_cmd = $USE_LN ? "ln -s -a" : "copy";
......
...@@ -26,7 +26,7 @@ Project("{930C7802-8A8C-48F9-8165-68863BCCD9DD}") = "Setup", "Setup\Setup.wixpro ...@@ -26,7 +26,7 @@ Project("{930C7802-8A8C-48F9-8165-68863BCCD9DD}") = "Setup", "Setup\Setup.wixpro
EndProject EndProject
Global Global
GlobalSection(SourceCodeControl) = preSolution GlobalSection(SourceCodeControl) = preSolution
SccNumberOfProjects = 5 SccNumberOfProjects = 6
SccLocalPath0 = . SccLocalPath0 = .
SccProjectUniqueName1 = FSClient.csproj SccProjectUniqueName1 = FSClient.csproj
SccLocalPath1 = . SccLocalPath1 = .
...@@ -36,6 +36,9 @@ Global ...@@ -36,6 +36,9 @@ Global
SccLocalPath3 = JabraHeadset SccLocalPath3 = JabraHeadset
SccProjectUniqueName4 = SimpleXmlContactPlugin\\SimpleXmlContactPlugin.csproj SccProjectUniqueName4 = SimpleXmlContactPlugin\\SimpleXmlContactPlugin.csproj
SccLocalPath4 = SimpleXmlContactPlugin SccLocalPath4 = SimpleXmlContactPlugin
SccProjectUniqueName5 = Setup\\Setup.wixproj
SccLocalPath5 = .
SccProjectFilePathRelativizedFromConnection5 = Setup\\
EndGlobalSection EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
......
...@@ -2,14 +2,10 @@ ...@@ -2,14 +2,10 @@
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment> <Fragment>
<ComponentGroup Id="FSClientComp"> <ComponentGroup Id="FSClientComp">
<ComponentRef Id="cmp98E16C7E23D449F3BC0ECF003543C3F9"/>
<ComponentRef Id="cmp32DB946E4669A895FAC4826678D1CE7A"/> <ComponentRef Id="cmp32DB946E4669A895FAC4826678D1CE7A"/>
<ComponentRef Id="cmpD17CBE22A3B94CCE9CF46B849289D40D"/> <ComponentRef Id="cmpD17CBE22A3B94CCE9CF46B849289D40D"/>
</ComponentGroup> </ComponentGroup>
<DirectoryRef Id="INSTALLLOCATION"> <DirectoryRef Id="INSTALLLOCATION">
<Component Id="cmp98E16C7E23D449F3BC0ECF003543C3F9" Guid="*">
<File Id="fil153655C03E434A08A348DD833C6CE40A" KeyPath="yes" Source="$(var.FSClient.ProjectDir)\ReadMe.txt" />
</Component>
<Component Id="cmp32DB946E4669A895FAC4826678D1CE7A" Guid="*"> <Component Id="cmp32DB946E4669A895FAC4826678D1CE7A" Guid="*">
<File Id="filE4CB78ABCF2AE91B89FB0446A607E70C" KeyPath="yes" Source="$(var.FSClient.TargetDir)\WPFToolkit.dll" /> <File Id="filE4CB78ABCF2AE91B89FB0446A607E70C" KeyPath="yes" Source="$(var.FSClient.TargetDir)\WPFToolkit.dll" />
</Component> </Component>
......
...@@ -11,8 +11,9 @@ ...@@ -11,8 +11,9 @@
<?endif ?> <?endif ?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"
xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension"> xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension">
<Product Id="f20f4348-01f9-457f-9112-60edb77761f4" Name="$(var.ProductName)" Language="1033" Version="1.0.0.0" Manufacturer="FreeSWITCH" UpgradeCode="7668faef-2ab3-4079-a986-07a33739b42e"> <Product Id="*" Name="$(var.ProductName)" Language="1033" Version="1.0.1.0" Manufacturer="FreeSWITCH" UpgradeCode="7668FAEF-2AB3-4079-A986-07A33739B42E">
<Package InstallerVersion="200" Compressed="yes" /> <Package InstallerVersion="200" Compressed="yes" />
<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" /> <Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />
...@@ -61,6 +62,15 @@ ...@@ -61,6 +62,15 @@
Description="FreeSWITCH Windows Phone" Description="FreeSWITCH Windows Phone"
Target="[INSTALLLOCATION]FSClient.exe" Target="[INSTALLLOCATION]FSClient.exe"
WorkingDirectory="INSTALLLOCATION"/> WorkingDirectory="INSTALLLOCATION"/>
<util:InternetShortcut Id="OnlineDocumentationShortcut"
Name="Online Documentation"
Target="http://wiki.freeswitch.com/wiki/FSClient"/>
<Shortcut Id="UninstallProduct"
Name="Uninstall FSClient"
Target="[SystemFolder]msiexec.exe"
Arguments="/x [ProductCode]"
Description="Uninstalls FSClient" />
<RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/> <RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>
<RegistryValue Root="HKCU" Key="Software\FreeSWITCH\FSClient" Name="installed" Type="integer" Value="1" KeyPath="yes"/> <RegistryValue Root="HKCU" Key="Software\FreeSWITCH\FSClient" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
</Component> </Component>
...@@ -86,5 +96,17 @@ ...@@ -86,5 +96,17 @@
</Feature> </Feature>
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLLOCATION" /> <Property Id="WIXUI_INSTALLDIR" Value="INSTALLLOCATION" />
<UIRef Id="WixUI_InstallDir" /> <UIRef Id="WixUI_InstallDir" />
<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Launch FSClient" />
<Property Id="WixShellExecTarget" Value="[INSTALLLOCATION]FSClient.exe" />
<CustomAction Id="LaunchApplication" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="yes" />
<UI>
<Publish Dialog="ExitDialog" Control="Finish" Event="DoAction" Value="LaunchApplication">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed</Publish>
</UI>
<WixVariable Id="WixUIBannerBmp" Value="Banner.bmp" />
<WixVariable Id="WixUIDialogBmp" Value="Dialog.bmp" />
<Icon Id="icon.ico" SourceFile="../phone.ico"/>
<Property Id="ARPPRODUCTICON" Value="icon.ico" />
<MajorUpgrade DowngradeErrorMessage="A later version of [ProductName] is already installed. Setup will now exit." AllowSameVersionUpgrades="yes" />
</Product> </Product>
</Wix> </Wix>
...@@ -85,6 +85,10 @@ ...@@ -85,6 +85,10 @@
<Name>WixUIExtension</Name> <Name>WixUIExtension</Name>
</WixExtension> </WixExtension>
</ItemGroup> </ItemGroup>
<ItemGroup>
<Content Include="Banner.bmp" />
<Content Include="Dialog.bmp" />
</ItemGroup>
<Import Project="$(WixTargetsPath)" /> <Import Project="$(WixTargetsPath)" />
<!-- <!--
To modify your build process, add your task inside one of the targets below and uncomment it. To modify your build process, add your task inside one of the targets below and uncomment it.
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论