Select to view content in your preferred language

Using NSIS to deploy Desktop extensions

643
1
11-16-2012 10:18 AM
BillyBuerger
Frequent Contributor

I'm just finally catching up and starting to upgrade my ArcDesktop applications to work with Arc10/10.1.  One of the exercises in doing this was to update the Deployment projects.  I have never been a big fan of the way Visual Studio does their deployment projects.  It seems to be a lot of work to get everything in place correctly.  I had wanted to use NSIS in the past.  But there didn't seem to be an easy way to do the RegAsm part as it's not installed on PCs unless the .NET SDK was installed.  The deployment projects in VS included libraries to do this registration without requiring RegAsm.  Now that with Arc10, ESRI uses their own esriRegAsm to register the extension DLLs, you know that if ArcDesktop is installed, so is this command.  In fact, all the InvokeEsriRegAsm project does is call the program with your extension DLL as an argument.  It wasn't too difficult to make an NSIS file that does this.

So, I figured I would share what I came up with in case anyone else is interested.  You can download my sample project and use it as you like.  I created a page where I plan on documenting how it works and stuff.  Currently it's just a placeholder with the download link.

Arc10 NSIS Sample

0 Kudos
1 Reply
AbelPerez
Frequent Contributor
Super!!! I plan on doing the same but only with Inno Setup as I've used that for like 10 years and am very familiar with it. I'll come back and take a look at your sample to use as a guide.
0 Kudos