Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
bergerpascal committed Apr 13, 2020
1 parent 2bca267 commit 2bbc05c
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
46 changes: 45 additions & 1 deletion MSIX_Commander.ps1
@@ -1,4 +1,4 @@
$ScriptVersion = "1.0.7.3"
$ScriptVersion = "1.0.7.4"
# Add required assemblies for icon
Add-Type -AssemblyName PresentationFramework, System.Drawing, System.Windows.Forms, WindowsFormsIntegration

Expand Down Expand Up @@ -133,6 +133,9 @@ $inputXML = @"
<TextBlock x:Name="TexBlock_CurrentSideloading" HorizontalAlignment="Left" Margin="6,273,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="22" Width="179"><Span Foreground="Black" FontSize="12" FontFamily="Segoe UI"><Run Text="The current sideloading status is:"/></Span><Span Foreground="Black" FontSize="12" FontFamily="Segoe UI"><LineBreak/></Span><LineBreak/><Run Text=""/><LineBreak/><Run Text=""/></TextBlock>
<TextBlock x:Name="TexBlock_CurrentSideloading_Status" HorizontalAlignment="Left" Margin="190,273,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="22" Width="179" FontWeight="Bold" Foreground="#FFFF0600"/>
<Button x:Name="Button_EnableDevMode" Content="Enable Developer Mode*" Margin="438,300,0,0" VerticalAlignment="Top" Height="33" HorizontalAlignment="Left" Width="164"/>
<Label x:Name="Label_DisableStoreUpdates" Content="Disable automatic Updates of Store Apps" HorizontalAlignment="Left" VerticalAlignment="Top" FontWeight="Bold" Margin="0,349,0,0"/>
<TextBlock x:Name="TexBlock_DisableStoreUpdates" HorizontalAlignment="Left" Margin="6,375,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="22" Width="758"><Run Text="This button lets you disable automatic Updates of Windows Store Apps."/><Run Text=" "/><Run Text="This requires Administrator rights."/></TextBlock>
<Button x:Name="Button_DisableStoreUpdates" Content="Stop automatic Store Updates*" Margin="304,402,0,0" VerticalAlignment="Top" Height="33" HorizontalAlignment="Left" Width="179"/>
</Grid>
</TabItem>
<TabItem x:Name="Tab_EditManifest" Header="EditManifest">
Expand Down Expand Up @@ -1107,6 +1110,43 @@ Function Change-Signature {
}
}

Function Disable-AutomaticStoreAppUpdates{

$Name = "AutoDownload"
$Value = 2
$Path = "HKLM:\SOFTWARE\Policies\Microsoft\WindowsStore"

If($UserIsAdmin -eq $true){
#Disable Services

try{

If ((Test-Path $Path) -eq $false){
New-Item -Path $Path -ItemType Directory
}

If (-!(Get-ItemProperty -Path $Path -Name $name -ErrorAction SilentlyContinue)){
New-ItemProperty -Path $Path -Name $Name -PropertyType DWord -Value $Value
}
else{
Set-ItemProperty -Path $Path -Name $Name -Value $Value
}

$WPFTextBox_Messages.Text = "Disabled automatic Updates of Windows Store Apps.
$WPFTextBox_Messages.Foreground = "Black"

}
catch{
$WPFTextBox_Messages.Text = ("Failed to disable automatic Updates of Windows Store Apps.")
$WPFTextBox_Messages.Foreground = "Red"
}
}
else{
$WPFTextBox_Messages.Text = "You are not an administrator and this functionality requires admin rights.
$WPFTextBox_Messages.Foreground = "Red"
}
}

Function Stop-Services {

#List Of Services to stopp and disable
Expand Down Expand Up @@ -2554,6 +2594,10 @@ $WPFButton_PackagingToolDriverUninstall.Add_Click({
$WPFButton_StopServices.Add_Click({
Stop-Services
})
$WPFButton_DisableStoreUpdates.Add_Click({

Disable-AutomaticStoreAppUpdates
})

$WPFButton_Change_SidelaodingStatus.add_click({

Expand Down
4 changes: 4 additions & 0 deletions ReleaseNotes.txt
@@ -1,3 +1,7 @@
V1.0.7.4
New:
- Button to disable automatic Updates of Windows Store Apps

V1.0.7.3
New:
- Start Button that lets you start the Applications from a selected MSIX
Expand Down

0 comments on commit 2bbc05c

Please sign in to comment.