Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: How to ensure that only one copy of the installed product exists - per PC


Message #1 by "Sharma, Neeraj" <nsharma@A...> on Tue, 22 May 2001 14:13:54 -0700
    You should upgrade from P&DW to Visual Studio Installer 1.1.  Its available
at www.microsoft.com, just do a search on it.

    Instead of checking to see if it is previously installed (which VSI might do
for you anyway), you could do this in the Sub Main that loads your project:

If App.PrevInstance Then MsgBox "No soup for you!": Exit Sub

with a better message of course.  This will prevent your application from
running multiple times if that is what you're afraid of occuring.

- Chuck

----- Original Message -----
From: "Sharma, Neeraj" <nsharma@A...>
To: "professional vb" <pro_vb@p...>
Sent: Tuesday, May 22, 2001 5:13 PM
Subject: [pro_vb] How to ensure that only one copy of the installed product
exists per PC


>
>
> Hi All
>
> I m developing an Application in Vb.I have made an executable of the same
> through Package and deployment wizard and burned it on a CD with setup.exe
> file.It all works beautifully except the fact that i can reinstall the same
> application twice or thrice  or as many times on the same pc as long as i
> keep giving a new program group while installation.i.e.say I install my
> application in Start-> Programs->abc1.Now i can rerun the setup.exe and
> install it in start->programs->abc2.Thus i get 2 installations of the same
> product on the same PC which of course is undesirable.Could anyone suggest a
> way to ensure that only one copy of the installed product exists per
> PC.Attempt to install another one either fails or results in upgrading of
> the previous version.Also if possible can someone tell me how to incorporate
> DEinstalling of an application from package and deployment wizard.
>
> Thanks and regards
> Neeraj
>


  Return to Index