nsis

Installing Chrome extension programmatically

偶尔善良 提交于 2019-12-05 02:46:23
问题 I know this has been asked pretty much and I read them all but couldn't find anything relevant to my problem so asking again. I have made a simple chrome extension. Also packed it as crx using chrome. I want to install it programmatically using an nsis or C++ installer. Got some help from here http://www.chromium.org/administrators/pre-installed-extensions But I am not sure how can I get the ID of the extension that is used. As the ID for the same extension is different on chromes on

NSI脚本右键的编译选项消失

隐身守侯 提交于 2019-12-05 01:50:54
在windows下如果安装了 NSIS 软件但是在右键.nsi脚本的菜单栏中没有出现 Complie NSIS Script Complie NSIS Script(Choose Compressor) 编译选项,修复的方法是删除注册表 HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts 目录下的 .nsi ,这样当再次在.nsi脚本文件鼠标右键时则会重新生成.nsi的注册表信息,那么编译选项也就修复了;引发编译选项消失的原因是更改了.nsi文件的默认打开方式。 来源: https://www.cnblogs.com/macrored/p/11895812.html

Installing chrome extension from NSIS installer?

北慕城南 提交于 2019-12-05 01:43:22
问题 I have an application that also has a firefox and chrome extension. I am using NSIS for the installer, now I want the installer to have checkboxs asking if the user want to install the extension for his browser. To install the firefox extension it's easy I just copy the extension files to PROGRAMFILES\Mozilla Firefox\extensions{GUID}, but I couldn't find a way I could do it for chrome (from the NSIS installer). Does someone knows how to achieve this? Update: External Extensions Thanks what I

How to get command output in NSIS?

老子叫甜甜 提交于 2019-12-05 00:37:51
I'm wondering, how do I get the output of an execwait command in NSIS. For example, if I run tree , how would I get the output, which would be the actual tree? You can't do that with ExecWait, you have to use one of the plugins: nsExec , ExecDos or ExecCmd 来源: https://stackoverflow.com/questions/4018097/how-to-get-command-output-in-nsis

Creating a silent installer for a MSI

与世无争的帅哥 提交于 2019-12-04 21:12:14
What is the best way to make a silent installer (or unattended) for a program that was already created and has a msi installer? At work I'm told to create an installer that is automated and does all the interaction with the user automatically so that the user essentially just hits one button and it runs through the msi installer of the program that was already developed. Also I have to make it replace a couple files in the directory. Is it possible to make a installer automate another installer? Can it be done using WIX in visual studios or NSIS? Do I need to be able to pull the already

How to launch an executable on the end of installation with proper rights?

安稳与你 提交于 2019-12-04 21:02:43
问题 I'm launching my Windows application this way after the installation completes: !define MUI_FINISHPAGE_RUN_FUNCTION "LaunchApplication" ... Function LaunchApplication ExecShell "" "$INSTDIR\Application.exe" FunctionEnd But this has a strange and undesired side-effect. Apparently is my application launched with admin rights. I cannot drag & drop any data between a web browser (tested with Firefox and IE) and my application. If I quit my application (the session started from NSIS), and restart

NSIS silent install ( started via code )

◇◆丶佛笑我妖孽 提交于 2019-12-04 20:13:32
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 ( Application updates itself) ProcessStartInfo Pro = new

How do I require user to uninstall previous version with NSIS

烈酒焚心 提交于 2019-12-04 18:30:26
问题 I have just started using NSIS. It works very well but I find the documentation a bit unstructured. How do I require user to uninstall previous version before installing a new version with NSIS? NSIS (Nullsoft Scriptable Install System) is an open source system to create Windows installers. 回答1: NSIS is a great Windows Installer. Here is how I use NSIS to uninstall the current version while installing a new version of the same application. Add the following function to your NSIS script.

NSIS Installer with .NET 4.0

风流意气都作罢 提交于 2019-12-04 17:57:55
问题 Is there a standard/preferred method for automatically downloading and installing the .NET 4.0 Framework from an NSIS installer, if the machine doesn't already have it? There are several examples for making this work on older versions of the framework, but seemingly none of them work for 4.0. Before I hack something together myself, I wanted to see if anyone here knew of something already out there. Thank you for your time. 回答1: What is the problem? The solution should be the same as for any

NSIS script - download .NET framework, DirectX

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 11:35:59
Can a NSIS script download .NET and DirectX from microsoft, then install it? I don't want to include the installers in my installer because they are huge. Here's an example for .Net : Function GetDotnet ;// looks for local copy before downloading, returns path in $0 Pop $0 ${If} ${FileExists} "$InitDir\dotnetfx35.exe" StrCpy $0 "$InitDir\dotnetfx35.exe" ${ElseIf} ${FileExists} "$InitDir\dotnetfx35setup.exe" StrCpy $0 "$InitDir\dotnetfx35setup.exe" ${Else} Call DownloadDotnet StrCpy $0 $0 ${EndIf} Push $0 FunctionEnd Function DownloadDotnet ;// downloads .Net, returns download path in $0 NSISDL