Friday, May 23, 2014

Importing 64 bit & 32 bit registry keys using Wise Scripts


64 BIT:

item: Get Environment Variable
  Variable=WINDIR
  Environment=WINDIR
End
item: Get Environment Variable
  Variable=SYSDRIVE
  Environment=SystemDrive
end
item: Execute Program
  Pathname=%WINDIR%\Sysnative\reg.exe
  Command Line=IMPORT %SYSDRIVE%\Registry\sample.reg
  Flags=00001010

End

32 BIT:

item: Edit Registry
  Total Keys=3
  item: Key
    Key=SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{F1CE5D1-1ADE-321E-8167-68EF0DE699A5}
    New Value=1
    Value Name=NoModify
    Root=2
    Data Type=3
  end
  item: Key
    Key=SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{F1C3E5D1-1ADE-321E-8167-68EF0DE699A5}
    New Value=1
    Value Name=NoRepair
    Root=2
    Data Type=3
  end
  item: Key
    Key=SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{F1C3E5D1-1ADE-321E-8167-68EF0DE699A5}
    New Value=1
    Value Name=NoRemove
    Root=2
    Data Type=3
  end
end

Note: Copy the highlighted content to notepad and change to .wse format and use it



No comments:

Post a Comment