Topic
1 reply Latest Post - ‏2013-12-30T08:06:26Z by francesco.latino
RophyTsai
RophyTsai
4 Posts
ACCEPTED ANSWER

Pinned topic Encoding of modified registry patch is in UTF-8 instead of UCS-2 LE

‏2013-12-26T02:49:24Z |

Version: TPMfOSD 7.1.1.12

Problem:

windows expects encoding of registry file (*.reg) to be UCS-2 LE. When initially creating a software package with type as "A registry patch to install", the reg file is stored as UCS-12 LE and everything works fine.

However if I modify the registry contents with Software Package -> Edit registry file, the stored reg file changes its encoding to UTF-8, and the reg patch no longer works. Other than re-creating the software package, is there any way to fix the encoding?

 

  • francesco.latino
    francesco.latino
    19 Posts
    ACCEPTED ANSWER

    Re: Encoding of modified registry patch is in UTF-8 instead of UCS-2 LE

    ‏2013-12-30T08:06:26Z  in response to RophyTsai

    Hi,

    may it solve if you :

        - create a SW module as "A custom action on the target computer"

        - "A set of files to copy...with an optional command to execute"

    So that you provide your reg patch file started by a batch file:

       - reg_patch.reg (reg changes)

       - start.bat (which will trigger the reg_patch.reg)

     

    If you need to edit it, you select the SW module -> Edit file set -> Upload file providing the reg patch with changes that will overwrite existing one ?

        -reg_patch.reg <- updated with your changes

     

    I think you can also open a PMR to formally track this issue so that we can doublecheck if a code change is needed.

    Thanks

    Francesco