473,416 Members | 1,828 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

How to add registry key on Access 2007 developer

i need to create a trusted folder for access 2007 runtime to do that I need to add a registry key by using wizard on access 2007 developer. whenever i started package solution wizard it prompts me to a registry key addition screen and asks for root key name and value i have found some code from the archive but dont know how to modify it for wizard can some one help me with the details.
the code that i found is

The security system changed in A2007.
You have to determine a Trusted Location (folder) for your accdb.
In full version that's done by adding the place to a list under Access
options. Runtime has no office menu button. So you have to add the folder to
the registry manually adding a locations key, e.g.:

[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\A ccess\Security\Trusted
Locations\Location1]
AllowSubFolders (REG_DWORD) = 1
Path (REG_SZ) "C:\MyTrustedDatabaseFolderNo1"

[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\A ccess\Security\Trusted
Locations\Location2]
AllowSubFolders (REG_DWORD) = 1
Path (REG_SZ) "C:\MyTrustedDatabaseFolderNo2"

Thank you
Sep 4 '07 #1
7 8818
ADezii
8,834 Expert 8TB
i need to create a trusted folder for access 2007 runtime to do that I need to add a registry key by using wizard on access 2007 developer. whenever i started package solution wizard it prompts me to a registry key addition screen and asks for root key name and value i have found some code from the archive but dont know how to modify it for wizard can some one help me with the details.
the code that i found is

The security system changed in A2007.
You have to determine a Trusted Location (folder) for your accdb.
In full version that's done by adding the place to a list under Access
options. Runtime has no office menu button. So you have to add the folder to
the registry manually adding a locations key, e.g.:

[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\A ccess\Security\Trusted
Locations\Location1]
AllowSubFolders (REG_DWORD) = 1
Path (REG_SZ) "C:\MyTrustedDatabaseFolderNo1"

[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\A ccess\Security\Trusted
Locations\Location2]
AllowSubFolders (REG_DWORD) = 1
Path (REG_SZ) "C:\MyTrustedDatabaseFolderNo2"

Thank you
  1. First of all, I must warn you that MANUALLY EDITING THE SYSTEM REGISTRY IS A VERY RISKY BUSINESS even if you know what you are doing. Having stated this, and getting it off my chest, the following instructions should enable you to make the required entries manually.
  2. Run Regedit.exe to Open the Registry Editor.
  3. Select File ==> Export ==> Select 'All' in the Export range ==> Save. These actions will save your System Registry (*.reg) to the location that you specified.
  4. Navigate the Main Registry Key HKEY_CURRENT_USER as far down as you can until you need to Add a New Key Value. You may be able to get to Trusted Locations but I'm really not sure.
  5. When you need to add a New Key, right click on the last Key referenced then New ==> Key ==> Type in Key Name such as Location1, Location2, etc. ==> Enter.
  6. When it comes time to enter the 2 Values under Location1 or Location2, select either Location.
  7. Right Click Location ==> New ==> DWORD Value ==> AllowSubFolders ==> Enter. The Type Field will automatically be generated (REG_DWORD).
  8. Right Click on AllowSubFolders ==> Modify ==> 1 ==> Enter.
  9. Right Click Location ==> New ==> String Value ==> Path ==> Enter. The Type Field will automatically be generated (REG_SZ).
  10. Right Click on Path ==> Modify ==> C:\MyTrustedDatabaseFolderNo? ==> Enter.
  11. Repeate the process for the other Location.
  12. If you run into problems, Import the Entire Registry which you previously Exported via File ==> Import ==> Select File (*.reg) ==> Open.
  13. I have tried to be as precise as possible but this is still a risky business. If you've modified the Registry before, then this should be no problem, if you haven't, then I suggest you get someone who has.
  14. Good Luck and let me know how you make out.
Sep 4 '07 #2
  1. First of all, I must warn you that MANUALLY EDITING THE SYSTEM REGISTRY IS A VERY RISKY BUSINESS even if you know what you are doing. Having stated this, and getting it off my chest, the following instructions should enable you to make the required entries manually.
  2. Run Regedit.exe to Open the Registry Editor.
  3. Select File ==> Export ==> Select 'All' in the Export range ==> Save. These actions will save your System Registry (*.reg) to the location that you specified.
  4. Navigate the Main Registry Key HKEY_CURRENT_USER as far down as you can until you need to Add a New Key Value. You may be able to get to Trusted Locations but I'm really not sure.
  5. When you need to add a New Key, right click on the last Key referenced then New ==> Key ==> Type in Key Name such as Location1, Location2, etc. ==> Enter.
  6. When it comes time to enter the 2 Values under Location1 or Location2, select either Location.
  7. Right Click Location ==> New ==> DWORD Value ==> AllowSubFolders ==> Enter. The Type Field will automatically be generated (REG_DWORD).
  8. Right Click on AllowSubFolders ==> Modify ==> 1 ==> Enter.
  9. Right Click Location ==> New ==> String Value ==> Path ==> Enter. The Type Field will automatically be generated (REG_SZ).
  10. Right Click on Path ==> Modify ==> C:\MyTrustedDatabaseFolderNo? ==> Enter.
  11. Repeate the process for the other Location.
  12. If you run into problems, Import the Entire Registry which you previously Exported via File ==> Import ==> Select File (*.reg) ==> Open.
  13. I have tried to be as precise as possible but this is still a risky business. If you've modified the Registry before, then this should be no problem, if you haven't, then I suggest you get someone who has.
  14. Good Luck and let me know how you make out.
