.NET Installer Project

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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 said:
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 ??
 
Back
Top