One Click Deployment Setup Requires Installation of .NET Framework 4.7.2

911 Views Asked by At

I'm trying to create an application that does not require admin rights to use.

When I publish the application there are 3 components shown:

  1. A folder called "Application Files"
  2. setup.exe
  3. MyApplicationName.application

Running MyApplicationName.application executes my application as intended, adds an icon to the desktop and notifies the user when an update has been pushed out. :)

My users by default try to click on setup.exe and this requires them to get admin rights to install the application.

I can see two solutions and I'll accept either.

  1. How do I get rid of the setup.exe file from being created on publish.
  2. How do I get the setup.exe file not to require installation of the .NET framework or anything else that will need admin rights/privileges.
1

There are 1 best solutions below

0
On BEST ANSWER

To get rid of Setup.exe I had to unload my project in Visual Studio and edit the .csproj file.

The changes I've made are listed bellow.

Set BootstrapperEnabled to false

<BootstrapperEnabled>false</BootstrapperEnabled>

Deleted the section bellow

<BootstrapperPackage Include=".NETFramework,Version=v4.7.2">
  <Visible>False</Visible>
  <ProductName>Microsoft .NET Framework 4.7.2 %28x86 and x64%29</ProductName>
  <Install>true</Install>
</BootstrapperPackage>