jooooooooota
jooooooooota

Reputation: 45

Install DLL with regasm witouth cmd window

I'm trying to create a installer that uses regasm.exe to install my DLL but it open the black cmd window and i don't wan't to show it. My code looks like:

ExecWait "$MyPath\RegAsm.exe" /tlb /register /codebase /nologo /silent "$MyOtherPath\MyDLL.dll"

It doesn't write anything but it open the window. I use NSIS to create the installer

Upvotes: 1

Views: 773

Answers (1)

Anders
Anders

Reputation: 101746

ExecWait will display the console when you run console programs, if you don't want that then you have to use a plug-in like nsExec (part of NSIS), ExecDos or ExecCmd:

nsExec::Exec '"$MyPath\RegAsm.exe" /tlb /register /codebase /nologo /silent "$MyOtherPath\ShellContextMenu.dll"'
Pop $0 ; Process exit code or "error" in $0

Upvotes: 1

Related Questions