What is wrong with installing the application by copying the contents of Bin> Debug folder?

To test the use of not very complex WPF applications, I often do not do the installer - just after creating the project, copy Bin> the contents of the Debug folder in the VS2008 project folder to the user's computer’s hard drive and place the icon on the desktop. There are no entries in the Windows registry.

Are there any drawbacks to this way of using Windows applications for the testing period?

+3
source share
5 answers

There is nothing wrong with this approach at all - this is what is called xcopy deployment . You can’t do this:

  • write to add / remove programs for users using
  • the ability to add shortcuts to the desktop / Start menu / quick launch
  • any registry changes for settings, etc.

Another advantage is that you can get your application on the computer by a user who does not need administrative privileges to install.

It really meets your requirements. If you do not need any installer functions, then just copying files is a good approach.

I agree with other comments about using release builds, though, especially if you are deploying for real use, and not just for testing.

+10

exe, dll , , - . , .

, . , , , , ​​ .NET, .

, , , exe . - , . , , - Sysinternals.

+3

. , 1 - 3 , . , 3 ( ..), Drawbac . , , , , . , .:( , , .

+1

, , . xcopy/.bat :

  • .bat, .
  • script .
  • script.

, .bat( !).

+1

Source: https://habr.com/ru/post/1730694/


All Articles