nsis

NSIS : Inserting links in label

那年仲夏 提交于 2019-12-23 18:00:47
问题 Suppose I have following nsDialog label: By clicking Accept I agree to the Example's License Agreement and Privacy Policy. You may access features that requires use of personal information. For more information, please download Example's Content Policy. I want to insert the links in this label like below: By clicking Accept I agree to the Example's License Agreement and Privacy Policy. You may access features that requires use of personal information. For more information, please download

Disable 'next' button on the component page when there are no selected components

别等时光非礼了梦想. 提交于 2019-12-23 02:31:41
问题 I'm using NSIS 2.46 to create a installer for my windows application, I have a component page with 12 checkboxes, that is 12 sections in my NSIS code, now I want to disable the 'Next' button if none of the sections are checked by the user, I'm using this code: Somehow it doesn't accept R registers above R9... SectionGetFlags ${section11} $R10 SectionGetFlags ${section12} $R11 The compiler error I'm getting is Please tell me how to disable the 'Next' button if there are more than 10 components

Executing batch file for postgre dbinit with NSIS gives permission denied

帅比萌擦擦* 提交于 2019-12-22 10:28:27
问题 Following my previous question I'm now trying to execute a batch file trough NSIS code in order to successfully setup the postgres installation after it is being unzipped. The batch file contains command for initializing the database but it fails because of permission restrictions. I am on a Win7 x64 PC. My user account is the administrator and I start the Setup.exe with Run as adminitrator option. This is the error I get: C:\Program Files (x86)\Poker Assistant>cd "pgsql\bin" C:\Program Files

Alternatives to WiX Burn Bootstrapper? (Can the InstallShield LE bootstrapper be used?)

ⅰ亾dé卋堺 提交于 2019-12-22 08:28:30
问题 Background information: We used to have a Visual Studio 2010 based installer project, but our install situation got a lot more complicated, and with the projects going away anyway in 2012, we figured we'd start learning WiX / InstallShield LE. The Problem: InstallShield LE seems far too limited in the MSI files it creates to fit our needs -- (example, if you check the Office 2007 prerequisite, even though the error says you need "Office 2007 or later" it will fail if you have Office 2010

Checking if the application is running in NSIS before uninstalling

泪湿孤枕 提交于 2019-12-22 04:59:14
问题 I am new to NSIS, and I need to know that in the uninstaller, how I can check if the application (which is in C++) is running and close it before uninstalling. 回答1: Here is a slightly more friendly version for using NSProcess that requests the app to close rather than terminates it (Owen's answer) ${nsProcess::FindProcess} "${APP_EXE}" $R0 ${If} $R0 == 0 DetailPrint "${AppName} is running. Closing it down" ${nsProcess::CloseProcess} "${APP_EXE}" $R0 DetailPrint "Waiting for ${AppName} to

NSIS support for Linux and Solaris

自作多情 提交于 2019-12-21 07:54:21
问题 Does NSIS support Linux and Solaris? I read somewhere that we can compile nsis script on Linux but cant execute the .exe generated on any other platforms but Windows. Can somebody put more light in this? 回答1: No. See the NSIS feature list for more information ... Portable Compiler The NSIS compiler can be compiled for POSIX platforms like Linux and *BSD. Generated installer will still run on Windows only, but this way they can be generated without Windows or WINE. 回答2: You can compile

NSIS脚本学习:创建 MUI 界面使用的自定义语言包文件(nlf & nsh)

六眼飞鱼酱① 提交于 2019-12-20 18:06:04
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> NSIS脚本的语言包文件,存放在以下目录: NSIS安装目录\Contrib\Language files 在这个目录下有很多语言包,一般简体中文使用的语言包是 SimpChinese.nlf 和 SimpChinese.nsh 两个文件。 在NSIS脚本中,写入下面这句话,就可以调用简体中文语言包了。 !insertmacro MUI_LANGUAGE "SimpChinese" 不过,NSIS程序默认的简体中文语言包有很多问题。这个语言包遣词非常生硬,难以满足客户的很多定制化要求。 因此我决定在这个语言包的基础上,自己新写一组语言包:CustomizedChinese CustomizedChinese.nlf 代码如下: # ################################### # nlf file of CustomizedChinese # Author: Tsybius2014 # DateTime: 2016/04/06 # Remark: none # ################################### # Header, don't edit NLF v6 # Language ID 2052 # Font and size - dash (-)

NSIS脚本学习:使用 LogicLib.nsh 实现基本流程控制结构

眉间皱痕 提交于 2019-12-20 18:03:16
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> LogicLib.nsh 程序的三种基本结构包括:顺序结构、分支结构、循环结构。顺序结构是最基本的结构,本文主要说明了如何在NSIS脚本中写出分支结构和循环结构。 最基本的分支结构和循环结构可以用StrCmp命令和Goto命令组成,但通过这种方式写出的代码可读性极差且难以调试。此时我们就需要用到头文件 LogicLib.nsh 中的功能了。 下面是一个示例程序,在“MyProgram”区域中输入我们要调试的代码: !define DEBUG_PATH "E:\NSIS_Test\TmpProgram" !define OUTPUT_PATH "E:\NSIS_Test\Output" !define INSTALL_PATH "E:\NSIS_Test\Output" !include LogicLib.nsh Name "NSIS_VariableConstants_Test" Caption "NSIS_VariableConstants_Test" InstallDir ${INSTALL_PATH} OutFile "Galatea.exe" Section "My Program" SetOutPath ${OUTPUT_PATH} File /r "${DEBUG_PATH}\*.*" ; ----

How to detect windows 32bit or 64 bit using NSIS script?

给你一囗甜甜゛ 提交于 2019-12-20 11:52:32
问题 I have written nsis script for java project.I have Batch file in my project.I have written batch file for commonly windows 32bit and 64 bit.After installing i have started batch file automatically using Exec command.Its woks fine in 32bit windows.but the same time this is not worked well in 64 bit.so i suspect that before installing i should check whether windows is 32 bit or 64 bit version.please share your views how to check? 回答1: Use the RunningX64 macro in the x64.nsh header: !include

How to detect windows 32bit or 64 bit using NSIS script?

倾然丶 夕夏残阳落幕 提交于 2019-12-20 11:52:30
问题 I have written nsis script for java project.I have Batch file in my project.I have written batch file for commonly windows 32bit and 64 bit.After installing i have started batch file automatically using Exec command.Its woks fine in 32bit windows.but the same time this is not worked well in 64 bit.so i suspect that before installing i should check whether windows is 32 bit or 64 bit version.please share your views how to check? 回答1: Use the RunningX64 macro in the x64.nsh header: !include