Posts 1 - 10 of 17
First | Prev. | 1 2 | Next | Last
|
|
Sven Heitmann
Posts: 193
Joined: 2004-08-23
|
hi
i wonder if it is possible to add 2 events... one fired when the addin is installed/registered and one fired when it is unregistered/uninstalled
i think it would be very usefull for example to clean up property files on uninstallation or setting up files with installation...
what do you think?
additionally i have to save some forminputs into a file or registry... what do you think about 2 methods for storing/retrieving values from the registry wich you could store on the addins registry key as you do with the commandbars/controls settings?
when you uninstall the addin you could delete them and we have a clean uninstallation :)Best regards,
Sven Heitmann |
|
Posted 25 Aug, 2004 03:48:44
|
|
Top
|
|
ong beng hin
Posts: 9
Joined: 2004-08-22
|
Yes, I totally agree!
After having tried out the ADX Toys .Net, I noticed that the addin could not be uninstalled automatically. This is especially useful during development and debugging, where if it resulted in error, proper unistalling is very important (correct me if I'm wrong.)
More specifically, as it is (.Net Version 2.0), what is the proper way of uninstalling if I hit error during debugging? Should I:-
1) Use Customize function of the Excel Toolbar to delete the Addin, and then,
2) Delete the HKEY_CURRENT_USER\...\Addins entry, and then,
3) Use regasm to unregister the Addin's dll?
All these steps done manually??
Would appreciate your comments.
Also, while doing the above manually, I think I have somehow corrupted the Office application and VS installation. Is it OK for me to reinstall Add-In Express after I've reinstalled both Office and VS? (I'm a registered licence user).
|
|
Posted 25 Aug, 2004 05:59:00
|
|
Top
|
|
Sven Heitmann
Posts: 193
Joined: 2004-08-23
|
deleting the registry entries will remove an addin from the office application so that it is no more loaded...
it is not the favorite way to remove an addin because the uninstall event of the addin is not called, where adx will clean up the office command bar
a better and much cleaner way is if you use the "Com AddIns..." Command (i told you yesterday where to find, hope you get it ;)) to remove an addin, the addin will uninstall fine from your application... adx will perform the cleanup for you and the office application will remove the registry entries for the addin
some words about regasm:
adx implements two methods wich will performed when you register/unregister your addin with
regasm <module.dll>
regasm /u <module.dll>
they clean up the registry - deleting the HKEY_CURRENT_USER\...\Addins entry - and i hope will remove the commandbars as well
the most prefered way is - especially when you product is installed somewhere - to remove your addin via the software control panel of windows
internally i'm sure it performs the regasm /u operation...
now, what would be the safest way to remove an addin manually...
i think you have to do 2 things:
1. remove the addin in your office application via the "Com AddIns..." command
2. perform regasm /u ... to unregister your dll and types... this will remove the com specific values from your registry as well
but the scpe of my request was:
besides the adx registry values i would like to see some place for own settings where adx makes two methods for storing and retrieving available
so adx could handle the cleanup on uninstall and all registry settings are on one place
edit:
installing visual studio, office and adx new should be no problem but i think its not necessary ;)
adx crew is on vacation today as someone told me yesterdayBest regards,
Sven Heitmann |
|
Posted 25 Aug, 2004 07:21:30
|
|
Top
|
|
ong beng hin
Posts: 9
Joined: 2004-08-22
|
Hi Sven,
QUOTE
"a better and much cleaner way is if you use the "Com AddIns..." Command (i told you yesterday where to find, hope you get it ;)) to remove an addin, the addin will uninstall fine from your application... adx will perform the cleanup for you and the office application will remove the registry entries for the addin"
UNQUOTE
Yes, I have attached the Com AddIns to the Excel menu, but when I click on it, the ADX Toys .Net was not shown in the Add-Ins Available box at all. Is my installation corrupted??
|
|
Posted 25 Aug, 2004 07:33:41
|
|
Top
|
|
Sven Heitmann
Posts: 193
Joined: 2004-08-23
|
if it is not shown it is not loaded... so if you have still the commandbar available remove it manually
if it is there the uninstallation was corrupt because you deleted the registry keays only and adx could not clean up the command bars
then - to reinstall the toys - recompile it (because registration is done by visual studio) or register the dll by yourself with regasm
btw
this macro will add the com addin command at the top of the tools menu - if anybody else will need it ;)
CommandBars("Tools").Controls.Add Type:=msoControlButton, ID:=3754, Before:=1Best regards,
Sven Heitmann |
|
Posted 25 Aug, 2004 07:40:56
|
|
Top
|
|
ong beng hin
Posts: 9
Joined: 2004-08-22
|
Hi Sven,
OK, I deleted my Office 2000 and reinstalled with Office 2003, as well as reinstalling Add-In Express. Now it works fine, and I can see ADX Toys .Net displayed in the Add-Ins Available box. Could it be the AddIns is not competible with Office 2000??
Anyway many thanks for your help, and since I'm very new to this, hope to be able to consult you later into my development projects.
Best Regards,
Ben |
|
Posted 25 Aug, 2004 08:37:36
|
|
Top
|
|
Sven Heitmann
Posts: 193
Joined: 2004-08-23
|
for office 2000 you need the interop assemblies for office xp to get com addins work...
as far as i see adx should be compatible...
you told the addin was working but get some error once a while... so i think there was some other error but i can not say very much about it...
good luck for your development project =)
Best regards,
Sven Heitmann |
|
Posted 25 Aug, 2004 08:52:02
|
|
Top
|
|
Eugene Starostin
Guest
|
Hi Sven,
Hi Ong Beng,
Sorry for the delay, we had a small vacation :-)
Here I will try to give separate replies to all the questions you put above...
|
|
Posted 26 Aug, 2004 08:19:58
|
|
Top
|
|
Eugene Starostin
Guest
|
i wonder if it is possible to add 2 events... one fired when the addin is installed/registered and one fired when it is unregistered/uninstalled
Good idea! We are sure to add this feature to the next version of ADX.NET.
Am I right in understanding that the OnInstall event will be fired after an add-in is registered as a COM object and registered as a COM add-in?
And the OnUninstall event will be fired after an add-in is unregistered as a COM add-in (after deleting the add-in regkey) and unregistered as a COM object? |
|
Posted 26 Aug, 2004 08:24:53
|
|
Top
|
|
Eugene Starostin
Guest
|
After having tried out the ADX Toys .Net, I noticed that the addin could not be uninstalled automatically.
I'm surprised. Look at Control Panel | Add or Remove Programs. In addition, an add-in can be unistalled via the COM Add-ins dialog box. |
|
Posted 26 Aug, 2004 08:37:53
|
|
Top
|
|
Posts 1 - 10 of 17
First | Prev. | 1 2 | Next | Last
|