Jump to content

Adding registry entries during GuiRunOnce


Recommended Posts

I've just started messing with unattended installs, and I've currently got GuiRunOnce set up to install Office 2003, Nero 6.3.0.2, and Nero Vision Express. I created a .reg file containing the serial for Nero, but when the setup is finished, Nero is unregestered. Trying to manually import the .reg key I get an error that states:

Cannot import C:\install\Applications\Nero\register.reg: The specified file is not a registry script. You can only import binary files from within the registry editor.

The register.reg file contains the following:

[HKEY_LOCAL_MACHINE\SOFTWARE\Ahead\Nero - Burning Rom\Info]
"User"="User"
"Company"="User's Computer"
"Serial6"="XXXX-XXXX-XXXX-XXXX-XXXX-XXXX"
[HKEY_LOCAL_MACHINE\SOFTWARE\Ahead\Plug-ins\DVD-Video\Info]
"Serial6"="XXXX-XXXX-XXXX-XXXX-XXXX-XXXX"

I can't figure out why the key won't take.

Link to comment
Share on other sites


If that's the full reg file then your problem is you didn't format it correctly...you need the appropriate header. It should be:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Ahead\Nero - Burning Rom\Info]
"User"="User"
"Company"="User's Computer"
"Serial6"="XXXX-XXXX-XXXX-XXXX-XXXX-XXXX"
[HKEY_LOCAL_MACHINE\SOFTWARE\Ahead\Plug-ins\DVD-Video\Info]
"Serial6"="XXXX-XXXX-XXXX-XXXX-XXXX-XXXX"

Without the header it won't import...also, and I might be wrong, but I think you have to leave a blank line at the end of the file as well. I seem to have heard that somewhere and have always included that.

And just so you know there are ways for you to include the serial for Nero during the install, so you wouldn't have to do this at all. Check out the Application Install sub-forum for more info.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...