创建32位安装程序和sysnative的NSIS脚本

时间:2023-02-15 00:27:55

I did a script to make an installer for a 64bits driver, so it needs to place the .dll in the real system32.

我做了一个脚本来为64位驱动程序制作安装程序,所以它需要将.dll放在真正的system32中。

So, I uses sysnative that is suppose to jump the redirector.

所以,我使用sysnative来假设跳转重定向器。

but tried it in Win7 64bits, and all that it does is to create a folder at\named c:\Windows\Sysnative** and actually placing the .dll here!. **What is wrong?.

但是在Win7 64位上尝试过,它所做的就是在\命名为c:\ Windows \ Sysnative **创建一个文件夹,并实际放置.dll! **哪里不对?。

delete "$WINDIR\sysnative\flulpypt64.dll"


CopyFiles   "$INSTDIR\flulpypt64.dll" "$WINDIR\sysnative\flulpypt64.dll"

the other solution, exists a way to tell NSIS to compile 64bits .exe installer?.

另一个解决方案,有一种方法告诉NSIS编译64位.exe安装程序吗?

1 个解决方案

#1


0  

Sysnative does not exist on WinXP-64. If you take a look in x64.nsh you will find some macros that turn off filesystem redirection, you can then extract the file directly to the real system directory...

WinXP-64上不存在Sysnative。如果你看看x64.nsh你会发现一些关闭文件系统重定向的宏,然后你可以直接将文件解压缩到真正的系统目录......

#1


0  

Sysnative does not exist on WinXP-64. If you take a look in x64.nsh you will find some macros that turn off filesystem redirection, you can then extract the file directly to the real system directory...

WinXP-64上不存在Sysnative。如果你看看x64.nsh你会发现一些关闭文件系统重定向的宏,然后你可以直接将文件解压缩到真正的系统目录......