require framework prechecks
also updated the update script to not use bitstransfer
This commit is contained in:
parent
148a8fd232
commit
2428f2084b
@ -9,7 +9,7 @@ namespace SPTInstaller.Installer_Tasks.PreChecks;
|
||||
|
||||
public class NetCore6PreCheck : PreCheckBase
|
||||
{
|
||||
public NetCore6PreCheck() : base(".Net Core 6 Desktop Runtime", false)
|
||||
public NetCore6PreCheck() : base(".Net Core 6 Desktop Runtime", true)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,7 @@ namespace SPTInstaller.Installer_Tasks.PreChecks;
|
||||
|
||||
public class NetFramework472PreCheck : PreCheckBase
|
||||
{
|
||||
public NetFramework472PreCheck() : base(".Net Framework 4.7.2", false)
|
||||
public NetFramework472PreCheck() : base(".Net Framework 4.7.2", true)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
[string]$destination
|
||||
)
|
||||
|
||||
clear
|
||||
Clear-Host
|
||||
|
||||
Write-Host "Stopping installer ..."
|
||||
|
||||
@ -16,11 +16,7 @@ if ($installer -ne $null) {
|
||||
|
||||
Write-Host "Copying new installer ..."
|
||||
|
||||
Import-Module BitsTransfer
|
||||
|
||||
Start-BitsTransfer -Source $source -Destination $destination -DisplayName "Updating" -Description "Copying new installer"
|
||||
|
||||
Remove-Module -Name BitsTransfer
|
||||
Copy-Item -Path $source -Destination $destination -Force
|
||||
|
||||
# remove the new installer from the cache folder after it is copied
|
||||
Remove-Item -Path $source
|
||||
|
@ -9,8 +9,8 @@
|
||||
<PackageIcon>icon.ico</PackageIcon>
|
||||
<ApplicationIcon>Assets\icon.ico</ApplicationIcon>
|
||||
<Configurations>Debug;Release;TEST</Configurations>
|
||||
<AssemblyVersion>2.28</AssemblyVersion>
|
||||
<FileVersion>2.28</FileVersion>
|
||||
<AssemblyVersion>2.29</AssemblyVersion>
|
||||
<FileVersion>2.29</FileVersion>
|
||||
<Company>SPT-AKI</Company>
|
||||
</PropertyGroup>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user