From 200cec0e2358b8b529009d80946805992a42e9b7 Mon Sep 17 00:00:00 2001 From: perploug Date: Thu, 3 Apr 2014 11:51:51 +0200 Subject: [PATCH] Hardcodes starterkit guid into the installer This way we can change it remotely to another package instead of relying on just getting the first guid in the collection of kits --- .../Install/InstallSteps/StarterKitDownloadStep.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Umbraco.Web/Install/InstallSteps/StarterKitDownloadStep.cs b/src/Umbraco.Web/Install/InstallSteps/StarterKitDownloadStep.cs index 5167f6cf66..f5bc96fdea 100644 --- a/src/Umbraco.Web/Install/InstallSteps/StarterKitDownloadStep.cs +++ b/src/Umbraco.Web/Install/InstallSteps/StarterKitDownloadStep.cs @@ -21,16 +21,16 @@ namespace Umbraco.Web.Install.InstallSteps private const string RepoGuid = "65194810-1f85-11dd-bd0b-0800200c9a66"; + //adding a package guid hardcoded, so we can change the sent package remotely, currently this just points to txt kit + //but a future starterkit will be inserted under the same guid on our. + private const string PackageGuid = "69E44BEB-15FF-4CEE-8B64-0A7DAE498657"; + public override InstallSetupResult Execute(Guid? starterKitId) { //if there is no value assigned then use the default starter kit if (starterKitId.HasValue == false) { - //get a default package GUID (currently the first one found) - var r = new org.umbraco.our.Repository(); - var modules = r.Modules(); - var defaultPackageId = modules.First().RepoGuid; - starterKitId = defaultPackageId; + starterKitId = Guid.Parse(PackageGuid); } else if (starterKitId.Value == Guid.Empty) {