This guide will explain how to upgrade to CloneDeploy 1.1.0 on Windows installations. Please note I will no longer be creating automated update packages for Windows.
I. Upgrade Path
CloneDeploy 1.0.0 and CloneDeploy 1.0.1 including all patch versions can be directly upgraded to CloneDeploy 1.1.0
II. Notices
- LDAP authentication has a new implementation. Existing LDAP users will not be able to login until the new settings are properly configured
- The client boot image had many of it’s binaries updated. If you are using the client iso / usb, you must generate a new one after the upgrade, the previous one will not work.
III. Upgrade
This guide assumes a 64-bit version of Windows, if you are using 32-bit, update all occurrences of program files(x86) to program files
- Download the CloneDeploy-1.1.0-upgrade.zip
- Extract it to your desktop
- Stop the IIS Web Service
- Open File Explorer and navigate to C:\Program Files (x86)\clonedeploy\web
- Open web.config with a text editor such as Notepad++
- Copy your database password from line 8 and your dbEncryptionKey from line 37
- Rename the C:\Program Files (x86)\clonedeploy\web folder to web.bak (In case we need to roll back)
- Open the clonedeploy-1.1.0-upgrade folder on your desktop and navigate to the web directory
- Rename web.config.windows to web.config
- Edit web.config and change xx_marker1_xx to your database password and xx_marker2_xx to your dbEncryptionKey
- Copy the tftpboot and web folders from clonedeploy-1.1.0-upgrade to C:\Program Files (x86)\clonedeploy (the tftpboot folder will be merged with the existing, and the web folder should be new since the old version was renamed to web.bak)
- Open a cmd prompt as administrator
-
cd "c:\Program Files (x86)\MariaDB 10.1\bin"
-
mysqldump.exe clonedeploy -u root -p > %userprofile%\Desktop\cdbackup.sql -v
- Enter your database password when prompted
-
mysql.exe clonedeploy -u root -p < %userprofile%\Desktop\clonedeploy-1.1.0-upgrade\1.1.0-update.sql -v
- Enter your database password when prompted
-
icacls "C:\Program Files (x86)\clonedeploy\web" /T /C /grant IIS_IUSRS:(OI)(CI)M
- Restart the IIS Service
- You may need to clear your browser’s cache to reflect the new web design