How to make VSPackage installer

The first step to generate a REG file:

Money into the directory:

C: \ Program Files \ Microsoft Visual Studio 2008 SDK \ VisualStudioIntegration \ Tools \ Bin This is the SDK directory, use the command regpkg.exe

The command format is: regpkg / root: <VS registry path> / codebase <assembly path> / regfile: <registry file output path>
For example:
C: \ Program Files \ in the Microsoft Visual Studio 2008 SDK \ VisualStudioIntegration \ Tools \ the Bin > regPkg.exe /root:Software\Microsoft\VisualStudio\9.0 / codebase "D: \ Projects \ keelkit \ trunk \ src \ KeelKit.CodeLineCounter \ bin \ Release \ KeelKit.CodeLineCounter.dll" / regfile: "D: \ Projects \ keelkit \ trunk \ src \ KeelKit.CodeLineCounter \ bin \ Release \ reg.reg "

After the execution results are as follows:

 

The second step is added security 09130622_5PfP.pnginstallation project, point the installation program Registry Editor, click the registry root of the tree, right-click the Import menu, select just the reg file.
Modify it as shown in FIG items:

09130622_jUSm.png

CodeBase the file path used [the TARGETDIR] mscoree.dll replaced in the file path is InprocServer32 [SystemFolder]

The third step is to re-compile and install the project. Installation can be completed!

Reproduced in: https: //my.oschina.net/mysticboy/blog/541358

Guess you like

Origin blog.csdn.net/weixin_34379433/article/details/92064634