nsis

NSIS Plugin “nsScreenshot” not working in Windows NT 6.x

人走茶凉 提交于 2020-01-03 10:45:26
问题 I added a code that was published 3 years later than original plugin, but it still returns error... Code is straight forward imho ... but still I most likely miss some aspect ... See this code: { nsScreenshot NSIS Plugin (c) 2003: Leon Zandman (leon@wirwar.com) Re-compiled by: Linards Liepins (linards.liepins@gmail.com) Code by: http://www.delphitricks.com/source-code/forms/make_a_desktop_screenshot.html (e) 2012. } library nsScreenshot; uses nsis in './nsis.pas', Windows, Jpeg, graphics,

NSIS Plugin “nsScreenshot” not working in Windows NT 6.x

无人久伴 提交于 2020-01-03 10:45:01
问题 I added a code that was published 3 years later than original plugin, but it still returns error... Code is straight forward imho ... but still I most likely miss some aspect ... See this code: { nsScreenshot NSIS Plugin (c) 2003: Leon Zandman (leon@wirwar.com) Re-compiled by: Linards Liepins (linards.liepins@gmail.com) Code by: http://www.delphitricks.com/source-code/forms/make_a_desktop_screenshot.html (e) 2012. } library nsScreenshot; uses nsis in './nsis.pas', Windows, Jpeg, graphics,

set the font of a custom label added on a custom dialog page in nsis installer

时光毁灭记忆、已成空白 提交于 2020-01-02 17:48:49
问题 how to set the font of a label added on a custom added page in nsis installer To create the label i have used this : nsDialogs::Create 1018 var Label ${NSD_CreateLabel} 0 0 100% 32u "PLEASE CHOOSE WHAT DO YOU WANT TO INSTALL:" Pop $Label 回答1: !include nsDialogs.nsh var Label page custom pre function pre nsDialogs::Create 1018 ${NSD_CreateLabel} 0 0 100% 32u "PLEASE CHOOSE WHAT DO YOU WANT TO INSTALL:" Pop $Label CreateFont $0 "Arial" 18 SendMessage $Label ${WM_SETFONT} $0 1 nsDialogs::Show

What is an effective way to grant permissions to a registry key using an NSIS installer?

烂漫一生 提交于 2020-01-02 06:17:56
问题 I am attempting to use the AccessControl plugin in NSIS to set the permissions on a registry key. It is not working. After the installer runs, the All Users group does not have Full Control. I've created a sample below. Is there anything wrong here? Is there another mechanism to accomplish the same thing? I've also attempted to use the numeric form of the Everyone group S-1-1-0 I have not tried using "Everyone" yet. ; Create the key for local machine settings (could be a 32 bit or 64 bit

What is an effective way to grant permissions to a registry key using an NSIS installer?

与世无争的帅哥 提交于 2020-01-02 06:17:25
问题 I am attempting to use the AccessControl plugin in NSIS to set the permissions on a registry key. It is not working. After the installer runs, the All Users group does not have Full Control. I've created a sample below. Is there anything wrong here? Is there another mechanism to accomplish the same thing? I've also attempted to use the numeric form of the Everyone group S-1-1-0 I have not tried using "Everyone" yet. ; Create the key for local machine settings (could be a 32 bit or 64 bit

How do I capture the results of a YESNOCANCEL MessageBox without gotos/labels in NSIS installer scripting?

时间秒杀一切 提交于 2020-01-02 05:33:16
问题 I would like to know how to use a YESNOCANCEL MessageBox in conjunction with IF logic from LogicLib.nsh in NSIS installer scripting to avoid having to use labels and gotos. Is there any way to capture the result of a MessageBox in a variable of some kind? Also, I know there are better things than NSIS out there, but using something else isn't a possibility at this point. =( Note the {WHAT GOES HERE??} in the below code. If this was just an If...Else... it would work fine. Thanks for the help

How to install AccessControl NSIS plugin? and grant full access to a subfolder?

﹥>﹥吖頭↗ 提交于 2020-01-02 03:58:05
问题 I am doing what it says on the forum but can't figure out where is the problem. I downloaded the .zip and extracted it. There was 4 folders (Contrib,Docs,Plugins,Unicode) aside from Docs where do I put the rest ? From AccessControl/Plugins I put the .dll to my NSIS/Plugins folder where are the other .dll files. But the other two folders diden't contained any .nsh or .nsi file to put in NSIS/Include. Where is the problem ? I am using HM NIS Edit and when I try to compile it says Invalid

NSIS Installer - Displaying different licences

主宰稳场 提交于 2020-01-01 10:16:39
问题 I'm trying to modify an existing NSIS install script to allow for different licence files to be presented to the user depending on whether they are a new or existing user. I have pre-existing code which detects an existing install in the .onInit section. However I'm running into bumps trying to use the NSIS provided licence screen e.g. !InsertMacro MUI_PAGE_LICENSE Content\Licence.rtf I would like to be able to choose between Licence and Licence2.rtf (though they'll be renamed something

Update %PATH% environment variable using NSIS

烂漫一生 提交于 2020-01-01 08:47:38
问题 I read that "Strings longer than ${NSIS_MAX_STRLEN} (1024) will get truncated/corrupted." How can I safely update %PATH% environment variable ? 回答1: You can use an alternative NSIS build from the special builds page like the large strings build that defines NSIS_MAX_STRLEN=8192 and should prevent you from breaking the host path. In practice, on a desktop machine, 1024 byte seems enough, but on a development host with many tools installed (like mine), the path might be broken after

NSIS - Silent Autoupdate Application

被刻印的时光 ゝ 提交于 2020-01-01 05:23:05
问题 I have an NSIS install kit for my .net c# application. Is there a way to silently autoupdate my application, considering that I already downloaded the new update (new NSIS app version) to local computer ? Thanks! :) 回答1: (In case you need to detect the command line /Autoupdate=yes) !include FileFunc.nsh !insertmacro GetParameters !insertmacro GetOptions Var CMD_ARGS Var CMD_RES Function .onInit # #installer stuff. # StrCpy $CMD_ARGS "" StrCpy $CMD_RES "no" ${GetParameters} $CMD_ARGS