diff --git a/vcarve-pro-makerspace-11.0/tools/chocolateyInstall.ps1 b/vcarve-pro-makerspace-11.0/tools/chocolateyInstall.ps1
index 6e07b28..4e96674 100644
--- a/vcarve-pro-makerspace-11.0/tools/chocolateyInstall.ps1
+++ b/vcarve-pro-makerspace-11.0/tools/chocolateyInstall.ps1
@@ -1,11 +1,13 @@
+$toolsDir = Split-Path -Parent $MyInvocation.MyCommand.Definition
+
$packageArgs = @{
packageName = $env:ChocolateyPackageName
FileType = 'exe'
SilentArgs = '/S'
- Url64 = '\\ucs\software\VCarveProMakerspaceEditionV11008_Setup.exe'
- Checksum64 = 'b6f2243d832b87c89382da7df6f309580256572d0beb88189b54bd54d56bf6f7'
+ File64 = Join-Path $toolsDir 'VCarveProMakerspaceEditionV11008_Setup.exe'
+ Checksum64 = '8f7476e8f68f00d07335ffef4369f3dce827ceb236ace1f8211137fb9542ba99'
ChecksumType64 = 'sha256'
ValidExitCodes = @(0, 1223)
}
-Install-ChocolateyPackage @packageArgs
+Install-ChocolateyInstallPackage @packageArgs
diff --git a/vcarve-pro-makerspace-11.0/update.sh b/vcarve-pro-makerspace-11.0/update.sh
new file mode 100755
index 0000000..200bae7
--- /dev/null
+++ b/vcarve-pro-makerspace-11.0/update.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+cd -- "$( dirname -- "${BASH_SOURCE[0]}" )"
+
+file=$(ls tools/VCarveProMakerspaceEditionV110*_Setup.exe)
+version=$(7z e -so $file ProductInfo.ini | awk -F= '$1=="product_version" { print $2 }')
+major_version=$(awk -F. -v RS='\r\n' '{print $1"."$2}' <<< $version)
+minor_version=$(awk -F. -v RS='\r\n' '{print $3"."$4}' <<< $version)
+checksum=$(sha256sum $file | awk '{print $1}')
+
+if [ "$major_version" != "11.0" ]
+then
+ echo "Major version update! This probably won't really work well."
+ exit 1
+fi
+
+echo "Current version for ${PWD##*/}: major=$major_version, minor=$minor_version, checksum=$checksum"
+
+sed -i "/File64/s|'[^']*$|'${file##*/}'|" "${PWD##*/}.nuspec"
+sed -i "s|[^<]*|$minor_version|" "${PWD##*/}.nuspec"
+sed -i "/Checksum64/s|=.*|= '$checksum'|" tools/chocolateyInstall.ps1
diff --git a/vcarve-pro-makerspace-11.0/vcarve-pro-makerspace-11.0.nuspec b/vcarve-pro-makerspace-11.0/vcarve-pro-makerspace-11.0.nuspec
index c9c7361..e636c5a 100644
--- a/vcarve-pro-makerspace-11.0/vcarve-pro-makerspace-11.0.nuspec
+++ b/vcarve-pro-makerspace-11.0/vcarve-pro-makerspace-11.0.nuspec
@@ -2,7 +2,7 @@
vcarve-pro-makerspace-11.0
- 0.8
+ 1.5
VCarve Pro Makerspace Edition
Vectric Ltd
Adam