Installer won't import a .reg file created by Regasm.exe - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

jbridges
Posts: 38
Joined: Fri Jun 09, 2006 12:36 am

Installer won't import a .reg file created by Regasm.exe

I create a .reg file by using the regasm command line options of /regfile and /codebase. Then I tried to import it, but the Advanced Installer says that the format is not valid.

Is this just because the top line of the file says REGEDIT ? How does it determine that it is not valid?

Note that I am doing this to avoid calling regasm from the command line as CA. Importing the reg file seems like a better approach, from what I have read on the internet.

I did notice that regasm complains that the name is not strong. Not sure what name it refers to. However, I compare the registry entries in the .reg file with those installed by using regasm <filename> (no options) and it appears to be the same.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Advanced Installer can import .reg files created with windows 2000 or greater. And probably regasm export the .reg file in an older format.

Open the .reg file with a text editor (Notepad) and change the "REGEDIT 4" with "Windows Registry Editor Version 5.00". After this save the the .reg file as Unicode.

Regards,
Gigi
________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
jasonslater2000
Posts: 5
Joined: Wed Jan 31, 2007 5:43 am

Does AI handle the hardcoded paths to the .dll which regasm puts in when generating the .reg file?
gigi wrote:Hi,

Advanced Installer can import .reg files created with windows 2000 or greater. And probably regasm export the .reg file in an older format.

Open the .reg file with a text editor (Notepad) and change the "REGEDIT 4" with "Windows Registry Editor Version 5.00". After this save the the .reg file as Unicode.

Regards,
Gigi
________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

What hardcoded paths you are referring to?. Could you please give me more details?

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”