Alex Rivera | Logout

How to move a ClickOnce deployment package

Asked 2008-10-06T15:30:28.243
12

I have a collection of ClickOnce packages in a publish folder on a network drive and need to move them all to another server (our DR machine).

After copy/pasting the whole directory and running the setups on the new machine I get an error message stating that it cannot find the old path:

Activation of ...MyClickOnceApp.application resulted in exception. Following failure messages were detected:

+ Downloading file://oldMachine/c$/MyClickOnceApp.application did not succeed.

+ Could not find a part of the path '\\oldMachine\c$\MyClickOnceApp.application'.

Once I change the installation URL to point at my new machine, I get another error:

Manifest XML signature is not valid.

+ The digital signature of the object did not verify.

I've tried using MageUI.exe, to modify the deployment URL, but it asks for a certificate, which I don't have.

What am I doing wrong and how do I successfully move published ClickOnce packages?

Edit
Report

1 Answer

3

I would expect to have to do the following:

  • Copy current folder contents to new location
  • For each app:-
    • Change 'Installation folder' to the new location
    • Publish as a new version
    • Change 'Publishing folder' to the new location
    • Publish as a new version

New setups run from the new folder should work and existing ones should update to look in the correct place.

All this is untested, but I'm pretty sure that's what I did previously...

Edit:

Obviously, you'll have to run these in parallel for a certain amount of time, but as it's an internal app the worst that will happen when you finally switch over to the new location is that you'll have to inform the user of the new location to obtain a 'fixed' app

answered 2008-10-06T15:41:07.117

Your Answer