This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Reg_expand_sz Type Key
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
May 17, 2011
07:40 AM
Reg_expand_sz Type Key
I wanted to create a key "(Default)" under
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\VBSFile\Shell\runas\Command as REG_EXPAND_SZ type. But I am also getting one entry with same name with type REG_SZ.
Here is my code:
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
RegKy = "SOFTWARE\\Classes\\VBSFile\\Shell\\runas\\Command";
if( RegDBKeyExist ( RegKy) != 1 )then
rst = RegDBSetKeyValueEx(RegKy, "(Default)", REGDB_STRING_EXPAND, "%SystemRoot%\\System32\\WScript.exe \"%1\" %*", -1);
if (rst < 0) then
MessageBox("Failed to value", WARNING);
endif;
endif;
I dont want the another key with REG_SZ type. Please suggest.
Thanks
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\VBSFile\Shell\runas\Command as REG_EXPAND_SZ type. But I am also getting one entry with same name with type REG_SZ.
Here is my code:
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
RegKy = "SOFTWARE\\Classes\\VBSFile\\Shell\\runas\\Command";
if( RegDBKeyExist ( RegKy) != 1 )then
rst = RegDBSetKeyValueEx(RegKy, "(Default)", REGDB_STRING_EXPAND, "%SystemRoot%\\System32\\WScript.exe \"%1\" %*", -1);
if (rst < 0) then
MessageBox("Failed to value", WARNING);
endif;
endif;
I dont want the another key with REG_SZ type. Please suggest.
Thanks
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
May 18, 2011
01:31 AM
Hi Mthapa,
Trying on which product.? PLease check if this was the right forum for you.
Trying on which product.? PLease check if this was the right forum for you.