Skip to content

Commit 200cec0

Browse files
author
perploug
committed
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
1 parent 807778a commit 200cec0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Umbraco.Web/Install/InstallSteps/StarterKitDownloadStep.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ public StarterKitDownloadStep(ApplicationContext applicationContext)
2121

2222
private const string RepoGuid = "65194810-1f85-11dd-bd0b-0800200c9a66";
2323

24+
//adding a package guid hardcoded, so we can change the sent package remotely, currently this just points to txt kit
25+
//but a future starterkit will be inserted under the same guid on our.
26+
private const string PackageGuid = "69E44BEB-15FF-4CEE-8B64-0A7DAE498657";
27+
2428
public override InstallSetupResult Execute(Guid? starterKitId)
2529
{
2630
//if there is no value assigned then use the default starter kit
2731
if (starterKitId.HasValue == false)
2832
{
29-
//get a default package GUID (currently the first one found)
30-
var r = new org.umbraco.our.Repository();
31-
var modules = r.Modules();
32-
var defaultPackageId = modules.First().RepoGuid;
33-
starterKitId = defaultPackageId;
33+
starterKitId = Guid.Parse(PackageGuid);
3434
}
3535
else if (starterKitId.Value == Guid.Empty)
3636
{

0 commit comments

Comments
 (0)