From 14596c81da0440b1645a88de85a7bd495050cfc8 Mon Sep 17 00:00:00 2001 From: bsaulsbury <30807103+bsaulsbury@users.noreply.github.com> Date: Thu, 5 Jul 2018 14:51:58 -0400 Subject: [PATCH] Fix SetVersion function in stagelessv4.vbs SetVersion function in stagelessv4.vbs template was missing the line to actually set the COMPLUS_Version variable, causing the .NET 3.5 installation prompt on a fresh Windows 10 installation when using a stageless payload. --- templates/stagelessv4.vbs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/stagelessv4.vbs b/templates/stagelessv4.vbs index 4d7a9e1..cb62259 100644 --- a/templates/stagelessv4.vbs +++ b/templates/stagelessv4.vbs @@ -4,6 +4,7 @@ End Sub Sub SetVersion Dim shell Set shell = CreateObject("WScript.Shell") +shell.Environment("Process").Item("COMPLUS_Version") = "v4.0.30319" End Sub Function Base64ToStream(b) @@ -253,4 +254,4 @@ Run If Err.Number <> 0 Then DebugPrint Err.Description Err.Clear -End If \ No newline at end of file +End If