nsis

How to backup MySQL database from NSIS

放肆的年华 提交于 2019-12-25 01:48:55
问题 I need to backup a MySQL database from an NSIS installer. I am missing something trivial in the scripts I tried: nsExec::Exec '"$mySqlDirectory\bin\mysqldump.exe" --user=$username --password=$password --routines $dbName --execute="source D:\$dbName.sql"' $0 nsExec::Exec '"$mySqlDirectory\bin\mysqldump.exe" --user=$username --password=$password --routines $dbName --execute="D:\$dbName.sql"' $0 nsExec::Exec '"$mySqlDirectory\bin\mysqldump.exe" --user=$username --password=$password --execute="-

Porting a .exe setup and mono framework on mac

橙三吉。 提交于 2019-12-25 01:44:34
问题 I have a requirement to deploy a windows .net application on a Mac OS. As i am a novice to mac, i need a step by step procedure to bundle the Mono Framework and my application setup(built in NSIS). Uses should be be able to directly click and install the application on a Mac. If possible please provide a simple step by step procedure how to go about with the process. Thanks, 回答1: i'm not quite sure whether i understood what you want to accomplish, so the following is based on some wild

nsis uninstaller not deleting registry for electron app - nsh script

我怕爱的太早我们不能终老 提交于 2019-12-25 00:14:43
问题 I've set my electron app to auto-start on windows: app.setLoginItemSettings({ openAtLogin: true, path: process.execPaths }) This adds an entry to registry at location Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\electron.app my app I'm using electron-builder to package my app. It's mention there that I can add a script installer.nsh at the time of nsis uninstallation. Here's my custom installer.nsh : !macro customUnInstall SetRegView 64 DeleteRegKey /ifempty SHCTX

Running MSIEXEC in a NSIS script with installer switches

时光总嘲笑我的痴心妄想 提交于 2019-12-25 00:09:11
问题 I'm trying to build an NSIS installer and package it with necessary drivers (MSI files from the vendor). Eventually, I'd like to install these drivers silently in the backgroud. However, I cannot seem to get it working properly. In my NSIS script, I have the following: ExecWait 'msiexec /i "$INSTDIR\Flash.msi INSTALLDIR="$INSTDIR\Drivers\Flash""' It seems to execute; if I remove the INSTALLDIR switch from the above snippet, it'll run the driver installation as expected. But when I leave it in

Show finish page if user click cancel on license page NSIS

筅森魡賤 提交于 2019-12-24 20:18:27
问题 I have two license page and in the second license page, if user choose not to install the 3rd party app, it will show finish page. So far I use MUI_CUSTOMFUNCTION_ABORT onUserAbort to move into finish page. But the problem is when user click Skip button (it's actually Cancel button and I rename it into Skip), it will stay on license page and the Install button change to Next button (image 1 -> image 2 -> image 3). I know this is happen because I call Abort in onUserAbort . If I don't call

NSIS to set default program to launch specified file type

戏子无情 提交于 2019-12-24 11:37:16
问题 I am using an NSIS script to create an installer for my Java program. My executeable jar is launched from a BAT file. The installer works fine, but I want a specific file type (just for an example ".zip") to always use my app as the default. Right now if I double click the file, I have to browse into "Program Files > Company Name > bat file" and specify to always use this BAT file to launch this file type. Is there a way to specify this in an NSIS script so the user doesnt have to browse and

Best way to remove trailing character from a string (for example, trailing slashes)

随声附和 提交于 2019-12-24 09:53:54
问题 i am looking for the best way to check for and strip trailing characters in a variable. For example, if last character is / then i want to remove it. Ex1: If $var is C:\mypath\ then i want output as only C:\mypath Ex2: if $var is C:\mypath then output is C:\mypath 回答1: Function StripBackslash Exch $0 Push $1 StrCpy $1 $0 "" -1 StrCmp $1 "\" 0 +2 StrCpy $0 $0 -1 Pop $1 Exch $0 FunctionEnd Section Push "c:\some\path\" Call StripBackslash Pop $0 DetailPrint |$0| Push "c:\some\path" Call

Configuring a printer's redirect port via prompt

偶尔善良 提交于 2019-12-24 01:54:18
问题 I've been trying to create an installer for a program I wrote in Java, implementing GhostScript, that creates a virtual printer where the file is sent to. My program then reads the files and manages it accordingly. However, I had to manually configure the RedMon Redirect Port (RPT1:) and manually created a new printer, using that port, taking as arguments the .jar file: Arguments configured on the printer's port: I was able to create a new printer via NSIS (the program I'm using to create the

How to Install an NSIS Executable Silently For All Users

纵然是瞬间 提交于 2019-12-24 00:54:27
问题 I have an NSIS installer executable which I would like to install silently for all users. I know I can pass the /S argument to do a silent install. The problem is that the default option for the installer is to install only for the current user. How can I change this option from the command line: installer.exe /S 回答1: NSIS itself just supports /S , /NCRC and /D=c:\override\default\installdir\ , everything else is up the author. If the custom page from your screenshot was created with

Getting currently logged on user when running as admin

戏子无情 提交于 2019-12-23 18:34:25
问题 I've written an installer using NSIS and I need it to install some files (DLLs etc.) in a standard location like C:/Program Files/App Name/. I also need to install files in the current user's Application Data directory. The problem is that when the user is not an admin on Vista I need to elevate privileges and in doing so the environment variables change so the current user now appears to be the admin user and I end up installing in the Admin user's directory instead of the actual user. You