Adezii thanks for your help i tried it worked manually but i wanted to add it to my installation executable through Access 2007 Developer Extensions which creates it automatically. on a certain point it asks if i want to add a registry key or not. and after that point i need to type inputs for key , name and value options and select a root from the list which contains all user etc. this is the image from the Microsoft help page.
Sep 5 '07 #3
ADezii
8,834 Expert 8TB
Adezii thanks for your help i tried it worked manually but i wanted to add it to my installation executable through Access 2007 Developer Extensions which creates it automatically. on a certain point it asks if i want to add a registry key or not. and after that point i need to type inputs for key , name and value options and select a root from the list which contains all user etc. this is the image from the Microsoft help page.
If you have the option to automatically add values to the Registry by some GUI, by all means use it. I was under the mistaken idea that you wanted to add the entries manually. Glad it worked out for you.
Sep 5 '07 #4
out of the following code can you explain to me which part is the root which part is the key , which part is the name and which part is the value so i can modify my installation file forgot to tell i am using a virtual machine so i am willing to try anything
[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\A ccess\Security\Trusted
Locations\Location1]
AllowSubFolders (REG_DWORD) = 1
Path (REG_SZ) "C:\MyTrustedDatabaseFolderNo1"
Sep 5 '07 #5
I added a registry key manually as directed, and at least didn't seem to screw anything up. However, I am still getting the security warning on startup. My "trusted location" is on a network drive, not a local drive, so I think I have to also find a way of editing the registry that is the same thing as clicking the "Allow network locations" box in the Trust Center.

After reviewing the Registry settings on the one PC where I have the full version of Access installed, it looks as if there is a Registry setting:
[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\A ccess\Security\TrustedLocations
AllowNetworkLocations(REG_DWORD) = 1

So I added this manually to the PC where I have only Access Runtime installed. Again, didn't seem to break anything, but I'm still getting the security warning everytime I start the Access application. Tried rebooting, no help.

ANy other ideas?
Oct 4 '07 #6
I would like to answer the solution. I can't find registry Key Type field in Access Develeoper Extensions. On MS WEB page it seems good but not in a real situation.
Thedeli, could you solve the problem?

Thanks for answers.

Z
Apr 8 '08 #7
mshmyob
904 Expert 512MB
Create a text file with the .REG extension and put this in it and it will eliminate the Trusted Location on your computer.

Run this file on any computer you want to install the runtime on.

This will eliminate needing a trusted directory and will remove the message from Runtime.

Is this what you want?

Expand|Select|Wrap|Line Numbers
  1. REGEDIT4
  2.  
  3. [HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Access\Security]
  4. "VBAWarnings"=dword:00000001
  5.  
cheers,
Apr 8 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

29
by: Paul H | last post by:
Why the heck was this dropped? All my dbs use ULS even the complex ones. It aint perfect, it's too fiddly, but it works. How will I be able to say "These users can run these reports and these...
0
by: umlv | last post by:
Hi, I understand that the runtime will be free with access 2007. I wonder about the following scenario: A user will have the full version of access 2003 installed (or an earlier version). A...
5
by: ARC | last post by:
Hello, A user posted a reply to a post of mine regarding the fact that Access 2007 would be free, or maybe I misunderstood? All I could find on Microsoft's site was information regarding the...
17
by: Neil | last post by:
A client of mine likes some of the new bells and whistles in Access 2007, and is thinking about converting our A03 format MDB to an A07 format file. However, while some of the users have A07, many...
4
by: David Kates | last post by:
I was one of the few who was able to download the Access 2007 runtime when it was available for a short time. I installed it but cannot figure out how it runs an Access 2007 database. There is no...
18
by: Dennis | last post by:
Greetings. I want to run the two versions of Access on the same machine (2003 & 2007). I still need 2003 for most of my work, yet I need to start learning 2007. In my previous attempts at this,...
0
by: Gary | last post by:
I'm having trouble entering Additional Registry Keys into my Package Solution that will deploy the Access 2007 runtime. (Client machine is running XP with Office 2007 Standard.) The Package...
9
by: prakashwadhwani | last post by:
Hi !! I'm about to develop a new project for a client. Should I go about it in Access 2003 or 2007 ? Purchasing it either for me or for my client is not a major consideration here ... what I'd...
2
by: IT Couple | last post by:
Hi I've heard that I can convert Access database into normal stand alone program using Developer Extension. What are the limitations or incompatibilities or difficulties that I can expect when...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.