merged wix from ent to community (no shell extension any more)

This commit is contained in:
jerry 2014-04-22 13:17:58 +00:00
parent 5657348453
commit 22ebb259d0
3 changed files with 0 additions and 86 deletions

View File

@ -19,10 +19,6 @@
<MediaTemplate EmbedCab="yes" /> <MediaTemplate EmbedCab="yes" />
<UIRef Id="WixUI_InstallDir" /> <UIRef Id="WixUI_InstallDir" />
<?if $(var.Platform) = "x86" ?>
<Condition Message="You are running a 64-bit version of Windows. Please install the 64-bit version of $(var.Name) instead of the 32-bit version.">NOT Msix64</Condition>
<?endif ?>
<!-- causes ICE61 warning, but stops user from installing many instances from nightly builds. --> <!-- causes ICE61 warning, but stops user from installing many instances from nightly builds. -->
<Upgrade Id="$(var.UpgradeGuid)"> <Upgrade Id="$(var.UpgradeGuid)">
<UpgradeVersion Minimum="0.0.0.0" Property="UPGRADE" /> <UpgradeVersion Minimum="0.0.0.0" Property="UPGRADE" />
@ -34,7 +30,6 @@
</Feature> </Feature>
<Icon Id="synergy.ico" SourceFile="$(var.ResPath)/synergy.ico"/> <Icon Id="synergy.ico" SourceFile="$(var.ResPath)/synergy.ico"/>
<Binary Id="Scripts" SourceFile="Scripts.vbs" />
<WixVariable Id="WixUILicenseRtf" Value="$(var.ResPath)\License.rtf" /> <WixVariable Id="WixUILicenseRtf" Value="$(var.ResPath)\License.rtf" />
<WixVariable Id="WixUIBannerBmp" Value="$(var.ResPath)\banner.bmp" /> <WixVariable Id="WixUIBannerBmp" Value="$(var.ResPath)\banner.bmp" />
@ -57,47 +52,8 @@
NOT LEGACY_UNINSTALL_EXISTS NOT LEGACY_UNINSTALL_EXISTS
</Condition> </Condition>
<CustomAction Id="RestartExplorerPrompt" BinaryKey="Scripts" VBScriptCall="RestartExplorerPrompt" />
<CustomAction Id="RestartExplorer" BinaryKey="Scripts" VBScriptCall="RestartExplorer" Execute="deferred" Impersonate="yes" />
<CustomAction Id="StartGui" FileKey="GuiProgram" ExeCommand="" Return="asyncNoWait" Execute="deferred" Impersonate="yes" /> <CustomAction Id="StartGui" FileKey="GuiProgram" ExeCommand="" Return="asyncNoWait" Execute="deferred" Impersonate="yes" />
<!--
generally it is ill-advised to use custom actions and vbscript,
as this makes it really hard to guarentee clean msi usage.
however, msi insists on checking for files-in-use before it
stops our service (which will turn up a ton of applications
using the hook and shellex dlls). its actually much cleaner for
us to disable the restart manager (MSIRESTARTMANAGERCONTROL) and
forcefully restart explorer.exe ourselves. patches welcome!
-->
<InstallExecuteSequence>
<!--
ask the user if we can restart explorer, but only on install or
upgrade (known as "NOT Installed"), and only if not running in
passive/quiet mode.
-->
<Custom Action="RestartExplorerPrompt" Before="InstallFinalize">
NOT Installed AND (UILevel = 4 OR UILevel = 5)
</Custom>
<!--
if the user answered the restart explorer dialog, then this must
be an attented install, so it should be ok for us to restart
explorer, start the gui, and potentially reboot.
-->
<Custom Action="RestartExplorer" After="RestartExplorerPrompt">
RESTART_EXPLORER="yes"
</Custom>
<Custom Action="StartGui" After="RestartExplorer">
RESTART_EXPLORER="yes"
</Custom>
<ScheduleReboot After="RestartExplorer">
RESTART_EXPLORER="no"
</ScheduleReboot>
</InstallExecuteSequence>
</Product> </Product>
<Fragment> <Fragment>
@ -134,16 +90,6 @@
<File Source="$(var.BinPath)/synergyc.exe" /> <File Source="$(var.BinPath)/synergyc.exe" />
<File Source="$(var.BinPath)/syntool.exe" /> <File Source="$(var.BinPath)/syntool.exe" />
<File Source="$(var.BinPath)/synwinhk.dll" /> <File Source="$(var.BinPath)/synwinhk.dll" />
<File Source="$(var.BinPath)/synwinxt.dll" />
<RegistryKey Root="HKCR" Key="*\shellex\DataHandler">
<RegistryValue Value="{1BE208B1-BC21-4E39-8BB6-A5DC3F51479E}" Type="string" />
</RegistryKey>
<RegistryKey Root="HKCR" Key="CLSID\{1BE208B1-BC21-4E39-8BB6-A5DC3F51479E}\InprocServer32">
<RegistryValue Value="[INSTALLFOLDER]synwinxt.dll" Type="string" />
<RegistryValue Name="ThreadingModel" Value="Apartment" Type="string" />
</RegistryKey>
</Component> </Component>

View File

@ -1,31 +0,0 @@
Function RestartExplorerPrompt
Dim message
message = "The Windows Explorer process needs to be restarted. " & _
vbCr & vbCr & "Would you like setup to do this?"
answer = MsgBox(message, vbSystemModal Or vbYesNo Or vbQuestion, "Restart Explorer")
If answer = vbYes Then
restart = "yes"
Else
restart = "no"
End If
Session.Property("RESTART_EXPLORER") = restart
End Function
Function RestartExplorer
Set wmi = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2")
Set processList = wmi.ExecQuery("Select * from Win32_Process Where Name = 'explorer.exe'")
For Each process in processList
process.Terminate(1)
Next
Set shell = CreateObject("Wscript.Shell")
shell.Run "explorer.exe"
End Function

View File

@ -12,7 +12,6 @@
<IntermediateOutputPath>..\..\..\build\wix\obj\$(Configuration)\</IntermediateOutputPath> <IntermediateOutputPath>..\..\..\build\wix\obj\$(Configuration)\</IntermediateOutputPath>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Content Include="Scripts.vbs" />
<WixExtension Include="WixFirewallExtension"> <WixExtension Include="WixFirewallExtension">
<HintPath>$(WixExtDir)\WixFirewallExtension.dll</HintPath> <HintPath>$(WixExtDir)\WixFirewallExtension.dll</HintPath>
<Name>WixFirewallExtension</Name> <Name>WixFirewallExtension</Name>