Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Deploying vb .net windows production version app while development version still being tested by users

Posted on 2009-07-06
7
Medium Priority
?
723 Views
Last Modified: 2013-12-12
I am using ClickOnce Deployment with automatic updates before the application starts for a vb .net windows app.  My problem is that I need to temporarily leave the test version of the app on all the machines on which I'm installing the production version.  The development app is intalled from the development server and the production app is being installed from the production server, so I can't just make the production app the next revision #.  I tried to rename the app but there were so many components to rename that the whole app was out of sync.  Can I just override the installation path or are there internal registries that will step on each other?  Any help will be greatly appreciated!  
0
Comment
Question by:DenaMP
  • 4
  • 3
7 Comments
 
LVL 3

Accepted Solution

by:
nhenny2009 earned 2000 total points
ID: 24798615
I've done this...our ClickOnce app, when deployed to our customer sites could be used by more than one group and the ClickOnce app needs to be installed twice (or more).  This will allow two revisions to be installed in the same Windows profile.

Your case is easier, because you have two different servers involved (each holding a DEV or PRODUCTION version of your ClickOnce app).

On your DEV server:
1.Deploy your app with a MyAppName.application that contains a
<assembly><assemblyIdentity name="MyAppNameDEV.application"...

Also change the assemblyIdentity under the <dependency> tags to
<assemblyIdentity name="MyAppNameDEV.exe"...

On your PRODUCTION server:
1.Deploy your app with a MyAppName.application that contains a
<assembly><assemblyIdentity name="MyAppNamePROD.application"...

Also change the assemblyIdentity under the <dependency> tags to
<assemblyIdentity name="MyAppNamePROD.exe"...


Please note...you are not actually changing the name of the executable you are deploying, rather you are only changing the "identity" of your ClickOnce executable and this is what allow you to install both even if they have the same ClickOnce revision.

Best Wishes.








0
 

Author Comment

by:DenaMP
ID: 24803442
Thanks so much for your reply.   The only place where I found the  <assembly><assemblyIdentityname
tags was in the appName.exe.manifest file, but when I tried to change the AppName as you suggested and run the set up, I got a signature error --  
            
                      + Manifest XML signature is not valid.
      + The digital signature of the object did not verify.

which of course makes sense because I changed the manifest.  So, how can I change these fields in the project itself before deployment.  Once again, thanks for your time and help!  

0
 
LVL 3

Expert Comment

by:nhenny2009
ID: 24803458
You need to use mage.exe and then resign the manifest files after you make the changes....you can make them manually but you will still need to resign the manifest.

Best Wishes.
0
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 

Author Comment

by:DenaMP
ID: 24803770
How do you resign the manifest?  
0
 
LVL 3

Expert Comment

by:nhenny2009
ID: 24803869
use mage.exe with the "-sign" parameter and the "-certfile" parameter.  Here's the MSDN article link:

http://msdn.microsoft.com/en-us/library/acz3y3te.aspx

0
 

Author Closing Comment

by:DenaMP
ID: 31600156
Thanks loads for your help!  I won't have a chance to try this out until next week but I guess I'll holler if I run into a glitch.  
0
 
LVL 3

Expert Comment

by:nhenny2009
ID: 24816452
NP DenaMP, just let me know if you run into a glitch.

Best Wishes.
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The main intent of this article is to make you aware of ‘Exchange fail to mount’ error, its effects, causes, and solution.
When you discover the power of the R programming language, you are going to wonder how you ever lived without it! Learn why the language merits a place in your programming arsenal.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.

782 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question