I have written nsis script for creating exe file.I have included REPAIR and REMOVE feature in my script.By default i have checked REPAIR Radio button.If the user clicks remove button it will remove the already installed file using following command
Function Remove
Exec "$INSTDIR\uninstall.exe"
Quit
FunctionEnd
If the user click the remove button it will open the un install window and the user click the uninstall button then only the un install operation will be proceeded.
|Is there any way without asking user input we'll do the remove operation if the user select the remove option?
Exec '"$INSTDIR\uninstall.exe" /S'
You can read more about the command line options in the manual.
Related
I was wondering how you can open Sublime text 3 with Git-Bash I keep getting errors saying that bash: subl: command not found does anyone know how to get the file to open up??
You need to add the folder containing subl.exe to your PATH. Here's how to do that in Windows 10:
Open the Windows menu and click on Settings.
In the search box, type in path. Choose the following from the dropdown: Edit environment variables for your account. This window should open:
In the top pane, click on Path, then click the Edit… button. A new window will open up.
Click the New button, then (carefully) type in C:\Program Files\Sublime Text 3. This is assuming you used the installer and didn't choose a custom location for a portable install. If you do have a portable install, use the Browse… button and select the installation folder that way.
Hit OK to close the window, then OK again to close the other one. Finally, close out of Settings.
Completely close out of and restart Git Bash. subl should now be available on the command line.
I want to add 'Download subtitle' option on the context pop up menu (menu appearing on right clicking on the selected file) of all video files. How can I do this when I am using python as the language?
From this Q&A it appears you should install the nautilus-actions package and run it like:
$ sudo yum install nautilus-actions
$ nautilus-actions-config-tool
Since you are just telling nautilus to invoke a command you can implement it in any language: python, shell, Perl, etc.
I am using NSIS to create installer. Also I need to install other program (I have his installation file). How add second installer to automatically run it during first installation?
The simplest is to run the file (which must be first extracted to some directory,. e.g. $TEMP) with
ExecShell "open" "$INSTDIR\app.exe"
or with
ExecWait '"$INSTDIR\someprogram.exe"' $0
if you want to wait for program to finish.
Also consider many possibilities: whether the app should be run with some parameter, in Silent mode or elevated with admin rights or run as original user...
I'm installing a program with my installer and run it with 'ExecWait'.
Is there a way to hide the window of the installer while the program is executed?
The installer should show up again and continue when the user quits the executed program.
Is there any way to achieve that?
HideWindow
ExecWait '"$InstDir\Foo.exe" "space bar" /baz'
BringToFront
i have a exe which will be uninstalled only upon passing a commandline argument "uninstall". i would like to create a response file for uninstalling this exe by passing the argument and do my uninstallation silently. Is it possible?
I have created a Installscript Project and Install it silently, when i install it as silent then remove and change button are disable in control panel. can you let me know how can be enable these button . no matter weather it is silent uninstallation or simple uninstallation.
thanks