小编sil*_*ley的帖子

NSIS安装程序未编写注册表项

我正在尝试调试用于QGIS的NSIS安装程序(在卸载时不会删除注册表项)。我创建了一个简单的测试安装程序以加快该过程。我的测试安装程序未编写注册表项。我看不到我想念的东西。

运行时,我看到第一条消息“正在更新注册表”,但看不到错误消息。

我在Windows 8.1 Pro上运行。

!include "MUI.nsh"
;NSIS Includes
!include "x64.nsh"
!include "LogicLib.nsh"

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

;Installer Pages

!define MUI_WELCOMEPAGE_TITLE_3LINES
!insertmacro MUI_PAGE_WELCOME

!insertmacro MUI_PAGE_DIRECTORY

!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_INSTFILES
!define MUI_FINISHPAGE_TITLE_3LINES
!insertmacro MUI_PAGE_FINISH

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

; Language files
!insertmacro MUI_LANGUAGE "English"

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

RequestExecutionLevel admin

# define the file name "gupsdata_setup.exe"
Outfile "setup_gupsdata.exe"

# define the installation directory
InstallDir $PROGRAMFILES64\_gups_test

# create read/write test folders
Function .onInit
    CreateDirectory $INSTDIR\read_write\write_me_1
    CreateDirectory $INSTDIR\read_write\write_me_2
    CreateDirectory $INSTDIR\read_only\read_me

    # Make the directory "$INSTDIR\read_write" read write accessible by all users
    AccessControl::GrantOnFile …
Run Code Online (Sandbox Code Playgroud)

registry nsis

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

标签 统计

nsis ×1

registry ×1