nsis

Manage shortcuts arguments for NSIS CreateShortCut method via CMake

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: First hi to everyone ! I want to create a shortcut to a batch file that does not prompt the DOS window. For that I have seen that the following command works very well: wscript.exe invisible.vbs my_batch_file.bat My problem is that I would like to create the shortcut with this command via CMake and NSIS. My problem is that it seems I cannot give more than one parameter after "wscript.exe" in the following command in the CMakeLists.txt file: list(APPEND CPACK_NSIS_CREATE_ICONS " CreateShortCut '$SMPROGRAMS\\\\$STARTMENU_FOLDER\\\\link.lnk'

NSIS Installer - Displaying different licences

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: 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 representative in the final version). I

NSIS silent install ( started via code )

匿名 (未验证) 提交于 2019-12-03 08:30:34
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm trying to build an NSIS installer that will do the following: 1 When run normaly it will install the application with a installer with the usual choices. 2 When the installer is run with /S switch it silent installs, it's ok if it shows UI. But it should be automatic. It seems to me that the installer "works", as it runs and then correctly starts the application again. But it has not updated anything, it's almost as if it runs, but does not copy any files. When it's a silent install, it's started by the following code (

Changing NSIS installer properties

混江龙づ霸主 提交于 2019-12-03 07:03:06
问题 I have an NSIS-based installer file called setup.exe . When I go into Properties->Details, many details are missing. When I run the installer, UAC requests for elevated permissions (which is ok), but the publisher is "Unknown". How can I set these properties in the final setup.exe , preferably by only changing the NSIS installer script itself? 回答1: For the properties, you need version info table: various VIAddVersionKey directives and VIProductVersion. As an example, here's a snippet from the

Exploit Kit——hacker入侵web,某iframe中将加载RIG EK登录页面,最终下载并执行Monero矿工

ぐ巨炮叔叔 提交于 2019-12-03 05:09:43
RIG Exploit Kit使用PROPagate注入技术传播Monero Miner from: https://www.4hou.com/technology/12310.html 导语:FireEye研究人员探讨了综合使用RIG EK与各种漏洞利用来攻击终端的技术,展示了NSIS Loader如何利用鲜为人知的PROPagate进程注入技术来规避安全产品。 一、介绍 通过FireEye动态威胁情报(DTI),我们观察到RIG漏洞利用工具包(EK)增添了一个新功能代码:使用PROPagate注入技术来注入、下载并执行Monero矿工(类似的活动已经被 Trend Micro 报告)。除了利用鲜为人知的注入技术之外,攻击链还有一些其他有趣的特色,我们将在文中谈到。 二、攻击链 攻击链始于用户访问受感染网站时,其iframe中将加载RIG EK登录页面。RIG EK使用各种技术来分发NSIS(Nullsoft脚本安装系统)Loader,该Loader利用PROPagate注入技术将shellcode注入explorer.exe。shellcode执行下一个有效载荷,下载并执行Monero矿工。攻击链的流程图如图1所示。 图1:攻击链流程图 三、Exploit Kit 分析 当用户访问使用iframe注入的受感染站点时,iframe会加载登陆页

Setting the UAC 'Publisher' Field for a NSIS Installer

旧巷老猫 提交于 2019-12-03 03:53:11
问题 When I open my installer(that I created using NSIS), the UAC dialog appears with information about my installer. The field Publisher is 'unknown'. I've heard of digitally signing the application, do you know how to do this in NSIS? How can I set the field/attribute Publisher to "My Installer" or some other text? I think the following code is supposed to set the Publisher field but it doesn't, it still remains 'unknown': InstallDir "abc" Name "def" OutFile "def.exe" VIProductVersion "1.0.0.0"

NSIS - Silent Autoupdate Application

匿名 (未验证) 提交于 2019-12-03 02:59:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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 ClearErrors ${GetOptions} $CMD_ARGS /Autoupdate= $CMD_RES

Create an installer program: read a path to install to, from registry key (something like wix/installshield/nsis)

匿名 (未验证) 提交于 2019-12-03 02:33:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I would like to create an installer of my program. However because the installation is quite complicated, I need something more advanced than installshield limited edition. I have to run another installer from my current one. It doesn't matter if the user press "cancel" or installs the program, I just need to run it. I have to install a directory structure on user computer which has a lot of files, that's why i'm going mad with wix: 100 files and I should write all of them with my hands in that xml file? Are we mad? I have to install files

Free software for Windows installers: NSIS vs. WiX? [closed]

匿名 (未验证) 提交于 2019-12-03 01:58:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm need to choose a software package for installing software. NSIS and WiX seem promising. Which one would you recommend over the other and why? Feel free to offer something else if you think it's better than these two. 回答1: If you want to get an installer done today , with the minimum amount of overhead, use NSIS. Simple scripting language, good documentation, fast. If you want to build MSI files, integrate with the Windows Installer transactional system, and have plenty of time to devote to learning the declarative model used by

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

白昼怎懂夜的黑 提交于 2019-12-03 01:09:17
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? Use the RunningX64 macro in the x64.nsh header: !include LogicLib.nsh !include x64.nsh Section ${If} ${RunningX64} DetailPrint "64-bit Windows" ${Else} DetailPrint "32