Windows package installer for automatic setup - batch-file

All,
I have a package that should be easily deployed on any client machine, say provided there is Windows as an OS.
Package contains icons, .dll, doc files, .xml templates, .py scripts...
I would like that the User unzip this folder anywhere, launch a .bat or any other script, and that package is copied pasted at the right place.
In a second phase, i could refine this installer deplacing some files at the right place.
Is it possible with a .bat file ? What would it look like ?
Thanks in advance.

Type in Start - Run
iexpress
and follow the prompts in the IExpress 2.0 Setup Wizard.

Related

Bat file is missing in jmeter bin folder

I just tried to install jmeter - (Apache-j meter-5.1.1) but when I view the bin folder bat file is missing. My configuration details: version of jdk is 12.0.2, my operation system is 64 bit. View the screenshot of bin folder -
https://www.screencast.com/t/apWQkxP3dD4h
Type Windows Batch File is a file type with extension .bat
You have such jmeter file in your screenshot
A batch file is a script file in DOS, OS/2 and Microsoft Windows.
The filename extension .bat is used in DOS and Window
The jmeter.bat file can be obtained from JMeter sources at any time if you removed it by accident.
However in fact you do have the file:
You might want to configure Windows Explorer to show file extensions
In general I would recommend launching JMeter from Windows Command Prompt as in case of i.e. Java misconfiguration you will not be able to see the output given you launch JMeter by double-clicking the shortcut because it will blink and close immediately.
More information: How to Get Started With JMeter: Part 1 - Installation & Test Plans
Just double click on file type named as Jmeter with type as "Windows Batch File" or else open it from command prompt/terminal.
refer to the attached screenshot.
Cliek here to open a screenshot

how to install check_inode plugin in nagios

i have to install a plugin on a red hat server where nagios is already configured.
the plugin to be installed is inode_checker which i got from this link
how to install inode checker in nagios
but when i opened this link i could find a shell script here.
now i am not sure whether i have to place the shell script directly on the server in the location /usr/local/nagios/libexec/ or is there any other way to do it since the other plugins available in this location seems to be different and i am not able to open them.
what am i doing wrong here?please advise.
Yes, this is a bash script so simply download and place it in the folder where you have other scripts sitting. Make sure to make it executable like
chmod +x scriptname
Then you should be able to use it in nagios by creating a Command object. You can find the location of the folder where your scripts are located by looking at the resources.cfg file which should hold something like below:
$USER1$=/usr/lib64/nagios/plugins
Hope this helps.

Creating a MSI package with batch file

we have a requirement to uninstall an application from windows machine.I have created a batch file to with uninstall commands,converted the batch file into a exe and by using MSI package installer created a package.
When i tried to install this other machine this was found as virus/Spyware.
Is this because of bat file in the exe?
I would assume this is due to the tool you used to create the EXE file with. Other than that you can take a look at various ways to uninstall MSI files.
I don't know what kind of network you are on, but normally an uninstall like this is best done via a deployment tool, WMI, PowerShell or similar. There are many ways.

Need to execute a jar file using bat file

Need to execute a runnable jar file in widows machine and dont know whether the system already installed java or not.In case if the java is not installed in the machine the bat file has to install the java and then execute the jar file.The possibility may be like below.
check the whether java installed in the machine or not
If not installed install in the machine install the java and execute the jar file
If already java installed in the machine run the jar file.
Help me to solve.
Rather than a batch file you could consider using a tool like launch4j to generate an .exe wrapper. An executable built by launch4j will prompt the user to download java if they don't already have a suitable version installed.

How do i combine a bat file with an MSI?

I have an MSI Installer that I created in WIX that i would like to be run from a .bat file, but I need it to be in one MSI file. How would i do that? for example i have a .bat file that does this
MD C:\TEMP\BATS
START /W msiexec /i Installer.msi /l*v C:\TEMP\BATS\INSTALLERLOG.txt
SLEEP 5
DEL C:\TEMP\INSTALLERLOG.txt
RD C:\TEMP
I want to create an .msi or .exe file that contains both the .bat file and the .msi file and will unpackage the two files and run the .bat file. Is this possible? I am doing it just to force Logging that will be displayed to the user through a custom action if the installer fails some how.
It sounds like you are caught by the technical details of the counterparts of your solution. Try to forget what you have for a moment and think of what you actually need.
As far as I can tell from your code snippet, the bat file creates a temporary directory, runs MSI package installation with verbose logging option, and then deletes the generated log file... Sounds a bit of no sense to me...
This is whatI would do in your case:
Get rid of that bat file
Ask yourself what its purpose is. If it is there to modify the target system, then revise this logic and move it to your MSI package following all the best practices you can find. If it has to to some service work, e.g. prepare parameters for the main MSI package, then consider authoring a bootstrapper.
You can try IExpress to generate a single EXE file. Another solution would be to use a self-extracting EXE archive which can launch a specific file when it finishes extracting.

Resources