-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: device install in 2 phases: binaries et. alia then enroll, then …
…install service
- Loading branch information
1 parent
8b269dc
commit 6e044b0
Showing
8 changed files
with
137 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
tools/windows-installer/NoPortsInstaller/Pages/Device/InstallService.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<Page x:Class="NoPortsInstaller.Pages.Install.InstallService" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:local="clr-namespace:NoPortsInstaller" | ||
mc:Ignorable="d" | ||
d:DesignHeight="350" d:DesignWidth="500" | ||
Title="Download"> | ||
|
||
<Grid Width="500"> | ||
<Rectangle HorizontalAlignment="Left" Height="350" VerticalAlignment="Center" Width="162" Fill="#FF252526" Margin="-8,0,0,0"> | ||
<Rectangle.Stroke> | ||
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> | ||
<GradientStop Color="Black"/> | ||
<GradientStop Color="White" Offset="1"/> | ||
</LinearGradientBrush> | ||
</Rectangle.Stroke> | ||
</Rectangle> | ||
<Rectangle HorizontalAlignment="Left" Stroke="Black" VerticalAlignment="Center" Height="1" Width="1"> | ||
<Rectangle.Fill> | ||
<ImageBrush ImageSource="/Assets/NoPortsDark.png"/> | ||
</Rectangle.Fill> | ||
</Rectangle> | ||
<Image HorizontalAlignment="Left" Height="177" Margin="20,0,0,0" VerticalAlignment="Center" Width="122" Source="/Assets/NoPortsDark.png" Stretch="Fill"> | ||
<Image.OpacityMask> | ||
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> | ||
<GradientStop Color="Black"/> | ||
<GradientStop Color="White" Offset="1"/> | ||
</LinearGradientBrush> | ||
</Image.OpacityMask> | ||
</Image> | ||
<Label Content="NoPorts Installation" HorizontalAlignment="Left" Height="28" VerticalAlignment="Top" Width="194" Margin="168,10,0,0" FontSize="16" FontWeight="Bold"/> | ||
<Label Content="Installation In Progress" HorizontalAlignment="Left" Height="27" VerticalAlignment="Top" Width="199" Margin="168,45,0,0"/> | ||
<Rectangle HorizontalAlignment="Left" Height="2" Margin="168,71,0,0" Stroke="Black" VerticalAlignment="Top" Width="220" Fill="Black" RenderTransformOrigin="0.5,0.5"> | ||
<Rectangle.RenderTransform> | ||
<TransformGroup> | ||
<ScaleTransform ScaleY="-1"/> | ||
<SkewTransform/> | ||
<RotateTransform/> | ||
<TranslateTransform/> | ||
</TransformGroup> | ||
</Rectangle.RenderTransform> | ||
</Rectangle> | ||
<Label Content="" HorizontalAlignment="Left" Height="28" VerticalAlignment="Top" Width="199" Margin="168,86,0,0" FontSize="11"/> | ||
<ProgressBar x:Name="InstallProgress" HorizontalAlignment="Left" Height="22" Margin="173,114,0,0" VerticalAlignment="Top" Width="228"/> | ||
<Label x:Name="Status" Content="Starting Service Installation..." HorizontalAlignment="Left" Margin="175,136,0,0" VerticalAlignment="Top" Width="226"/> | ||
</Grid> | ||
</Page> |
18 changes: 18 additions & 0 deletions
18
tools/windows-installer/NoPortsInstaller/Pages/Device/InstallService.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System.Windows.Controls; | ||
|
||
namespace NoPortsInstaller.Pages.Install | ||
{ | ||
/// <summary> | ||
/// Interaction logic for Page1.xaml | ||
/// </summary> | ||
public partial class InstallService : Page | ||
{ | ||
private readonly Controller _controller; | ||
public InstallService() | ||
{ | ||
InitializeComponent(); | ||
_controller = App.ControllerInstance; | ||
_ = _controller.InstallService(InstallProgress, Status); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters