simon
Posts: 5
Joined: Wed Apr 08, 2015 12:24 pm

Cannot Import Reg File

Hello,

i try to import a Reg file.
Adavance Installer show me:
AI.png
AI.png (8.29 KiB) Viewed 8661 times
Installed Version 12.0 build 63246.

If i use regedit /s there is no problem.
What is wrong with the reg file?
Is this a bug?

I read other posts from previous versions of Advanced Installer with the same problem.
But i cant find a solution for this problem.

Any help?

Thanks

Simon
Frank Bastiaens
Posts: 17
Joined: Thu Apr 02, 2015 9:44 am

Re: Cannot Import Reg File

Hey Simon,

Could you show the first 10 lines of the registry file?

Regards, Frank
simon
Posts: 5
Joined: Wed Apr 08, 2015 12:24 pm

Re: Cannot Import Reg File

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Office\11.0\Access\Security]
"Level"=dword:00000001
Frank Bastiaens
Posts: 17
Joined: Thu Apr 02, 2015 9:44 am

Re: Cannot Import Reg File

Ok, at least that looks good, BUT :)

Open the regfile in NotepadPlusPlus, and make sure the language (Registry file) is correctly detected, then save it with NotepadPlusPlus.
This ensures that hidden characters are removed from the file, afterwards try it again.

Regards, Frank
simon
Posts: 5
Joined: Wed Apr 08, 2015 12:24 pm

Re: Cannot Import Reg File

I open the file in Notepad++.
No error deteted and save it.
The problem still exists.

I attaced the File:
Access.zip
(290 Bytes) Downloaded 594 times
codesynergy
Posts: 100
Joined: Fri Nov 14, 2014 10:29 pm

Re: Cannot Import Reg File

The registry file encoding needs to be "UCS-2 Little Endian". You can convert the file in notepad++ (Encoding > Convert to UCS-2 Little Endian) and re-save.
simon
Posts: 5
Joined: Wed Apr 08, 2015 12:24 pm

Re: Cannot Import Reg File

I convert the file to UCS-2 Little Endian.
Now i can import the file without error but nothing changed.
The key is not created.
registry.png
registry.png (19.88 KiB) Viewed 8627 times
registry2.png
registry2.png (22.03 KiB) Viewed 8626 times
codesynergy
Posts: 100
Joined: Fri Nov 14, 2014 10:29 pm

Re: Cannot Import Reg File

It appears there is an extra space that is causing the registry entry not to import. See the attachment. There is a space after "Security]", before the new line (CRLF). If you delete this space and re-save, the registry file will import correctly.

Since the registry file will import into the windows registry just fine (even with the extra space), maybe AI can fix the registry import to handle the extra white space.
Attachments
Capture.PNG
Capture.PNG (5.42 KiB) Viewed 8616 times
simon
Posts: 5
Joined: Wed Apr 08, 2015 12:24 pm

Re: Cannot Import Reg File

After i delete the space the import was successfull. :P
Thank you for patience.

The solution is:

Save the Regfile in UCS-2 Little Endian.
Delete extra spaces at the end of lines.

Return to “Common Problems”