Archive: Examples Needed


Examples Needed
I am trying to make sense of the docs, but I am new to this, and I could use a little help. Are there working examples anywhere that show:

a. how to add uninstall info to Add/Remove programs

and

b. how to install and register a .dll

I have read the docs on these topics, but real examples would be a big help.

Thanks


There are examples in your NSIS directory under Examples, examples at the Archive and some useful information (including how to add uninstall info to Add/Remove and DLL registeration) in one of the manual's appendixes.

If you're using NSIS 1.98 then the examples are in the root directory of the NSIS directory and there are no such appendix in the manual.


No, no. I saw all those examples, and the info about putting an item in Add/Remove. What I was hoping for was some examples which actually show the installation and registration of a .dll, and/or the actual addition of an item to the Add/Remove software list. I don't see anything like that in the archive or the examples.

JAS


Yes, yes... You were not looking hard enough ;)

bigtest.nsi examples both of them.


Argh!!! I am going to have to get me some reading glasses.

Sorry to have bothered you.

JAS


Well... I was looking for a real example of the usage of the upgrade a DLL macro that is shown in "Upgrade a DLL (macro) Part 1.nsi" (in the archive), and BigTest.nsi doesn't show this.

Some questions:

1. Where do I put the macro file so that the compiler can find it.

2. Why does the file name include "...Part 1..."? Is there more of this macro to come?

Thanks,

JAS


You should put the macro somewhere above the point you're using it. The best way, in my opnion, is to put the macro in an .nsh file and use !include to include it into your script.

Part 1 means the first script in that Archive page. Because that Archive page only has one script, there is no part 2.


I see. Thanks.

JAS