![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hi All,
I have created one VSTo COM - addin for office 2007 in vb 2005. I have seen that my code is not working if I access the hkey_Classes_Root or hkey_local_machine through my code on windows VISTA. My code is working fine on all OS except VISTA. My code snippet for modifying HKEY_CLASSES_ROOT is as follows - ------------------------------------------------------------------------------------------------ Dim rk As Microsoft.Win32.RegistryKey rk = Microsoft.Win32.Registry.ClassesRoot With rk .CreateSubKey(".asi", Microsoft.Win32.RegistryKeyPermissionCheck.ReadWri teSubTree) -------------- Error starting from this line .OpenSubKey(".asi", True).SetValue("", "ASI.Document", Microsoft.Win32.RegistryValueKind.String) .CreateSubKey("ASI.Document\shell\open\command") End With ------------------------------------------------------------------------------------------------ My user account is Administrator. Also my trace file (trace.txt) is not generated if my addin's directory is under "program files". If my addin's directory is not in "Program files", then it is working fine! Thanks, Dhananjay |
Ads |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
outlook2003 + vista mail problem | bulo@office | Outlook - General Queries | 3 | August 15th 07 09:26 AM |
Problem create mail with Vista | [email protected] | Outlook and VBA | 3 | June 29th 07 07:50 PM |
sending problem after upgrade to Vista | [email protected] | Outlook - General Queries | 3 | March 10th 07 10:51 AM |
Vista/Outlook problem | Jerome Phillips | Outlook Express | 2 | February 9th 07 01:59 AM |
Windows Vista addin problem. | Fima Furman | Add-ins for Outlook | 17 | February 3rd 07 09:32 PM |