Printable Version of Topic

Click here to view this topic in its original format

UtterAccess Forums _ Access Q and A _ Package Solution: Additional registry keys type

Posted by: SilentFiddler May 6 2009, 07:12 AM

I am trying to distribute a runtime application in which I need to have a registry key set:
[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Access\Security\Trusted Locations] "AllowNetworkLocations"=dword:00000001
The details for the Package Solution wizard on:
show that you can add registry keys and set name, type, value etc, but my version of the Developer Extensions does not include Type on Page 3 of the Wizard.
I have downloaded the January 09 release of the DE and re-installed, but still no luck.
Has anybody had any success in getting registry keys set through the installation.
I have been successful with the following:
1. Manually setting the registry key.
2. Creating a registry settings file, and running that to set the registry keys.
3. Setting up a key for the path to a trusted location within the Package Solutions Wizard.
The thing I have the problem with is setting the AllowNetworkSettings key, because this needs to be type DWORD and my developer extensions doesn't have anywhere (that I can find!) to choose the type.
I could "crunch" a solution by using 1 or 2 above (probably 2) but as this is a distributed solution, I want to be able to just give users an install package with nothing else to do afterwards.
Any help would be appreciated.

Posted by: AlbertKallal May 6 2009, 09:21 AM

You dont actualy "set" the type, it based on how you enter the data:
ROOT:Local Machine
Key: SOFTWARE\Microsoft\Jet\4.0\Engines
ROOT:Local Machine
Key: Software\Microsoft\Office\11.0\Access\Security
Note how the "#" before the number represnets REG_DWORD
The data types are outlined here:
we see:
Prefix #x
The value is interpreted and stored as a hexadecimal value
Prefix #%
The value is interpreted and stored as an expandable string
Prefix #
The value is interpreted and stored as an integer (REG_DWORD)
Albert D. Kallal
Edmonton, Alberta Canada

Posted by: SilentFiddler May 6 2009, 09:38 AM

Thanks - you are a genius!!

You have no idea how I've been going round in circles to try and sort this out.
That's great - it works - thanks.

Edited by: SilentFiddler on Wed May 6 11:09:34 EDT 2009.