The Community is now in read-only mode to prepare for the launch of the new Flexera Community. During this time, you will be unable to register, log in, or access customer resources. Click here for more information.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Registry question

CChong
By Level 11 Flexeran
Level 11 Flexeran
I have this regitry file that Im trying to create a .msi.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\CLSID\{2559A1F6-21D7-11D4-BDAF-00C04F60B9F0}]
@="YOURNAME"
"InfoTip"="YOURNAME"

[HKEY_CLASSES_ROOT\CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}\DefaultIcon]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,68,00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,31,00,33,00,00,00

[HKEY_CLASSES_ROOT\CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}\InProcServer32]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,68,00,64,00,6f,00,63,00,76,00,77,00,2e,00,64,00,6c,00,6c,00,00,00
"ThreadingModel"="Apartment"

[HKEY_CLASSES_ROOT\CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}\Instance]
"CLSID"="{3f454f0e-42ae-4d7c-8ea3-328250d6e272}"

[HKEY_CLASSES_ROOT\CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}\Instance\InitPropertyBag]
"CLSID"="{13709620-C279-11CE-A49E-444553540000}"
"method"="ShellExecute"


as you see a couple of entries are hex(2) or the Expand_SZ type I think. I tried to import this registry file into the install shield project and when I install it on the target machine it creates a REG_SZ entry and not the REG_EXPAND_SZ entry. Any ideas how I can accomplish this through admin studio.

Chris
(2) Replies

MHagen
By
Level 6
Hi Chris,

Regarding REG_EXPAND_SZ, I found this in the online help. I think it's what you're looking for. Hope this helps.

=========================
Entering a REG_EXPAND_SZ Registry Value

With REG_EXPAND_SZ string values you can use environment variables for paths that are stored in the registry. These entries require special formatting in order to be recognized by the operating system as environment variables. The format for a REG_EXPAND_SZ value as it appears in the registry is %TEMP%. TEMP is the standard environment variable for the TEMP directory.

Syntax

When creating registry entries of this type, you need to begin the entry with a pound sign followed by a percent sign (#%) . Then, you can enter your environment variable, complete with the beginning and ending percent sign. Therefore, if you enter #%%TEMP% into the InstallShield Registry explorer, it appears as %TEMP% when written to the registry.

In the Windows 2000 (or later) registry, the Type field for this entry appears as REG_EXPAND_SZ, and the Data field is:

%TEMP%

CChong
By Level 11 Flexeran
Level 11 Flexeran
It worked. Thanks very much.