PDA

View Full Version : Asing files to registry using %appfolder% ?


SiTWulf
09-04-2006, 03:30 PM
Hi all... i have this problem... i cant register in my registry this Imported .REG code:

Registry.SetValue(HKEY_CLASSES_ROOT,"Windows.SaWTheme","FriendlyTypeName","@\\\"C:\\Program Files\\SaWThemes\\themedsw.dll\\\",-100",REG_SZ);

How to change to automatic %appfolder% like this: %appfolder%\\themedsw.dll ????

SiTWulf
09-04-2006, 04:32 PM
I try with this and not luck.

Registry.SetValue(HKEY_CLASSES_ROOT,"Windows.SaWTheme","FriendlyTypeName","@\\\", SessionVar.Expand("%AppFolder%\\themedsw.dll"),"\",-100",REG_SZ);