dbTalk Databases Forums  

Runtime module

comp.databases.ms-access comp.databases.ms-access


Discuss Runtime module in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Tony Toews
 
Posts: n/a

Default Re: Runtime module - 10-24-2010 , 09:25 PM






On Sun, 24 Oct 2010 18:25:32 -0700 (PDT), Jan S
<jan.simpson (AT) dpiw (DOT) tas.gov.au> wrote:

Quote:
[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\A ccess\Security
\Trusted Locations\Location0]
<snip>

Quote:
[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\A ccess\Security
\Trusted Locations\Location2]
My point though is don't use Location0, 1, 2, etc. Use something
different in there so you don't overwrite somebody else values who
wasn't as smart as you.

So use
[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\A ccess\Security
\Trusted Locations\My Excellent App]

Tony
--
Tony Toews, Microsoft Access MVP
Tony's Main MS Access pages - http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
For a convenient utility to keep your users FEs and other files
updated see http://www.autofeupdater.com/

Reply With Quote
  #12  
Old   
bsn
 
Posts: n/a

Default Re: Runtime module - 10-25-2010 , 11:18 AM






"Jan S" <jan.simpson (AT) dpiw (DOT) tas.gov.au> skrev i en meddelelse
news:8f150590-218e-4227-9ac0-7f2a08fd44e0 (AT) t20g2000yqa (DOT) googlegroups.com...
On Oct 22, 8:39 am, Tony Toews <tto... (AT) telusplanet (DOT) net> wrote:
Quote:
On Thu, 21 Oct 2010 11:59:48 +0200, "ngs" <bsnbsn_SNABELA_ofir.dk
wrote:

I'd suggest not using Location(s) as the registry key. Instead use
your application name. Otherwise you might overwrite a user or other
app created Location(x).

Thanks for answer...
You mean
Path (REG_SZ) "C:\MyDatabaseFolder\MyDatabase.mdb"
???

That might work but I was thinking in terms of
"My excellent application" or "HR database" or "Time keeping database"
Basically whatever you would put in the FE database Startup Options
Application Title.

Tony
--
Tony Toews, Microsoft Access MVP
Tony's Main MS Access pages -http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog -http://msmvps.com/blogs/access/
For a convenient utility to keep your users FEs and other files
updated seehttp://www.autofeupdater.com/
Another approach is
1. create a standard folder structure for your application,
2. in your developer version (full version of Access) set the Trusted
Locations using the Access Options>Trust Center>Trust Center
Settings>Trusted Locations.
Add you folder to the trusted locations list.
3. Using REGEDIT export the [HKEY_CURRENT_USER\Software\Microsoft
\Office\12.0\Access\Security] reg settings. This will create a .REG
The REG key will look something like:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\A ccess\Security]
"VBAWarnings"=dword:00000001

[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\A ccess\Security
\Trusted Locations]
"AllowNetworkLocations"=dword:00000001

[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\A ccess\Security
\Trusted Locations\Location0]
"Path"="D:\\APPS\\"
"AllowSubfolders"=dword:00000001
"Description"=""
"Date"="17/04/2009 2:00 PM"

[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\A ccess\Security
\Trusted Locations\Location2]
"Path"="C:\\Program Files\\Microsoft Office\\Office12\\ACCWIZ\\"
"Description"="Access default location: Wizard Databases"

You can have multiple LOCATIONS, or you can put all you applications
under one folder (D:\APPS) and all subfolders will also be included in
the single entry
4. You can then get the user (or a batch file) to run the .REG file
(just double click)

I use this in a government organisation with a strick lockdown SOE
using runtimes (2007) and it works very well.

Quote:
Thanks a lot - ill take it with me...
Bjarne

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.