-
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.
Create crystaldiskinfo install and portable versions
Create crystaldiskinfo install and portable versions
- Loading branch information
Showing
11 changed files
with
101 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> | ||
<metadata> | ||
<id>{{PackageName}}</id> | ||
<title>CrystalDiskInfo (Install)</title> | ||
<version>{{PackageVersion}}</version> | ||
<authors>hiyohiyo</authors> | ||
<owners>doc</owners> | ||
<summary> | ||
CrystalDiskInfo is a HDD/SSD utility software which shows the health status much more clearly than similar tools. | ||
</summary> | ||
<description> | ||
CrystalDiskInfo is a HDD/SSD utility software which shows the health status much more clearly than similar tools. | ||
The "Function / Graph" is especially interesting for the "Reallocated Sectors Count". | ||
If it increases over time or is very high already, the hard drive may need to be replaced. | ||
</description> | ||
<projectUrl>http://crystalmark.info/software/CrystalDiskInfo/index-e.html</projectUrl> | ||
<tags>disk diagnostic hdd ssd admin</tags> | ||
<copyright></copyright> | ||
<licenseUrl>http://crystalmark.info/software/CrystalDiskInfo/manual-en/License.html</licenseUrl> | ||
<packageSourceUrl>https://github.com/aronovgj/choco-auto</packageSourceUrl> | ||
|
||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<iconUrl>https://cdn.rawgit.com/aronovgj/chocolatey/master/icons/{{PackageName}}.png</iconUrl> | ||
</metadata> | ||
</package> |
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,15 @@ | ||
$packageName = '{{PackageName}}' | ||
$url = '{{DownloadUrl}}' | ||
|
||
$packageArgs = @{ | ||
packageName = $packageName | ||
fileType = 'exe' | ||
url = $url | ||
silentArgs = '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' | ||
softwareName = $packageName | ||
checksum = '{{Checksum}}' | ||
checksumType = 'sha256' | ||
} | ||
|
||
Install-ChocolateyPackage @packageArgs | ||
|
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,26 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> | ||
<metadata> | ||
<id>{{PackageName}}</id> | ||
<title>CrystalDiskInfo (Portable)</title> | ||
<version>{{PackageVersion}}</version> | ||
<authors>hiyohiyo</authors> | ||
<owners>doc</owners> | ||
<summary> | ||
CrystalDiskInfo is a HDD/SSD utility software which shows the health status much more clearly than similar tools. | ||
</summary> | ||
<description> | ||
CrystalDiskInfo is a HDD/SSD utility software which shows the health status much more clearly than similar tools. | ||
The "Function / Graph" is especially interesting for the "Reallocated Sectors Count". | ||
If it increases over time or is very high already, the hard drive may need to be replaced. | ||
</description> | ||
<projectUrl>http://crystalmark.info/software/CrystalDiskInfo/index-e.html</projectUrl> | ||
<tags>disk diagnostic hdd ssd</tags> | ||
<copyright></copyright> | ||
<licenseUrl>http://crystalmark.info/software/CrystalDiskInfo/manual-en/License.html</licenseUrl> | ||
<packageSourceUrl>https://github.com/aronovgj/choco-auto</packageSourceUrl> | ||
|
||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<iconUrl>https://cdn.rawgit.com/aronovgj/chocolatey/master/icons/{{PackageName}}.png</iconUrl> | ||
</metadata> | ||
</package> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,30 @@ | ||
$packageName = '{{PackageName}}' | ||
$url = '{{DownloadUrl}}' | ||
$fileName32 = "DiskInfo32.exe" | ||
$fileName64 = "DiskInfo64.exe" | ||
$linkName = "CrystalDiskInfo.lnk" | ||
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" | ||
|
||
$packageArgs = @{ | ||
packageName = $packageName | ||
unzipLocation = $toolsDir | ||
fileType = 'zip' | ||
url = $url | ||
softwareName = $packageName | ||
checksum = '{{Checksum}}' | ||
checksumType = 'sha256' | ||
} | ||
|
||
Install-ChocolateyZipPackage @packageArgs | ||
|
||
#install start menu shortcut | ||
$fileName = $fileName32 | ||
$is64bit = Get-ProcessorBits 64 | ||
if ($is64bit) { | ||
$fileName = $fileName64 | ||
} | ||
|
||
$programs = [environment]::GetFolderPath([environment+specialfolder]::Programs) | ||
$shortcutFilePath = Join-Path $programs $linkName | ||
$targetPath = Join-Path $toolsDir $fileName | ||
Install-ChocolateyShortcut -shortcutFilePath $shortcutFilePath -targetPath $targetPath |
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1 @@ | ||
$packageName = '{{PackageName}}' | ||
$url = '{{DownloadUrl}}' | ||
$fileName32 = "DiskInfo32.exe" | ||
$fileName64 = "DiskInfo64.exe" | ||
$linkName = "CrystalDiskInfo.lnk" | ||
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" | ||
|
||
$packageArgs = @{ | ||
packageName = $packageName | ||
unzipLocation = $toolsDir | ||
fileType = 'zip' | ||
url = $url | ||
softwareName = $packageName | ||
checksum = '{{Checksum}}' | ||
checksumType = 'sha256' | ||
} | ||
|
||
Install-ChocolateyZipPackage @packageArgs | ||
|
||
#install start menu shortcut | ||
$fileName = $fileName32 | ||
$is64bit = Get-ProcessorBits 64 | ||
if ($is64bit) { | ||
$fileName = $fileName64 | ||
} | ||
|
||
$programs = [environment]::GetFolderPath([environment+specialfolder]::Programs) | ||
$shortcutFilePath = Join-Path $programs $linkName | ||
$targetPath = Join-Path $toolsDir $fileName | ||
Install-ChocolateyShortcut -shortcutFilePath $shortcutFilePath -targetPath $targetPath | ||
#Install-VirtualPackage 'crystaldiskinfo.install' 'crystaldiskinfo.portable' |