J
Jason
How do you set the macro security level for the Access
2003 runtime? There are no menu bars.
Thank you,
Jason
2003 runtime? There are no menu bars.
Thank you,
Jason
Thanksincluded in a chained installation package)
Hi Jason,
From your descriptions, I understand that you would like to set Security
Level in Access 2003 Runtime. Have I understood you? If there is anything I
misunderstood, please feel free to let me know.
Based on my knowledge, Even though an application is developed in Low
Security, when it's deployed the target machines running Access Runtime are
in Medium security by default and you cannot modify Macro Security settings.
However, you could do in this way (NOTE! that there is not a way to deploy
the applicable registry keys to modify Macro Security settings with Runtime
using Access Developer Extensions 2003, A more robust application like
InstallShield would better serve you)
The applicable registry settings are:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines]
"SandBoxMode"=dword:00000002
[HKEY_LOCAL_MACHINE\Software\Microsoft\Office\11.0\Access\Security]
"Level"=dword:00000001
Note Again that these are DWORD registry entries, and cannot be implemented
within the Package Wizard. An internet package uses an .INF file to add
registry values and DWord's are not a documented key that can be added via
an .INF. It only accepts binary registry entries. So to use the Package
Wizard, you'd need to work around this.
Moreover, you could do this as another workaround, which may be more complex
A. Manually add/change those keys on the target machines
B. Perform this through a script (which would need to be run separately or
included in a chained installation package)
C. Install and run the sample code database previously provided. It does
adjust both the Sandbox and Security Level code. If the Security Level
entry does not exist on your clients then you'll have to programmatically
create it.
D. Sign your code with a digital certificate
The developer needs to get a digital signature from one of the companies
listed on the following web site. The company you choose should provide a
Code Sign signature:
Microsoft Root Certificate Program Members
http://msdn.microsoft.com/library/?url=/library/en-us/dnsecure/html/rootcert
prog.asp
The developer can also use a signature created with Microsoft Certificate
Server.
Certificate Server comes with Microsoft Windows NT 4.0 Option Pack,
Microsoft
Windows 2000 Server and Microsoft Windows 2003 Server.
Steps to Add the Digital Signature to the Application
1. Once you have the digital signature on development computer open the
database you want to create the setup routine for.
2. On the Tools menu, point to Macro, and then click Visual Basic Editor.
3. In the Project Explorer, select the project you want to sign.
4. On the Tools menu, click Digital Signature.
5. If you haven't previously selected a digital certificate or want to use
another one, click Choose, select the certificate, and then click OK twice.
6. To use the current certificate, click OK.
7. Close the Visual Basic Editor and Access.
8. Create the setup routine.
Steps to Trust the Signature if it isn't automatically trusted
1. Open the database.
2. Click Yes if prompted with the security warning: Unsafe expressions are
not blocked.
3. Click Details
4. Click View Certificate
5. Click the Certification Path tab.
6. Select the Certification path that has the Red x and then click View
Certificate.
7. Click Install Certificate.
8. In the Certificate Import Wizard, click Next.
9. Leave the option to Automatically select the certificate store based on
the type of certificate.
10. Click Finish
11. Click Yes
12. Click OK four times until you are back at the security warning.
13. Open or Cancel the operation.
14. The next time you open the database, you will have the option to
"Always trust files from this publisher and open them automatically.
Thank you for your patience and cooperation. If you have any questions or
concerns, don't hesitate to let me know.
Sincerely yours,
Michael Cheng
Microsoft Online Support
***********************************************************
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Please reply to newsgroups only, many thanks.