Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(3.0.3) Add files for 3.0.3 release #66

Merged
merged 1 commit into from
Oct 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion input/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
</label>
</li>
<li class="nav-item pt-2 pt-lg-0 ps-lg-3">
<a class="btn btn-primary d-block d-lg-inline-block" role="button" href='@Context.GetLink("/downloads/Boxstarter.3.0.2.zip")' download><i class="fa-solid fa-download me-2"></i>Download v3.0.2</a>
<a class="btn btn-primary d-block d-lg-inline-block" role="button" href='@Context.GetLink("/downloads/Boxstarter.3.0.3.zip")' download><i class="fa-solid fa-download me-2"></i>Download v3.0.3</a>
</li>
</ul>
</div>
Expand Down
46 changes: 23 additions & 23 deletions input/bootstrapper.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ catch {

function Get-Boxstarter {
Param(
[string] $Version = "3.0.2",
[string] $Version = "3.0.3",
[switch] $Force
)
if(!(Test-Admin)) {
Expand Down Expand Up @@ -167,8 +167,8 @@ function Test-Admin {
# SIG # Begin signature block
# MIIjgQYJKoZIhvcNAQcCoIIjcjCCI24CAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCDmqZxv+V2P3RfE
# 8rXT/GOc49F1uYvjvZJ4TA23k6MYoKCCHXowggUwMIIEGKADAgECAhAECRgbX9W7
# KX7zUQIBAAIBAAIBAAIB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eSJwq5bWOe5VmEc/UX9wS9+9NU/aVm7hsnM
# ++RS4DZ5Jx//WZNqyN/g/5o+2C+C4oF7VsYr91hyb8/KfugXVVvCAIVzdi53d739
# x8KFBnvOBuB2PKyF3IbtHi2vSoLaFFgYu+V5E4YzTQY4yKn0qziUI506glxpJPc+
# MyadlJK3SM9gAWB2tUc3WRsLSoHg
# SIG # End signature block
Binary file added input/downloads/Boxstarter.3.0.3.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion input/index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ShowInSidebar: false
<button class="btn border-primary btn-lg text-nowrap d-flex align-items-center justify-content-space-between me-md-4 fw-normal btn-copy tt tt-top text-bg-theme-background" type="button" data-clipboard-text="choco install boxstarter" data-bs-toggle="button" data-tooltip-text="Copy" data-tooltip-text-active="Copied!" aria-label="Copy download command to clipboard.">choco install boxstarter<i class="fa-solid fa-clipboard text-green ms-5"></i></button>
<a class="btn btn-outline-primary btn-lg text-nowrap d-block" href="whyboxstarter" role="button">Read the Docs<i class="fa-solid fa-angle-right ms-2"></i></a>
</div>
<p class="text-center pt-3 mb-0">Currently <strong>v3.0.2</strong> | <a href='@Context.GetLink("/downloads/Boxstarter.3.0.2.zip")' download>Download</a></p>
<p class="text-center pt-3 mb-0">Currently <strong>v3.0.3</strong> | <a href='@Context.GetLink("/downloads/Boxstarter.3.0.3.zip")' download>Download</a></p>
</div>
</section>
<section class="py-5 py-md-6 py-lg-7 container">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@echo off

powershell -NoProfile -ExecutionPolicy bypass -command "Import-Module '%~dp0Boxstarter.Chocolatey\Boxstarter.Chocolatey.psd1';Invoke-ChocolateyBoxstarter %*"
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Resolve-Path $PSScriptRoot\*.ps1 |
% { . $_.ProviderPath }

Import-Module (Join-Path $Boxstarter.BaseDir Boxstarter.WinConfig\BoxStarter.WinConfig.psd1) -global -DisableNameChecking

Export-ModuleMember Invoke-BoxStarter, `
Test-PendingReboot, `
Invoke-Reboot, `
Write-BoxstarterMessage, `
Start-TimedSection, `
Stop-TimedSection, `
Out-Boxstarter, `
Enter-BoxstarterLogable, `
Get-BoxstarterTempDir, `
Install-BoxstarterExtension
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{5e1cddbb-95bc-4f9d-8491-d7ad6c497d2c}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>MyApplication</RootNamespace>
<AssemblyName>MyApplication</AssemblyName>
<Name>Boxstarter.Bootstrapper</Name>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Compile Include="Boxstarter.bootstrapper.psd1" />
<Compile Include="BoxStarter.Bootstrapper.psm1" />
<Compile Include="Cleanup-Boxstarter.ps1" />
<Compile Include="Get-BoxstarterTempDir.ps1" />
<Compile Include="Get-PendingReboot.ps1" />
<Compile Include="Init-Settings.ps1" />
<Compile Include="Invoke-Boxstarter.ps1" />
<Compile Include="Invoke-Reboot.ps1" />
<Compile Include="Set-SecureAutoLogon.ps1" />
<Compile Include="Start-UpdateServices.ps1" />
<Compile Include="Stop-UpdateServices.ps1" />
<Compile Include="Test-PendingReboot.ps1" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Target Name="Build" />
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
@{
Description = 'Provides an unattended installation environment supporting automatic reboots, suspension of update services and logging'
# Script module or binary module file associated with this manifest.
ModuleToProcess = './boxstarter.bootstrapper.psm1'

# Version number of this module.
ModuleVersion = '3.0.3.0'

# ID used to uniquely identify this module
GUID = 'bbdb3e8b-9daf-4c00-a553-4f3f88fb6e50'

# Author of this module
Author = 'Chocolatey Software, Inc'

# Copyright statement for this module
Copyright = '(c) 2018 Chocolatey Software, Inc, 2012 - 2018 Matt Wrock'

# Minimum version of the Windows PowerShell engine required by this module
PowerShellVersion = '2.0'

# Minimum version of the .NET Framework required by this module
DotNetFrameworkVersion = '2.0'

# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
NestedModules = @('..\Boxstarter.Common\Boxstarter.Common.psd1')

# Functions to export from this module
FunctionsToExport = '*'

# Cmdlets to export from this module
CmdletsToExport = '*'

# Variables to export from this module
VariablesToExport = '*'

# Aliases to export from this module
AliasesToExport = '*'

# List of all modules packaged with this module.
# ModuleList = @()

# List of all files packaged with this module
# FileList = @()

# Private data to pass to the module specified in RootModule/ModuleToProcess
PrivateData = 'c7e9336dc042ab6b212e627a208c492439e79988'

# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
# DefaultCommandPrefix = ''

}

Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
function Cleanup-Boxstarter {
param(
[switch]$KeepWindowOpen,
[switch]$DisableRestart)
if(Get-IsRemote){
Remove-BoxstarterTask
}
Start-UpdateServices

$extensionBaseDir = "$env:ChocolateyInstall\extensions\boxstarter-choco"
if (Test-Path $extensionBaseDir) {
Remove-Item $extensionBaseDir -Recurse -Force -ErrorAction SilentlyContinue
Remove-Item "$(Join-Path $env:temp 'Boxstarter.ext.*')" -Force -ErrorAction SilentlyContinue
}

if(Test-Path "$(Get-BoxstarterTempDir)\BoxstarterReEnableUAC") {
del "$(Get-BoxstarterTempDir)\BoxstarterReEnableUAC"
Enable-UAC
}
if(!$Boxstarter.IsRebooting) {
Write-BoxstarterMessage "Cleaning up and not rebooting" -Verbose
$startup = "$env:appdata\Microsoft\Windows\Start Menu\Programs\Startup"
if( Test-Path "$Startup\boxstarter-post-restart.bat") {
Write-BoxstarterMessage "Cleaning up restart file" -Verbose
remove-item "$Startup\boxstarter-post-restart.bat"
remove-item "$(Get-BoxstarterTempDir)\Boxstarter.Script"
$promptToExit=$true
}
if(Test-Path "$(Get-BoxstarterTempDir)\Boxstarter.autologon") {
Write-BoxstarterMessage "Cleaning up autologon registry keys" -Verbose
$winLogonKey="HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"
$winlogonProps = Import-CLIXML -Path "$(Get-BoxstarterTempDir)\Boxstarter.autologon"
@("DefaultUserName","DefaultDomainName","DefaultPassword","AutoAdminLogon") | % {
if(!$winlogonProps.ContainsKey($_)){
Remove-ItemProperty -Path $winLogonKey -Name $_ -ErrorAction SilentlyContinue
}
else {
Set-ItemProperty -Path $winLogonKey -Name $_ -Value $winlogonProps[$_]
}
}
Remove-Item -Path "$(Get-BoxstarterTempDir)\Boxstarter.autologon"
}
if($promptToExit -or $KeepWindowOpen){
Read-Host 'Type ENTER to exit'
}
return
}

if(!(Get-IsRemote -PowershellRemoting) -and !$DisableRestart){
if(Get-UAC){
Write-BoxstarterMessage "UAC Enabled. Disabling..."
Disable-UAC
New-Item "$(Get-BoxstarterTempDir)\BoxstarterReEnableUAC" -type file | Out-Null
}
}

if(!(Get-IsRemote -PowershellRemoting) -and $BoxstarterPassword.Length -gt 0) {
$currentUser=Get-CurrentUser
Write-BoxstarterMessage "Securely Storing $($currentUser.Domain)\$($currentUser.Name) credentials for automatic logon"
Set-SecureAutoLogon $currentUser.Name $BoxstarterPassword $currentUser.Domain -BackupFile "$(Get-BoxstarterTempDir)\Boxstarter.autologon"
Write-BoxstarterMessage "Logon Set"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
function Get-BoxstarterTempDir {
if($env:LocalAppData -and $env:LocalAppData.StartsWith("$env:SystemDrive\Users")){
$dir = $env:LocalAppData
}
else {
$dir = $env:ProgramData
}

if(!(Test-Path "$dir\Boxstarter")){mkdir "$dir\Boxstarter" | Out-Null}
return "$dir\Boxstarter"
}
Loading
Loading