473,387 Members | 1,812 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,387 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 1682
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: 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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.