Jump to content











Photo
- - - - -

offlinereg


  • Please log in to reply
340 replies to this topic

#326 erwan.l

erwan.l

    Platinum Member

  • Developer
  • 3041 posts
  • Location:Nantes - France
  •  
    France

Posted 23 February 2022 - 06:55 AM

Import of 10_HKEY_USERS_DOT_DEFAULT.reg is working OK now.  StartIsBack and PENetwork keys appear in DEFAULT Registry Hive.

 

Booting PE_19041_US_E.wim is OK.

 

But I have another issue now: In PE the Desktop background color is black instead of Wallpaper blue, which has to do with ACL I presume.

 

Originally the sequence giving good Desktop Wallpaper color was:

 

reg load >  use SetACL to Take Ownership and Grant full access for TK_DEFAULT hive - Then Import Registry Settings > reg unload

 

I think I need to use reg import so that I have control over permissions.

 

================================================================

 

New version has issue with import of HKEY_LOCAL_MACHINE\SOFTWARE .reg files

 

In that case I get .reg.new files ........

 

I am surprised about ACL :

-offlinereg wnen modifying a hive does not care about ACL's : it just stands above ACL's

-winpe when accessing a hive runs as SYSTEM so normally is not affected by ACL's

 

Rather I'll compare a blank hive (open with regedit after the import and export to a reg) where you will import your reg file against the original reg file.

 

I just uploaded a new version fixing an issue with default @ values (it was importing an empty string).

Here.


  • wimb likes this

#327 erwan.l

erwan.l

    Platinum Member

  • Developer
  • 3041 posts
  • Location:Nantes - France
  •  
    France

Posted 23 February 2022 - 06:55 AM

new offlinereg program has issues in case of SOFTWARE I get the .reg.new files ...

 

new file is a temp file to deal with specially encoded reg file.

it normally is deleted after the import.

but will not be deleted if the import fails.

what error do you get?


  • wimb likes this

#328 wimb

wimb

    Platinum Member

  • Developer
  • 3756 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 23 February 2022 - 07:00 AM

Thanks for new version. I will do more testing ....



#329 wimb

wimb

    Platinum Member

  • Developer
  • 3756 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 23 February 2022 - 08:02 AM

I just uploaded a new version fixing an issue with default @ values (it was importing an empty string).

Here.

 

new version offlinereg program runs OK for import of HKEY_USERS\.DEFAULT and HKEY_LOCAL_MACHINE\SOFTWARE .reg files.

 

No problem with .new files and no Errors for offlinereg program.

 

Nevertheless the result for offlinereg in WinPE is not good -

Desktop is black instead of blue wallpaper and fix for VLC does not work - mp3 files don't get VLC icon and double-click .mp3 files fail to launch VLC player

 

reg load >  use SetACL to Take Ownership and Grant full access for TK_DEFAULT hive - Then Import Registry Settings > reg unload sequence gives GOOD working result.



#330 erwan.l

erwan.l

    Platinum Member

  • Developer
  • 3041 posts
  • Location:Nantes - France
  •  
    France

Posted 25 February 2022 - 05:20 PM

I have performed the following test :

 

-import the first reg file to a blank hive

-attach the hive to regedit

-export to a second reg file

-compare both files with winmerge

 

I have a few differences which may explain what you are experiencing.

Example below.

 

I'll be working so that the reg files before/after are the exact same.

 

3WqmEff.png


  • wimb likes this

#331 wimb

wimb

    Platinum Member

  • Developer
  • 3756 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 25 February 2022 - 05:41 PM

I have a few differences which may explain what you are experiencing.

Example below.

 

I'll be working so that the reg files before/after are the exact same.

 

 

 

Very Good that you try to find an origin for the issue.  :)

For me it looked like offlinereg was doing the job, but there must be something wrong since I get issues in booting WinPE.

 

Hope you can solve it  :)



#332 wimb

wimb

    Platinum Member

  • Developer
  • 3756 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 25 February 2022 - 06:45 PM

I can confirm here that the double backslash \\ in .reg file is imported by offlinereg wrongly as a double backslash \\ whereas it should be a single backslash \

 

I did inspection after offlinereg imported the .reg file by using reg load of DEFAULT hive 



#333 erwan.l

erwan.l

    Platinum Member

  • Developer
  • 3041 posts
  • Location:Nantes - France
  •  
    France

Posted 25 February 2022 - 06:54 PM

ok so far so good : i have solved 2 important bugs (double slashes and long hex values).

 

now i am getting an almost near perfect result.

 

give it a try here.

 

I will keep working on remaining minor glitches but at this point i believe your winpe should be working as expected.

Let me know :)

 

Cheers,

Erwan



#334 erwan.l

erwan.l

    Platinum Member

  • Developer
  • 3041 posts
  • Location:Nantes - France
  •  
    France

Posted 25 February 2022 - 06:54 PM

I can confirm here that the double backslash \\ in .reg file is imported by offlinereg wrongly as a double backslash \\ whereas it should be a single backslash \

I did inspection after offlinereg imported the .reg file by using reg load of DEFAULT hive


yep clearly : this was a nasty bug which most probably was messing up your wallpaper.
this one is solved.

#335 erwan.l

erwan.l

    Platinum Member

  • Developer
  • 3041 posts
  • Location:Nantes - France
  •  
    France

Posted 25 February 2022 - 07:00 PM

2 issues left and reg file before/after will be identical.

 

on the left : original.

on the right : created with offlinereg

 

3TB9cwv.png

 

