Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Install from CD
 

Install from CD

Is it posible to install an application from a CD (with a project setup) and then make it to update itself with clickonce ?
I saw a property "Instalation URL" I've put there a UNC to a msi, I've installed my app from there then I publish the next revision on a site
It's not working.
How can I do that ?
ssandu  Thursday, August 11, 2005 12:02 PM

Sorin,

 

You could try the following if you would like to install something to the GAC and update via ClickOnce.

  1. Create an msi that installs the needed assemblies to the GAC.  Create a bootstrapper package that will run the msi before installing your ClickOnce application. See http://www.gotdotnet.com/Workspaces/Workspace.aspx?id=ddb4f08c-7d7c-4f44-a009-ea19fc812545 for a tool that will help create the necessary bootstrapper package files.
  2. Deploy your main app using ClickOnce.  Before publishing the application open the Prerequisites dialog (off the Publish Property Page) and select the package made in the previous step.
  3. Instruct users to run the setup.exe that is created at the publish location.

 

By having a custom prerequisite package for your application, you can do the impactful actions and still get the ClickOnce updates.  The only problem that you may run into is a servicing problem with anything installed by the custom prerequisite package.  Users will have to run setup.exe again before getting updates to the items in the custom prerequisites package â€?it will not be automatic like ClickOnce.

 

Regards,

Elizabeth Maher

VB Team

 

Elizabeth Maher 1  Tuesday, September 06, 2005 9:22 PM
Yes, it is possible to install from a CD update fronm a networ share. However, the update needs to be a clickonce application.

The Instalation URL takes a url to the deployment manifest. For e.g http://www.someserver.com/App/app.application.

Here app.application is the deployment maniefest which ClickOnce checks to install any updates if availalbe. You should not point it to a .msi.  Since the project setup must have already installed pre-requisites like the .Net Framework, MDAC etc, any updates essentially apply to clickonce applications. If you want to update pre-requisites the user need to run setup from again using your newer setup program.

Thanks,
Sameer
Sameer Murudkar - MSFT  Saturday, August 13, 2005 5:35 PM
I've tried that but I can't make it updatable.
Can you be more specific ?
What steps should I take ?
Thank's
Sorin Sandu
ssandu  Wednesday, August 17, 2005 4:42 AM
If I understand what you want to do correctly.. Lets try this..
Please replace the CD in your question with local machine for a second..

You publish the app Version 1.0.0.0 to your local machine. when publishing specify the Installation URL (or what we call deploymentProvider) to a server location where you want to get the updates in future from..

Install your app from the local machine.
then publish your update 2.0.0.0 on the server location whcih you have specified earlier.
Lauch the start menu shortcut to get the update from the server location.
from now on all your updates should be published on the server location and your clients will be getting them from there

Hope that explains.
Now you replace the local manchine with CD and apply the same procedure.
kanthb  Wednesday, August 17, 2005 7:52 PM
Ok I understand now
It seems I can't install from a MSI and then update with ClickOnce.
This was my request.
I need to install something in GAC, I want my app in Program Files folder, etc.
Thank's for your response
ssandu  Thursday, August 18, 2005 4:55 AM

Sorin,

 

You could try the following if you would like to install something to the GAC and update via ClickOnce.

  1. Create an msi that installs the needed assemblies to the GAC.  Create a bootstrapper package that will run the msi before installing your ClickOnce application. See http://www.gotdotnet.com/Workspaces/Workspace.aspx?id=ddb4f08c-7d7c-4f44-a009-ea19fc812545 for a tool that will help create the necessary bootstrapper package files.
  2. Deploy your main app using ClickOnce.  Before publishing the application open the Prerequisites dialog (off the Publish Property Page) and select the package made in the previous step.
  3. Instruct users to run the setup.exe that is created at the publish location.

 

By having a custom prerequisite package for your application, you can do the impactful actions and still get the ClickOnce updates.  The only problem that you may run into is a servicing problem with anything installed by the custom prerequisite package.  Users will have to run setup.exe again before getting updates to the items in the custom prerequisites package â€?it will not be automatic like ClickOnce.

 

Regards,

Elizabeth Maher

VB Team

 

Elizabeth Maher 1  Tuesday, September 06, 2005 9:22 PM

You can use google to search for other answers

Custom Search

More Threads

• ClickOnce Install Error
• .manifest file extension problem.
• Error 2869 & Error 1401 In MSI Setup Project
• Clickonce - What is the difference between data file and data file (auto)
• dependecies not updated on target computer changing version
• Framewok v2 WinForms setup project with VS2008
• run file after setup
• what functionality should be included in the client download?
• Can a User manual and/or Uninstall links be included with ClickOnce deployments?
• Click once deployment