我可以用NSIS制作一个安装程序,用新名称安装DLL吗?

我可以用NSIS制作一个安装程序,用新名称安装DLL吗?,nsis,Nsis,我想让安装程序复制并注册(regsvr32)一个.dll 当安装程序无法覆盖.dll时,(因为正在使用,…等) 我想将a.dll复制为a0.dll并注册它 我可以用NSIS实现吗?下面的代码应该可以实现 section "" File a.dll execwait "Regsvr32 /s a.dll" IfErrors 0 noError Rename a.dll a0.dll execwait "Regsvr32 /s a0.dll" noError: sectionEnd

我想让安装程序复制并注册(regsvr32)一个.dll

当安装程序无法覆盖.dll时,(因为正在使用,…等) 我想将a.dll复制为a0.dll并注册它


我可以用NSIS实现吗?

下面的代码应该可以实现

section ""
File a.dll
execwait "Regsvr32 /s a.dll"
IfErrors 0 noError
Rename a.dll a0.dll
execwait "Regsvr32 /s a0.dll"
noError:
sectionEnd