user2378527
user2378527

Reputation: 129

Install two instances of a Windows desktop application on the same computer

I have written a application using VS Express 2012 for Windows Desktop.

My client wants to be able to have two instances of the application installed on the same computer. One would be the production version and the other a test version. They would be connected to two different databases.

Of course when I try to install the second instance I get the message "You cannot start application 'MyApp' from this location because it is already installed from a different location."

I have tried to copy the project to a new folder, change the connection string and publish it from there but I still get the same error message.

Thanks!

UPDATE:

Per paqogomez This application is a Click Once app.

paqogomez's second comment led be to a site with the answer:

http://www.helplessautomation.com/2011/02/clickonce-deployment-deploying-multiple-versions-of-the-same-application/

Thanks paqogomez!!!

Upvotes: 1

Views: 1636

Answers (1)

user2378527
user2378527

Reputation: 129

To be able to install 'two versions' of the same ClickOnce application:

On the project's Property page select the Application tab and change the Assembly name;

On the project's Property page select the Publish tab, click the Options button under the Install Mode and Settings and change the Product name (so you can distinguish between the two when installed).

If you need to connect to different databases and you have the setting for the connection string you can change that by:

On the project's Property page select the Settings tab and changing the Value.

If you have any trouble follow this link:

http://www.helplessautomation.com/2011/02/clickonce-deployment-deploying-multiple-versions-of-the-same-application/

Thanks to paqogomez for pointing me in the right direction.

Upvotes: 1

Related Questions