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
)
Related
I am trying to automate the task of installing a software on Windows 7 and its an .exe file which requires user input in the form of Next or Ok. I have to first push that .exe (WinampInstall.exe) file on to the machines (over 100 of them). Additionally it should run silently without requiring any input from the user.
Until now I have come across AutoIt which can create macros which can replay the actions of the mouse and keyboard. I'm having trouble with the .au3 script, as it doesn't fully automate the installation.
Can I use batch file to run the script as well?
Run('C:\Users\Desktop\WinampInstall.exe')
_WinWaitActivate("SciTE","Address: C:\Program ")
MouseMove(630,19)
MouseDown("left")
MouseMove(609,-150)
MouseUp("left")
MouseMove(301,9)
MouseDown("left")
MouseMove(578,-18)
MouseUp("left")
According to the WinAmp forums, you can use command line switches with the installer.
winamp50*.exe /S /install=SFQDRA
/S = Silent install
S = start menu icons
F = file association
Q = quicklaunch icon
D = desktop icon
R = fake registration
A = run winamp agent/set default
An example batch-file using command-line switches that would
Copy the WinAmp installer from a network share
Install WinAmp silently (using the /s switch)
#echo off
set "localPath=%temp%\WinampInstall.exe"
copy "\\network-share\WinampInstall.exe" "%localPath%"
"%localPath%" /S
pause
I am writing a script to install a program remotely on requested computers. Only problem is that the file we invoke to install the application is actually a shortcut that points to an .exe and an .ini so it can install with specific parameters. Is there a way I can run the shortcut from the batch file so that it points to both file and installs on the users computer with parameters already set?
Is this what you are looking for?
xcopy "source" "destination" Example: xcopy E:\fileC:\Users\user\destination
For example I have a config file in D:\Project\InstallerPro\Platform\Windows8\Web.config
I need to move that file to D:\Project\InstallerPro\Web\Configuration\Web.config if the windows version is windows 8
After that, the installer will be generated from a nsi script in D:\Project\InstallerPro\PROinst.nsi
Is it possible to copy the files (not manually) before compiling it into an installer using NSIS?
I want to do something like this:
CopyFiles ".\Source\Platform\Windows8\Web.config" ".\Source\WEB\Configuration\Web.config"
CopyFiles is a runtime command, i.e a command that will run during the installer execution and not during the installer creation.
You could use the !system command that is executed during the compilation of the installer, e.g.:
!system `copy "c:\Source\Platform\Windows8\Web.config" "c:\Source\WEB\Configuration\Web.config"`
You will need to use absolute paths as the current working dir is from makensis.exe and not from the script being compiled.
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.
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.