omnipower321
asked on
ADMX file specify REG_EXPAND_SZ
Hello,
I am having trouble specifying a registry string type as REG_EXPAND_SZ in an ADMX template. The ADM method was something along the lines of
PART !!CustomFolders_StartMenuP ath EDITTEXT EXPANDABLETEXT REQUIRED
In the ADM format, but that obviously doesn't work in 2008 ADMX. I attempted adding
required="true" expandable="true"
to the policy name tag with no results.
Thank you for any assistance.
I am having trouble specifying a registry string type as REG_EXPAND_SZ in an ADMX template. The ADM method was something along the lines of
PART !!CustomFolders_StartMenuP
In the ADM format, but that obviously doesn't work in 2008 ADMX. I attempted adding
required="true" expandable="true"
to the policy name tag with no results.
Thank you for any assistance.
ASKER
Looking for ADMX rather than ADM, but thank you. I tried the ADMX migrator from FullArmor, but the value keys come out blank every time. I would like to know how to write it manually rather than rely on a converter as well for future use.
ASKER
Ok, so I have made some progress, not much but some.
<policy name="MyComputerName" class="Machine" displayName="$(string.MyCo mputerName )" presentation="$(presentati on.MyCompu terName)" explainText="$(string.MyCo mputerName _Help)" key="SOFTWARE\Classes\CLSI D\{20D04FE 0-3AEA-106 9-A2D8-080 02B30309D} " valueName="LocalizedString ">
<parentCategory ref="2008_Profile_Manageme nt" />
<supportedOn ref="windows:SUPPORTED_Win dowsVista" />
<enabledValue>
<string>%USERNAME% on %COMPUTERNAME%</string>
</enabledValue>
<disabledValue>
<string>Name not configured</string>
</disabledValue>
<elements>
<text id="txtMyComputerName" valueName="LocalizedString " key="SOFTWARE\Classes\CLSI D\{20D04FE 0-3AEA-106 9-A2D8-080 02B30309D} " required="true" expandable="true" soft="true" />
</elements>
</policy>
So there is my policy, I have the apropriate language entries as well:
<presentationTable>
<presentation id="MyComputerName">
<textBox refId="txtMyComputerName">
<label>Expanding key for environment variables</label>
<defaultValue>
</defaultValue>
</textBox>
</presentation>
</presentationTable>
So this creates a REG_SZ named LocalizedString with a value of %USERNAME% on %COMPUTERNAME% which is not what I need, but it also creates a REG_EXPAND_SZ with no name and no value.
So close! Where am I messed up?
<policy name="MyComputerName" class="Machine" displayName="$(string.MyCo
<parentCategory ref="2008_Profile_Manageme
<supportedOn ref="windows:SUPPORTED_Win
<enabledValue>
<string>%USERNAME% on %COMPUTERNAME%</string>
</enabledValue>
<disabledValue>
<string>Name not configured</string>
</disabledValue>
<elements>
<text id="txtMyComputerName" valueName="LocalizedString
</elements>
</policy>
So there is my policy, I have the apropriate language entries as well:
<presentationTable>
<presentation id="MyComputerName">
<textBox refId="txtMyComputerName">
<label>Expanding key for environment variables</label>
<defaultValue>
</defaultValue>
</textBox>
</presentation>
</presentationTable>
So this creates a REG_SZ named LocalizedString with a value of %USERNAME% on %COMPUTERNAME% which is not what I need, but it also creates a REG_EXPAND_SZ with no name and no value.
So close! Where am I messed up?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Maybe this could help you
http://yizhar.mvps.org