nsis | nsis -- please report issues there * * * NSIS | DevOps library
kandi X-RAY | nsis Summary
kandi X-RAY | nsis Summary
NSIS (Nullsoft Scriptable Install System) is a professional open source system to create Windows installers. It is designed to be as small and flexible as possible and is therefore very suitable for internet distribution.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of nsis
nsis Key Features
nsis Examples and Code Snippets
Community Discussions
Trending Discussions on nsis
QUESTION
I have successfully ported my desktop application from Dagger/Spring to Micronaut/Spring (there's just way too much Spring code in there for me to be able strip it all out in a timely manner). Using Micronaut and PicoCLI everything is working beautifully in Eclipse/Gradle. It's launching, tests are passing, so now I want to do a build and install it to make sure that everything will work for our customer.
Our build (via Gradle) uses Shadow (com.github.johnrengelman.shadow) to combine our application with all of its dependencies into a single Jar file. I've checked and all expected dependencies appear to be present, and from the look of it the generated Micronaut classes are also present in the shadow jar. We then use Launch4J to make this shadow jar executable. From everything that I can tell, the output from Launch4J looks to be correct, however when I try to run the installed application, the splash screen appears for a fraction of a second and that's it. When I run the Launch4J generated executable as a jar file, I get the following:
...ANSWER
Answered 2022-Mar-30 at 13:25I haven't been able to find any information for using launch4j with more than 65535 files (i.e.: something like the shadowJar zip64 flag), nor really much of any information in this regard in general for that matter. However one solution that works for me, is to set dontWrapJar
to true
. This creates a tiny launcher for running the created jar file with the bundled JRE, rather than converting the entire jar, keeping all (or at least the majority of) the files out of the launch4j generated executable. The updated gradle task is as follows
QUESTION
I created an installer file using nsis. After running the programme on my system, it worked flawlessly but when installed on third party system, it complained on launching the app.
...ANSWER
Answered 2022-Mar-16 at 11:52Here are the steps taken to solve the problem.
I printed the working directory.
QUESTION
electron-builder.yml
...ANSWER
Answered 2022-Mar-05 at 18:12I believe I had this error once, the simple fix is replacing the icon as the one I had was somehow corrupted. Just re-create the .ico icon and add it.
Funny how things break on their own and it's not your fault.
QUESTION
I have build my electron app with help of https://medium.com/jspoint/packaging-and-distributing-electron-applications-using-electron-builder-311fc55178d9
it was was success (windows only). but after install published app, i am getting error as shown in screenshort
my scripts as below
package.json
...ANSWER
Answered 2022-Mar-03 at 12:19If sqlite3
is required during normal operation of your Electron application and not just during development then you will need to added sqlite3
as a dependency.
IE: Move "sqlite3": "^5.0.2"
from "devDependencies": { ... }
to "dependencies": { ... }
.
package.json
QUESTION
I have created an installer using NSIS package to install my own software along with some 3rd party softwares such as Notepad++ and winPython. Batch scripts are being run to install notepad++ and winPython. The winPython which is packaged into the installer is in a zipped format "winPython3940.7z". This is being unzipped into a folder as a part of the installer using the following .nsh
script.
ANSWER
Answered 2022-Feb-25 at 18:44That message is not coming from NSIS, it must be from something inside your batch file, perhaps 7-Zip.
There is no reason to use a batch file to delete something, just use NSIS:
QUESTION
I'm trying to delete all files with a specific extension in a folder. I found this question on how to get all txt files and I thought about using that to get all files by extension and removing them, but I'm not sure how to do that.
...ANSWER
Answered 2022-Feb-21 at 12:52There is no difference between listing and deleting files:
QUESTION
I should please need your help as I am not a programmer (please have mercy with me). I should need to add in an existing NSIS script a function that does the following:
Checks the presence of a value called 169.254.1.1 into a INI file named myfile.ini and placed in
c:\mydirectory
Should it find this value into myfile.ini it should not do anything else (i.e. let the script do the next steps).
Should it NOT find this value into myfile.ini it should override the file
with another one by silently copying it from c:\dummyfile\myfile.ini
and then let the script do the next steps.
I do not know how to tell NSIS to do this, may I please ask for your help?
Thanks in advance for your expertise.
Meleena.
...ANSWER
Answered 2022-Feb-19 at 13:45If your file is an actual .INI file with [sections] then you can just use the INI functions:
QUESTION
I have a project written in C. Currently it's using UNIX makefiles to compile itself for Linux, but recently I've been looking into CMake, to be more portable.
The executable, when running, needs to access some asset files that are part of the project. When using makefiles, I would just compile the project with:
...ANSWER
Answered 2022-Feb-09 at 02:35For anyone stuck in a similar problem, I found one solution.
Upon looking online, this seems to be something not recommended for Unix systems, and setting the install location during compilation is pretty standard.
For windows, however, I found the function GetModuleFileNameW
(GetModuleFileNameW function (libloaderapi.h)).
It returns the path to the current executable (something like C:\Program Files\\bin\my-app.exe
). I've confirmed it returns the right path, even when I install the project on different directories. It returns the result using wchar_t
, so unicode directories are also supported.
Here is a small example of how it can be used:
QUESTION
I need help understanding the registry entries that Windows creates when I attempt to write keys to HKEY_CURRENT_USER by importing a .reg file.
I have written an installer in NSIS that installs the software for a standard user and does not require Admin authentication. The installer installs the software for the current user only.
My software contains two DLLs that use COM so they must be registered. However, since my installer does not request Admin authentication, I cannot use regasm. Rather, I am using the .reg file import technique described in this post:
Registering .Net COM DLLs without Admin rights / regasm
Effectively, I am running RegAsm with the /regfile switch to create a .reg file. I then replace all instances of
[HKEY_CLASSES_ROOT\
with
[HKEY_CURRENT_USER\
These are the keys that RegAsm creates with HKEY_CLASS_ROOT (which I then replaced with HKEY_CURRENT_USER):
[HKEY_CURRENT_USER\Software\Classes\MyDllLibrary.clsMyClass] [HKEY_CURRENT_USER\Software\Classes\MyDllLibrary.clsMyClass\CLSID] [HKEY_CURRENT_USER\Software\Classes\CLSID{3B8612DE-E333-31D5-86DA-9ED6D4B14A1C}] [HKEY_CURRENT_USER\Software\Classes\CLSID{3B8612DE-E333-31D5-86DA-9ED6D4B14A1C}\InprocServer32] [HKEY_CURRENT_USER\Software\Classes\CLSID{3B8612DE-E333-31D5-86DA-9ED6D4B14A1C}\InprocServer32\1.0.0.0] [HKEY_CURRENT_USER\Software\Classes\CLSID{3B8612DE-E333-31D5-86DA-9ED6D4B14A1C}\ProgId] [HKEY_CURRENT_USER\Software\Classes\CLSID{3B8612DE-E333-31D5-86DA-9ED6D4B14A1C}\Implemented Categories{62C8FE65-4EBB- [HKEY_CURRENT_USER\Software\Classes\MyDllLibrary.clsMyClass2] [HKEY_CURRENT_USER\Software\Classes\MyDllLibrary.clsMyClass2\CLSID] [HKEY_CURRENT_USER\Software\Classes\CLSID{FCE641D6-51C1-3648-AB43-C1F9BB812FC5}] [HKEY_CURRENT_USER\Software\Classes\CLSID{FCE641D6-51C1-3648-AB43-C1F9BB812FC5}\InprocServer32] [HKEY_CURRENT_USER\Software\Classes\CLSID{FCE641D6-51C1-3648-AB43-C1F9BB812FC5}\InprocServer32\1.0.0.0] [HKEY_CURRENT_USER\Software\Classes\CLSID{FCE641D6-51C1-3648-AB43-C1F9BB812FC5}\ProgId] [HKEY_CURRENT_USER\Software\Classes\CLSID{FCE641D6-51C1-3648-AB43-C1F9BB812FC5}\Implemented Categories{62C8FE65-4EBB-
After I import the .reg file above, to my surprise, my when I search the registry for my dll name, I find Windows has created keys in the following 3 place:
HKEY_CLASSES_ROOT HKEY_CURRENT_USER HKEY_USERS
I was expecting to only finds keys in HKEY_CURRENT_USER.
This presents two issues:
If the key is written to HKEY_CLASSES_ROOT I wonder if it is registering it for the entire machine (as opposed to only the current user).
My uninstaller "unregisters" the Dlls using the same technique of running the RegAsm /regfile switch and then replacing all instances of
[HKEY_CURRENT_USER
with
[-HKEY_CURRENT_USER
The problem is my uninstaller is only deleting the HKEY_CURRENT_USER keys and the HKEY_CLASSES_ROOT and HKEY_USERS keys are left behind.
I'm trying to understand why Windows is writing these additional keys and if I need to clean them up on uninstall.
Here is a list of the keys Windows is creating entries in:
Computer\HKEY_CLASSES_ROOT\CLSID{3B8612DE-E333-31D5-86DA-9ED6D4B14A1C}\InprocServer32 Computer\HKEY_CLASSES_ROOT\CLSID{3B8612DE-E333-31D5-86DA-9ED6D4B14A1C}\InprocServer32\1.0.0.0 Computer\HKEY_CLASSES_ROOT\CLSID{FCE641D6-51C1-3648-AB43-C1F9BB812FC5}\InprocServer32 Computer\HKEY_CLASSES_ROOT\CLSID{FCE641D6-51C1-3648-AB43-C1F9BB812FC5}\InprocServer32\1.0.0.0 Computer\HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID{3B8612DE-E333-31D5-86DA-9ED6D4B14A1C}\InprocServer32 Computer\HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID{3B8612DE-E333-31D5-86DA-9ED6D4B14A1C}\InprocServer32\1.0.0.0 Computer\HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID{FCE641D6-51C1-3648-AB43-C1F9BB812FC5}\InprocServer32 Computer\HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID{FCE641D6-51C1-3648-AB43-C1F9BB812FC5}\InprocServer32\1.0.0.0 Computer\HKEY_USERS\S-1-5-21-529589846-3326646294-2506018130-1001\SOFTWARE\Classes\CLSID{3B8612DE-E333-31D5-86DA-9ED6D4B14A1C}\InprocServer32 Computer\HKEY_USERS\S-1-5-21-529589846-3326646294-2506018130-1001\SOFTWARE\Classes\CLSID{3B8612DE-E333-31D5-86DA-9ED6D4B14A1C}\InprocServer32\1.0.0.0 Computer\HKEY_USERS\S-1-5-21-529589846-3326646294-2506018130-1001\SOFTWARE\Classes\CLSID{FCE641D6-51C1-3648-AB43-C1F9BB812FC5}\InprocServer32 Computer\HKEY_USERS\S-1-5-21-529589846-3326646294-2506018130-1001\SOFTWARE\Classes\CLSID{FCE641D6-51C1-3648-AB43-C1F9BB812FC5}\InprocServer32\1.0.0.0 Computer\HKEY_USERS\S-1-5-21-529589846-3326646294-2506018130-1001_Classes\CLSID{3B8612DE-E333-31D5-86DA-9ED6D4B14A1C}\InprocServer32 Computer\HKEY_USERS\S-1-5-21-529589846-3326646294-2506018130-1001_Classes\CLSID{3B8612DE-E333-31D5-86DA-9ED6D4B14A1C}\InprocServer32\1.0.0.0 Computer\HKEY_USERS\S-1-5-21-529589846-3326646294-2506018130-1001_Classes\CLSID{FCE641D6-51C1-3648-AB43-C1F9BB812FC5}\InprocServer32 Computer\HKEY_USERS\S-1-5-21-529589846-3326646294-2506018130-1001_Classes\CLSID{FCE641D6-51C1-3648-AB43-C1F9BB812FC5}\InprocServer32\1.0.0.0
Please help me understand why these keys are created and if there is any way to clean them up using the reg file importing technique that I am forced to use.
Looking forward to your insight.
Matthew
...ANSWER
Answered 2022-Feb-01 at 04:53They are only created in a single place.
HKEY_CLASSES_ROOT
is a merged view of HKEY_CURRENT_USER\Software\Classes
and HKEY_LOCAL_MACHINE\Software\Classes
, it stores no data of its own.
HKEY_CURRENT_USER
is just a symlink to HKEY_USERS\S-....
where S-... is the SID of your user account.
Ideally you should be using the NSIS registry functions, not .reg files.
QUESTION
I have done a C++ program for Windows and an NSIS installer using CPack.
I want that after the installation, the user can call my program from the terminal without giving the whole path of the exe.
Sometimes some installers even add an Add useful environment variables
checkbox at the end of the installation to give the user a choice.
Is it possible to add to the PATH environment variable the path to our bin
folder at the end of the installation using CPack and NSIS Generator?
If this is not possible, how do other programs add environment variables during installation?
...ANSWER
Answered 2022-Jan-20 at 19:28As always, check the documentation... https://cmake.org/cmake/help/latest/cpack_gen/nsis.html
CPACK_NSIS_MODIFY_PATH
Modify PATH toggle. If this is set to ON, then an extra page will appear in the installer that will allow the user to choose whether the program directory should be added to the system PATH variable.
Note that this is hard-coded to be the $INSTDIR\bin
path and is not configurable. In particular, setting CMAKE_INSTALL_BINDIR
to anything other than bin
will break.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install nsis
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page