473,386 Members | 1,741 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Setup & Deployment: Close an instance of a process before installing.

Logan1337
Hello, I need to close all instances of a process before beginning my installation (overtop an old version), otherwise the user will get an error saying that the file is in use and installation cannot proceed.

I'm surprised this isn't a common thing to want to do. What I want is very simple:

Get an instance to all running processes of a given name,
Close those processes,
Begin installation.

I tried doing this via the Configuration.Install.Installer class's BeforeInstall event, but then realized that this was housed in the assembly that I am trying to quit! So of course it won't be able to run it if it hasn't been installed yet.

Is there some sort of script I can run that will do this? Windows Installer is so bizarre to me I can't understand its logic.
Jul 28 '07 #1
1 1126
Is there some sort of script I can run that will do this? Windows Installer is so bizarre to me I can't understand its logic.
Solved--but none too easily:

http://www.musicalnerdery.com/nerder...hem-again.html
Aug 2 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Darwin Fisk | last post by:
I have an app that is deployed that uses .config file settings. I have an update of that app that I am installing using a setup and deployment project. The basic setup process works fine. Now I...
12
by: SJD | last post by:
I've just read Christoph Schittko's article on XmlSerializer: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnxmlnet/html/trblshtxsd.asp . . . and very informative it is too....
0
by: forge | last post by:
Installing Merge Modules from C# Windows Form Application (not using a setup and deployment project) Hi, Currently, we have an InstallShield project that creates a setup.exe that only...
1
by: Luther Miller | last post by:
I've created a web setup project that works great for installing an ASP.NET application to a virtual directory on a server. I'd like to be able to use the same setup program to install multiple...
0
by: Aparna Rege | last post by:
Hi, I want to create an installation for my project (built using VB.Net 2003). I have two components in the setup and user may install only one of them to start with. I would like to give users...
6
by: andrewbb | last post by:
I want to deploy a service with a windows app and the setup program must conform to the Vista certification requirements. Can that be done with the standard .net setup project? Assuming cost is...
0
by: JDeats | last post by:
I have a Setup & Deployment project that results in an MSI and Setup.exe. When I run the resulting MSI if a previously installed instance exist the default behavior is for the MSI to prompt and ask...
3
by: zeenets | last post by:
Dear All, I make setup and deployment project in windows application. and use project primary output in setup. after installing on client machine my app.config file is...
0
by: tcomer | last post by:
I'm creating a setup and deployment application that will ultimately install some prerequisites, a windows application, and then transfer a file to a handheld device. The setup process works fine...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.