Createfile problem

(imported topic written by bearandy)

I create a action about:

Createfile until end-reg-edit-commands

REGEDIT4

.

.

.

end-reg-edit-commands

delete remote.reg

move __createfile remote.reg

wait regedit /s remote.reg

I evaluate it OK on debugger in Win7.

But I got Runtime error in WinXP (Command failed (Substitution failed while writing file) createfile until end-reg-edit-commands)

The content is the same.

I don’t know why I got different result.

Thanks for help.

(imported comment written by BenKus)

It is saying that there is an error in your relevance substitution…

What did you want to put in the reg file?

Ben

(imported comment written by bearandy)

{(“HKEY_USERS” & (name of key whose (((it = name of current user as lowercase OR it starts with name of current user as lowercase & “@”) of (it as string as lowercase) of (if (name of operating system starts with “Win”) then value “USERNAME” of key “Volatile Environment” of it else value “Logon User Name” of key “Software\Microsoft\Windows\CurrentVersion\Explorer” of it))) of key “HKEY_USERS” of registry))}\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

(I take off parentheses because it would disappear)

“DisallowRun”=dword:00000001

Just like this.

We want to set registry to HKEY_CURRENT_USER.

Why does it can work in win7 but not in winXP if there is an error.