Fix process name
This commit is contained in:
@@ -38,6 +38,9 @@ Invoke-Expression "wix build -arch $wixArch -o .\WinBGP-$($Version)-$($Arch).msi
|
||||
Write-Verbose "Done!"
|
||||
Pop-Location
|
||||
|
||||
# Clean temporary build folder
|
||||
Remove-Item -Path "..\engine\*"
|
||||
|
||||
Copy-Item -Path "WinBGP-$($Version)-$($Arch).msi" -Destination "..\release" -Force
|
||||
if ($Sign) {
|
||||
& "C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64\signtool.exe" sign /sha1 $CertificateThumbprint /tr http://time.certum.pl/ /td sha256 /fd sha256 /v "..\release\WinBGP-$($Version)-$($Arch).msi"
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
<Component Transitive="yes">
|
||||
<File Id="winbgp_service" Source="..\service\WinBGP-Service.exe" KeyPath="yes" Vital="yes" Checksum="yes" />
|
||||
<ServiceInstall
|
||||
Id="InstallExporterService"
|
||||
Id="InstallWinBGPService"
|
||||
Name="WinBGP"
|
||||
DisplayName="WinBGP Engine"
|
||||
Description="The BGP swiss army knife of networking on Windows"
|
||||
@@ -39,10 +39,10 @@
|
||||
<ServiceDependency Id="RemoteAccess" />
|
||||
</ServiceInstall>
|
||||
<ServiceControl
|
||||
Id="MyServiceControl"
|
||||
Id="WinBGPServiceControl"
|
||||
Name="WinBGP"
|
||||
Stop="both"
|
||||
Remove="both"
|
||||
Stop="both"
|
||||
Wait="yes" />
|
||||
</Component>
|
||||
</DirectoryRef>
|
||||
|
||||
@@ -74,6 +74,14 @@
|
||||
ExeCommand="powershell.exe -ExecutionPolicy Bypass -Command "if ((Get-RemoteAccess).RoutingStatus -ne 'Installed') { Write-Host 'Enabling routing (WinBGP prerequisite)'; Install-RemoteAccess -VpnType RoutingOnly }""
|
||||
Return="check"
|
||||
/>
|
||||
|
||||
<CustomAction Id="ServiceStart"
|
||||
Execute="immediate"
|
||||
Impersonate="no"
|
||||
Directory="TARGETDIR"
|
||||
ExeCommand="powershell.exe -ExecutionPolicy Bypass -Command "if ((Get-RemoteAccess).RoutingStatus -eq 'Installed') { Write-Host 'Starting WinBGP service'; Start-Service -Name WinBGP -ErrorAction SilentlyContinue }""
|
||||
Return="ignore"
|
||||
/>
|
||||
|
||||
<CustomAction Id="RemoveConfig"
|
||||
Execute="deferred"
|
||||
@@ -90,8 +98,9 @@
|
||||
<Custom Action="GenerateConfig" After="InstallFiles" Condition="NOT Installed AND NOT WIX_UPGRADE_DETECTED AND NOT WIX_DOWNGRADE_DETECTED" />
|
||||
<Custom Action="EnableWindowsFeature" After="InstallFiles" Condition="&Features=3 AND NOT Installed AND (MsiNTProductType=2 OR MsiNTProductType=3)" />
|
||||
<Custom Action="EnableWindowsFeatureRSAT" After="EnableWindowsFeature" Condition="&Features=3 AND NOT Installed AND (MsiNTProductType=2 OR MsiNTProductType=3)" />
|
||||
<Custom Action="EnableRouting" After="EnableWindowsFeatureRSAT" Condition="&Features=3 AND NOT Installed AND (MsiNTProductType=2 OR MsiNTProductType=3)" /> <!-- TO CHECK to use Condition="MAINTENANCE" for upgrade -->
|
||||
<ScheduleReboot After="InstallFinalize" Condition="&Features=3 AND NOT Installed AND (MsiNTProductType=2 OR MsiNTProductType=3)" /> <!-- TO CHECK <Condition>REBOOT_REQUIRED</Condition> -->
|
||||
<Custom Action="EnableRouting" After="EnableWindowsFeatureRSAT" Condition="&Features=3 AND NOT Installed AND (MsiNTProductType=2 OR MsiNTProductType=3)" />
|
||||
<Custom Action="ServiceStart" After="InstallFinalize" Condition='NOT REMOVE="ALL" AND (MsiNTProductType=2 OR MsiNTProductType=3)' />
|
||||
<ScheduleReboot After="InstallFinalize" Condition="&Features=3 AND NOT Installed AND NOT (WIX_UPGRADE_DETECTED OR UPGRADINGPRODUCTCODE) AND (MsiNTProductType=2 OR MsiNTProductType=3)" /> <!-- TO CHECK <Condition>REBOOT_REQUIRED</Condition> -->
|
||||
<Custom Action='RemoveConfig' Before='RemoveFiles' Condition='Installed AND (REMOVE="ALL") AND NOT (WIX_UPGRADE_DETECTED OR UPGRADINGPRODUCTCODE)' />
|
||||
</InstallExecuteSequence>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user