Following is the image of the SheetKraft website login page which shows its version number (126.96.36.199):
If there is a new Sheetkraft update, which you want to apply to your Sheetkraft web application, this can be done by applying patch.
Access your Server machine and run Windows Powershell.
NOTE: Run the Windows Powershell as administrator:
Fig 1.2Change the directory to the Sheetkraft website folder by using the cd command. For example, cd C:\Users\Downloads\SK\SheetKraft.Full\publish.
NOTE: Make sure the patch (ApplyPatch.ps1) is within the same folder along with Runner folder and Patches folder as shown in the following figure:
Once you have navigated to website folder(in this case publish folder) in Windows PowerShell, run the patch by executing the “.\ApplyPatch.ps1” command.
You will be provided with several options of version that are present in the Patches folder.
Fig 1.5You can select one of them or provide another version by manually typing the version number as highlighted in the following figure:
If the version number is from the Patches folder, it will update the website and database and if the version number is not present in the Patches folder, it will download the version and then update the website and database.
Once the website and database is updated successfully. The SheetKraft website will be updated with the latest version (188.8.131.52) as shown in the following figure:
Issues in applying patch:
This is because Powershell has an execution policy that controls what scripts can be run. The policy can be set by running the following command as an admin:
Some other parameters of Set-ExecutionPolicy are:
However, if you are not allowed to do this, you can bypass the policy on a one-time basis. Run the following command where the policy is bypassed:
Then try “.\ApplyPatch.ps1” command again.