473,322 Members | 1,778 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,322 software developers and data experts.

.NET Installer Project

hi,

i'm trying to limit the installation of my application for one time only. when i compile my project it makes a .msi file. Everytime I install the application from msi file it starts to uninstall the previous application and then start installing again, hence, whatever condition i specify, its nulified because the whole application is un-installed.

i have tried few things but nothings works. Is there anyway i could limit the installation for one time only. or is there any way i could stop it from uninstalling by itself when i try it again ??

thanx.
-jasim

Jul 21 '05 #1
1 1680
I can't tell exactly what you're doing here, but if you try to install the
same MSI file more than once, it will go into maintenance mode and want you
to repair or uninstall it. This is because the product is defined by the
ProductCode Guid and if it's already installed on the system you can't
install it again. You also need to consider whether it makes sense for more
than one copy of your product to be installed in case it uses system-unique
things like COM, a Service, shortcuts, GAC assemblies etc. But you may have
got RemovePreviousVersions set True, which will uninstall the prior version
of the product when you install the new one (if some other things are done
too). So the main question is what do you mean by "starts to uninstall the
previous application"? Do you see a repair/uninstall dialog or are you
saying that it uninstalls the previous application all by itself?
--
Phil Wilson
[MVP Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

"Jasim Iqbal" <Jasim Iq***@discussions.microsoft.com> wrote in message
news:D0**********************************@microsof t.com...
hi,

i'm trying to limit the installation of my application for one time only. when i compile my project it makes a .msi file. Everytime I install the
application from msi file it starts to uninstall the previous application
and then start installing again, hence, whatever condition i specify, its
nulified because the whole application is un-installed.
i have tried few things but nothings works. Is there anyway i could limit the installation for one time only. or is there any way i could stop it from
uninstalling by itself when i try it again ??
thanx.
-jasim

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Arun Bhalla | last post by:
I'm borrowing some code from Pavel's Command Prompt Explorer Bar installer to use in my own explorer bar's installer. Recently I've been thinking that using an assembly version like "1.0.*"...
1
by: HyperX | last post by:
Hey guys, How can I see the code of the installer class? I know that I have to right click on my object class, -> Add Item -> Code -> installer class... The actual question is, I cannot see...
5
by: Arun Bhalla | last post by:
I'm working with VS.NET 2003 and .NET 1.1 (not SP1) on Windows XP SP1. My application is using the Windows Installer Bootstrap. (I may have also installed a module which detects requirements (.NET...
0
by: Arun Bhalla | last post by:
I'm having some inconsistency problems with my deployment project ("Setup") and its custom actions ("Installer"). I'm using Visual Studio .NET 2003 (.NET 1.1, no service pack) on Windows XPSP1. ...
2
by: MENTAT | last post by:
Hi, I am trying to create an installer for my web application. So I added a web setup project to my solution (I am using VS.NET 2003). Been playing around with it since then and it basically...
3
by: Brian Henry | last post by:
This has worked perfectly for the past year now all the sudden it will not compile the installer project correctly. All our source code is in a Source Safe database so every system we do this on...
6
by: Brett | last post by:
I've created a Windows setup project in VS.NET 2003. The first setup ran fine minus creating the Program's group. I made some changes and rebuilt the MSI and setup.exe files. Now when I run the...
1
by: apondu | last post by:
Hi, I needed some help in the installer. I have a project and nw i decided to create a Installer for this project. I wanted to create a file in this Installer. I have a override function for...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.