Registry Fixlet BigFix 7.2

(imported topic written by SystemAdmin)

I am attempting to create a registry string. The below action works if the string value is something simple such test. When I attempt to use a value such as the below “c:\windows\notepad.exe” bigfix fails to create the registry string. I have manually created the registry string with the “c:\windows\notepad.exe” value with no issue so it is a valid value. Any ideas?

action uses wow64 redirection false

delete __appendfile

delete wizardedit.reg

appendfile REGEDIT4

appendfile

appendfile

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components

appendfile “StubPath”=“c:\windows\notepad.exe”

move __appendfile wizardedit.reg

waithidden regedit /s “wizardedit.reg”

(imported comment written by BenKus)

Hey 71surf,

Microsoft’s registry imports require “” to be escaped. So you will need to do this:

appendfile “StubPath”=“c:\windows\notepad.exe”

Or… better yet, you can replace your action with this one (which is cleaner and will work on systems with different paths):

regset “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components” “StubPath”="{escapes of pathname of file “notepad.exe” of windows folder}"

Ben