ty3VGOk.png



#336 wimb

wimb

    Platinum Member

  • Developer
  • 3756 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 25 February 2022 - 07:30 PM

 

give it a try here.

 

 

 

this is still the old file of 23-02-2022 - Testing reveales still the double backslash and booting desktop is black ...



#337 erwan.l

erwan.l

    Platinum Member

  • Developer
  • 3041 posts
  • Location:Nantes - France
  •  
    France

Posted 25 February 2022 - 07:38 PM

this is still the old file of 23-02-2022 - Testing reveales still the double backslash and booting desktop is black ...


Arg stupid me, forgot to upload. Give 5 mns.

 

EDIT : done, uploaded.


  • wimb likes this

#338 wimb

wimb

    Platinum Member

  • Developer
  • 3756 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 25 February 2022 - 08:05 PM

Are you sure, I still get old filedate ?



#339 erwan.l

erwan.l

    Platinum Member

  • Developer
  • 3041 posts
  • Location:Nantes - France
  •  
    France

Posted 25 February 2022 - 08:11 PM

Are you sure, I still get old filedate ?

 

my hosting provider playing tricks on me and/or browser cache :

try my github here.

my hosting provider will ultimately refresh the download as well here.

 

last build is from 7.52pm on Feb 25,2022.



#340 wimb

wimb

    Platinum Member

  • Developer
  • 3756 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 25 February 2022 - 08:14 PM

my hosting provider playing tricks on me and/or browser cache :

try my github here.

my hosting provider will ultimately refresh the download as well here.

 

last build is from 7.52pm on Feb 25,2022.

 

github download works, now start testing ....



#341 wimb

wimb

    Platinum Member

  • Developer
  • 3756 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 25 February 2022 - 08:40 PM

Hi erwan.l

 

Issue is solved. :) 

 

Double Backslash \\ is imported as Backslash \ which is OK.

 

On Booting Desktop instead of Black gets Blue Wallpaper which is OK.



#342 garlin

garlin
  • Members
  • 0 posts
  •  
    United States

Posted 21 July 2023 - 01:50 AM

When importing a reg file with this key, I get "Access violation."

[HKEY_LOCAL_MACHINE\COMPONENTS\CanonicalData\Catalogs\163d858111352df5eb0126d8cf8c188485c7b0cc9ce940acf9e325de0dea66f1]
"c!microsoft.vc90.openmp_1fc8b3b9a1e18e3b_9.0.30729.7523_390908480a22ee4a"=hex:

But no error is returned if "=hex:" is followed by at least one value.

 

I know this is a valid reg file, because regedit exports the keys this way.  Can you fix offlinereg to support this type of (empty) value?  I'm using it to import abbodi's registry entries from his VC++ WA project, and many of the inline keys are in this exact format.

 

Thanks.



#343 garlin

garlin
  • Members
  • 0 posts
  •  
    United States

Posted 21 July 2023 - 01:51 AM

When importing a reg file with this key, I get "Access violation."

[HKEY_LOCAL_MACHINE\COMPONENTS\CanonicalData\Catalogs\163d858111352df5eb0126d8cf8c188485c7b0cc9ce940acf9e325de0dea66f1]
"c!microsoft.vc90.openmp_1fc8b3b9a1e18e3b_9.0.30729.7523_390908480a22ee4a"=hex:

But no error is returned if "=hex:" is followed by at least one value.

 

I know this is a valid reg file, because regedit exports the keys this way.  Can you fix offlinereg to support this type of (empty) value?  I'm using it to import abbodi's registry entries from his VC++ WA project, and many of the inline keys are in this exact format.

 

Thanks.



#344 garlin

garlin
  • Members
  • 0 posts
  •  
    United States

Posted 21 July 2023 - 01:51 AM

When importing a reg file with this key, I get "Access violation."

[HKEY_LOCAL_MACHINE\COMPONENTS\CanonicalData\Catalogs\163d858111352df5eb0126d8cf8c188485c7b0cc9ce940acf9e325de0dea66f1]
"c!microsoft.vc90.openmp_1fc8b3b9a1e18e3b_9.0.30729.7523_390908480a22ee4a"=hex:

But no error is returned if "=hex:" is followed by at least one value.

 

I know this is a valid reg file, because regedit exports the keys this way.  Can you fix offlinereg to support this type of (empty) value?  I'm using it to import abbodi's registry entries from his VC++ WA project, and many of the inline keys are in this exact format.

 

Thanks.



#345 garlin

garlin
  • Members
  • 0 posts
  •  
    United States

Posted 21 July 2023 - 01:52 AM

When importing a reg file with this key, I get "Access violation."

 

[HKEY_LOCAL_MACHINE\COMPONENTS\CanonicalData\Catalogs\163d858111352df5eb0126d8cf8c188485c7b0cc9ce940acf9e325de0dea66f1]
"c!microsoft.vc90.openmp_1fc8b3b9a1e18e3b_9.0.30729.7523_390908480a22ee4a"=hex:
 

But no error is returned if "=hex:" is followed by at least one value.

 

I know this is a valid reg file, because regedit exports the keys this way.  Can you fix offlinereg to support this type of (empty) value?  I'm using it to import abbodi's registry entries from his VC++ WA project, and many of the inline keys are in this exact format.

 

Thanks.

 



#346 garlin

garlin
  • Members
  • 0 posts
  •  
    United States

Posted 22 July 2023 - 12:24 AM

Sorry for the multiple posts...  The forum gave me a SQL error on submit.






3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users