Installation package

Studied for a long time. . . Finally a little achievement

Online tutorials, looked a long time, there are also hard to write about your own journey

Here are two cases packing

Where: webconfig installation process needs to be modified or the like execute sql

1.webapplication case referred to the case of A

2.website case  referred to the case of B

Most of the operations, in the garden blog search, have the answer

My problem here speaking at

One: To modify webconfig and the like, it is necessary to add Install installation class, in the case of B, add a new entry in the class did not Install, a sun, on this, I was depressed for a long time .... The last solution is to create a new a library, class library just put a class Install

Two: For A and B cases, the projects have cited Install, and then the final output will be more than a Install.dll, I have studied for a long time, there is no way it is not output.

So, I had thought of a crooked trick, in Appliction_start event in the Install.dll deleted

Three: For B, the publisher site will have a lot DLL, it ended up one of the plug-in with the next on the list, it does not look this URL:

http://www.cnblogs.com/Spring/archive/2009/04/21/1440139.html

Of course, the key question is not this, but after adding the project, there will be " pre-compiled application " It's wrong, this problem also fooled me for a long time.

The solution is: after the release site, the "PrecompiledApp.config" cut out, and then install the project, in the form of additional files added

 

The problem is over. . . . .

 

Reproduced in: https: //my.oschina.net/secyaher/blog/274056

Guess you like

Origin blog.csdn.net/weixin_33779515/article/details/91966995