feat: WinImage 9.0
- extract zip to tools directory, add batch file
This commit is contained in:
28
WinImage/WinImage.nuspec
Normal file
28
WinImage/WinImage.nuspec
Normal file
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0"?>
|
||||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>WinImage</id>
|
||||
<title>WinImage</title>
|
||||
<version>9.0</version>
|
||||
<authors>Gilles Vollant</authors>
|
||||
<owners>Ethan J Brown</owners>
|
||||
<summary>WinImage is a fully-fledged disk-imaging suite for easy creation, reading and editing of many image formats and fileystems, including DMF, VHD, FAT, ISO, NTFS and Linux.</summary>
|
||||
<description>WinImage is a fully-fledged disk-imaging suite for easy creation, reading and editing of many image formats and fileystems, including DMF, VHD, FAT, ISO, NTFS and Linux. The disk image is an exact copy of a physical disk (floppy, CD-ROM, hard disk, USB, VHD disk, etc.) or a partition that preserves the original structure. With WinImage in place, you can recreate the disk image on the hard drive or other media, view its content, extract image-based files, add new files and directories, change the format, and defragment the image. All this and more is delivered in one intuitive user interface that enables imaging right out of the box.
|
||||
|
||||
The program has many utilitarian uses at home and in the office. As a serious PC user, you probably have tons of old but still useful floppy disks. With WinImage in place, you can turn them into disk images, which can be stored on the hard drive and recreated, when a need arises. In combination with a CD creating tool, WinImage can help you create your own custom boot disk with hardware diagnostic or virus cleaning software to bring a problem PC back up and running without being in Windows. As a hard-disk backup solution, WinImage allows you to save hours and even days restoring a system and configurations on a machine that has experienced a hard-disk crash or software corruption. Along with homes and offices, this ability is a must for training classes, where restoring torn down PC configurations quickly is critical.</description>
|
||||
<releaseNotes>New for version 9.00
|
||||
|
||||
WinImage can be used as portable software (without installation and registry modification), using Xml preference options.
|
||||
Write FAT16 or Fat32 bootable image to a removable drive, after erasing, and rebuild partitition table.
|
||||
|
||||
http://www.winimage.com/winimage.htm
|
||||
</releaseNotes>
|
||||
<projectUrl>http://www.winimage.com/</projectUrl>
|
||||
<tags>winimage virtualization vmware hyperv disk image ISO</tags>
|
||||
<licenseUrl>http://www.winimage.com/order.htm</licenseUrl>
|
||||
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||
<!-- <iconUrl>https://github.com/Iristyle/ChocolateyPackages/raw/master/WinImage/winimage-logo.png</iconUrl> -->
|
||||
<dependencies>
|
||||
</dependencies>
|
||||
</metadata>
|
||||
</package>
|
38
WinImage/tools/chocolateyInstall.ps1
Normal file
38
WinImage/tools/chocolateyInstall.ps1
Normal file
@@ -0,0 +1,38 @@
|
||||
$package = 'WinImage'
|
||||
$version = '90'
|
||||
|
||||
try {
|
||||
$params = @{
|
||||
PackageName = $package;
|
||||
FileType = 'zip';
|
||||
Url = "http://www.winimage.com/download/winima$version.zip";
|
||||
Url64Bit = "http://www.winimage.com/download/wima64$version.zip";
|
||||
UnzipLocation = Join-Path $Env:SystemDrive 'tools';
|
||||
}
|
||||
|
||||
$binRoot = Join-Path $Env:SystemDrive $Env:Chocolatey_Bin_Root
|
||||
if (Test-Path $binRoot)
|
||||
{
|
||||
$params.UnzipLocation = $binRoot
|
||||
}
|
||||
|
||||
$params.UnzipLocation = Join-Path $params.UnzipLocation $package
|
||||
|
||||
if (!(Test-Path($params.UnzipLocation)))
|
||||
{
|
||||
New-Item $params.UnzipLocation -Type Directory | Out-Null
|
||||
}
|
||||
|
||||
Install-ChocolateyZipPackage @params
|
||||
|
||||
Get-ChildItem $params.UnzipLocation -Filter *.exe -Recurse |
|
||||
? { $_.Name -match 'winimage' } |
|
||||
% {
|
||||
Generate-BinFile ($_.Name -replace '\.exe', '') $_.FullName
|
||||
}
|
||||
|
||||
Write-ChocolateySuccess $package
|
||||
} catch {
|
||||
Write-ChocolateyFailure $package "$($_.Exception.Message)"
|
||||
throw
|
||||
}
|
25
WinImage/tools/chocolateyUninstall.ps1
Normal file
25
WinImage/tools/chocolateyUninstall.ps1
Normal file
@@ -0,0 +1,25 @@
|
||||
$package = 'WinImage'
|
||||
|
||||
try {
|
||||
$location = Join-Path $Env:SystemDrive $Env:Chocolatey_Bin_Root
|
||||
if (!(Test-Path $location))
|
||||
{
|
||||
$location = Join-Path $Env:SystemDrive 'tools'
|
||||
}
|
||||
$location = Join-Path $location $package
|
||||
|
||||
Remove-Item $location -Recurse -Force
|
||||
|
||||
Push-Location $Env:ChocolateyInstall\bin
|
||||
$batch = 'winimage.bat'
|
||||
if (Test-Path $batch)
|
||||
{
|
||||
Remove-Item $batch
|
||||
}
|
||||
Pop-Location
|
||||
|
||||
Write-ChocolateySuccess $package
|
||||
} catch {
|
||||
Write-ChocolateyFailure $package "$($_.Exception.Message)"
|
||||
throw
|
||||
}
|
Reference in New Issue
Block a user