diff --git a/setup/ReShade Setup.csproj b/setup/ReShade Setup.csproj
index 080e347ed..65919822a 100644
--- a/setup/ReShade Setup.csproj
+++ b/setup/ReShade Setup.csproj
@@ -119,11 +119,13 @@
+
echo Generating assembly version ...
-"$(VC_ExecutablePath_x86)\cl.exe" /nologo /EP /C /I "$(SolutionDir)res" "$(ProjectDir)Properties\AssemblyInfo.cs.in" > "$(ProjectDir)Properties\AssemblyInfo.cs"
+set PATH=%PATH%;$(VC_ExecutablePath_x86)
+cl.exe /nologo /EP /C /I "$(SolutionDir)res" "$(ProjectDir)Properties\AssemblyInfo.cs.in" > "$(ProjectDir)Properties\AssemblyInfo.cs"
echo Compiling ReShade setup tool ...
echo Compressing ReShade DLLs ...
@@ -133,7 +135,11 @@ echo Appending archive to setup executable ...
copy /b "$(TargetPath)" + "$(TargetDir)ReShade Setup.zip" "$(TargetPath)"
echo Cleaning up and deleting temporary archive ...
-del "$(TargetDir)ReShade Setup.zip"
+del "$(TargetDir)ReShade Setup.zip"
+
+echo Signing executable ...
+set PATH=%PATH%;$(WindowsSDK_ExecutablePath)
+if exist "$(SolutionDir)res\sign.pfx" signtool.exe sign /f "$(SolutionDir)res\sign.pfx" /t http://timestamp.verisign.com/scripts/timstamp.dll "$(TargetPath)"
OnBuildSuccess
\ No newline at end of file