regsvr32 options

49 views
Skip to first unread message

Tom Buck

unread,
Jul 28, 2025, 7:15:20 AMJul 28
to innosetup
Hi,

Is it possible to register a dll but use regsvr32 /n /i:machine from the files flags section?

Currently using:
Flags: ignoreversion regserver 32bit uninsneveruninstall;
 
Or can it be done from the code section?

Gavin Lambert

unread,
Jul 28, 2025, 7:26:55 PMJul 28
to innosetup
It's not possible to add extra parameters with the regserver flag, so you will need to use Exec in [Code] instead.  It's very bad practice to use uninsneveruninstall on registered files, however, so you should remove that and add the equivalent uninstall [Code] as well. 

Tom Buck

unread,
Jul 30, 2025, 8:28:54 AMJul 30
to innosetup
Thanks. Turns out I had the wrong bitness of dot net installed which is why the dll was failing to register.

Gavin Lambert

unread,
Jul 30, 2025, 8:31:29 PMJul 30
to innosetup
On Thursday, July 31, 2025 at 12:28:54 AM UTC+12 Tom Buck wrote:
Thanks. Turns out I had the wrong bitness of dot net installed which is why the dll was failing to register.

While it's possible to use regsvr32 with .NET libraries if constructed a certain way, it's more normal to use RegAsm and/or InstallUtil with these. 
Reply all
Reply to author
Forward
0 new messages