Archive: Using NSIS for MS Excel Add-Ins Installation


Using NSIS for MS Excel Add-Ins Installation
Everybody, hi!

Please help me as I am in trouble :(

I want to use NSIS to install MS Excel 2002/03 XLA add-ins on any computer.

Almost all process is well but I've got with one trouble: for correct add-ins installation and working registry key should be created. I don't know how to perform this as:

1) registry key must be created in HKEY_USERS hive but there are no user names in this registry section, used SIDs only :( how to get SID value for amy user name in local station / domain?

2) key name must be incremental i.e. - if key "OPEN1" already created by another installed add-in, my key should be named "OPEN2" and any other name will be ignored (see the screenshot below) :mad: How to get correct key name?

Very-very thanx!

http://img827.imageshack.us/img827/547/regscrn.jpg

Uploaded with ImageShack.us


If you only need this user's reghive, just use HKCU. It'll go into the proper HKU\sid key. If you need them all, use enumusersreg.

To figure out how many OPEN* values there are use EnumRegValue to loop through all values.


To get SID from username:
http://nsis.sourceforge.net/UserMgr_plug-in