小编use*_*335的帖子

NSIS脚本未安装在正确的目录中

我正在尝试制作安装脚本:

  • 在32位PC上:tapi_32bits.tsp在 C:\windows\system32
  • 在64位PC上:tapi_64bits.tsp输入C:\Windows\System32和tapi_32bits.tsp输入C:\Windows\SysWOW64

这是我写的脚本:

; The name of the installer
Name "TAPI Installer"

; The file to write
OutFile "TAPI Installer"

; The default installation directory
InstallDir $DESKTOP

;--------------------------------

; Install to the correct directory on 32 bit or 64 bit machines
Section
IfFileExists $WINDIR\SYSWOW64\*.* Is64bit Is32bit
Is32bit:
    ; Set output path to the installation directory.
    SetOutPath $SYSDIR

    ; Put file there
    File tapi_32bits.tsp

;   SectionEnd MessageBox MB_OK "32 bit"
        SetRegView 32
        StrCpy $INSTDIR "$PROGRAMFILES32\LANDesk\Health Check" …
Run Code Online (Sandbox Code Playgroud)

nsis system32 syswow64

1
推荐指数
1
解决办法
5279
查看次数

标签 统计

nsis ×1

system32 ×1

syswow64 ×1