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.
Related
I am making an installer using the NSIS tool.
It's first time that I use NSIS and batch file script, so there are many difficulties.
The most important issue to solve is that the network driver must be installed automatically when the installation is completed.
So my idea is making a batch file to install network driver, and execute it by NSIS script.
The manual installation process is in below picture:
So my question is: Is it possible to make this process by using batch script?
And if it is: How could I get to last process in batch file? is it registry or something?
Depending on the driver, you might be able to perform a .inf install:
Section
InitPluginsDir
SetOutPath $PluginsDir
File "mydriver*.*"
System::Call 'SETUPAPI::InstallHinfSection(p0,p0,ts,i0)' 'DefaultInstall 132 $PluginsDir\mydriver.inf'
SetOutPath $InstDir
SectionEnd
If you want to install a 64-bit driver with a 32-bit installer you might have to ExecWait '"$sysdir\..\sysnative\rundll32.exe" SETUPAPI.DLL,InstallHinfSection DefaultInstall 132 $PluginsDir\mydriver.inf instead.
I have a WPF project (app1.exe). In order to run app1.exe, user needs to run a few exe files and msi files (e.g. .NET 4.0, speech platform, etc.) to install some libraries before running WPF exe file. Therefore, I want to ask a few things:
How to create setup file for WPF project?
How to automatically install dependencies (with specific order) before running setup.exe?
How to automatically decide x86 or x64 files to install?
Install Installshield for Visual Studio and you can create a setup file.
Create a bat file and run those file before your setup.exe
Follow this template:
#echo off
if defined ProgramFiles(x86) (
#echo yes
#echo Some 64-bit work
) else (
#echo no
#echo Some 32-bit work
)
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.
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.
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.