Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Change registry value type?


2 replies to this topic

quakey

quakey
  • Full Members
  • 33 posts

Posted 18 November 2004 - 23:24

Hi,

Here is my situation. My installer needs to read a registry value of tye REG_DWORD type and put it in a property (via AppSearch and RegLocator), and then write that value to another registry key as REG_SZ.

It seems to me that since the registry is of type REG_DWORD, and let's assume the value is 2, then the value of the property would be #2. And when it writes that value to another key, that key becomes a REG_DWORD as well because of the # prefix. But I need it to be a REG_SZ!

How do I accomplish that?

Thanks!!

mandy

mandy
  • Members
  • 121 posts

Posted 19 November 2004 - 00:10

VBScript custom action in execute immediate sequence anywhere between "AppSearch" and "WriteRegistryValues".

Property("TEST1") = Replace(Property("TEST1"),"#","")



quakey

quakey
  • Full Members
  • 33 posts

Posted 19 November 2004 - 01:08

QUOTE (mandy @ 2004-11-19 00:10)
VBScript custom action in execute immediate sequence anywhere between "AppSearch" and "WriteRegistryValues".

Property("TEST1") = Replace(Property("TEST1"),"#","")

Thanks! That did it!