VB6 Outlook Com Addin cant access registry or utilize shell execute
On Sep 27, 12:36 pm, "Ken Slovak - [MVP - Outlook]"
wrote:
My only opinion on this is that it's a mess and should be re-architected.
Just about the worst way of doing things has been carefully selected at
almost every step of the process. Like I said originally it's hard to know
even where to start. A day or so of re-design should solve many, many days
of troubleshooting.
--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Optionshttp://www.slovaktech.com/products.htm
wrote in message
oups.com...
snip
Thanks for responding so quickly Ken. The installation is not one of
my design though I have made significant changes to it. During the
installation the user enters profile data (First Name, Last Name,
ect.) unfortunately since the user isnt the one installing the
application if the data isnt stored in HKLM the intended restricted
users profile wont have access to the profile data entered during the
install once they log onto their restricted profile. Hence the reason
I was writing user specific data to a non user specific hive. I could
perhaps write an additional function that moves the profile data from
HKLM to HKCU and then deletes the HKLM entries but that assumes I wont
run into the same problem accessing HKLM...I will work to move the
location of the registry value written by the button click to HKCU to
prevent the complications you have outlined.
objRegistrySettings.RegWrite HKEY_CURRENT_USER, "SOFTWARE\AddinName
\Settings", Button1, "1"
To elaborate further on the intended design when the button is clicked
the value that is written to the registry acts as a state switch. Once
the state switch has been set in the registry a seperate executable is
called via shellexecute that reads the state switch and loads to the
appropriate form then resets the state switch. Version 2 of the plugin
is a work in progress and will no longer require information be
entered during installation but rather on first launch in the meantime
however I would like to get the current version to an acceptable
functional level with out too much work on the installer. Im willing
to do what must be done any input would be greatly appreciated.
Brandon- Hide quoted text -
- Show quoted text -
Understood I will begin the process. My plans so far are as follows if
i have missed something please feel free to make suggestions.
So far.
I will move the MyAddin.dll from system32 into the app program files
folder.
I will move all entries besides the entry that registers the plugin
for all users with Outlook from HKLM to HKCU.
I will then move the profile creation screen from the installer to the
first addin launch overcoming the need to place profile data in HKLM.
Thanks once again,
Brandon
|