Hello folks!

I just developed one COM interop component in VB.NET 2010. Everything is fine, on my development machine everything works properly.
I would like to distribute this dll with all dependencies on other machines as well.
I just did a test on the brand new installation of Windows 7 x64 and x86 Enterprise version.
The following command line failed to execute:

Code:
"c:\myapp\regasm.exe" "C:\myapp\CameraController.dll" /tlb:"C:\myapp\CameraController.tlb" /codebase
It has raised the following error:

Code:
Microsoft (R) .NET Framework Assembly Registration Utility 4.0.30319.1
Copyright (C) Microsoft Corporation 1998-2004.  All rights reserved.

RegAsm : error RA0000 : An error occurred while writing the registration
information to the registry. Administrator permissions are needed to use the
selected options. Use an administrator command prompt to complete these
tasks."
This command line works perfectly on Windows XP. I must mention that I want to register this component from a bat file and I have no clue what I'm doing wrong. I even tried to use "runas", but it's asking me for the password whole the time however system doesn't have any password set.

Has anybody any idea how to register one COM interop dll on Windows 7 systems from the batch file?
Any help, input, hint is highly appreciated.

Thank you in advance!

Bela