Ignore Previously Installed Versions

K

krose

I have created an Installer using the "Setup Wizard" in Visual Studio.
I've added a custom action to this as a seperate DLL written in C#.
The custom action has to install files from another location on the
network.

Everything is working and going well.

The problem I am having now is that once it has been installed once, I
am unable to install it again as I get an "Another version of this
product is already installed" error message.

As I understand it I can get around this problem by changing the
Product Code in the installer, but this is not possible as the files on
the network are constantly changing and I can not change the product
code and regenerate the installer every time a file changes.

What I need to do is force my Installer to just ignore any versions
previously installed and just proceed as if it is always the first
time.

Does anyone know how I can do this?

Thanks
Kevin
 
G

Guest

In the propeties of your instal project there are two properties you are
interested in

"DetectNewerInstalledVersion - YES/NO"

and

"RemovePreviousVersions - YES/NO"

There is also a version number property which you'll need to increment so it
knows its a different version.

I am new to this so this could be totally not what you after but have a
look, it seems to work for me.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top