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


Answer this question

Install from CD

  • Hilton Locke - MSFT

    Sorin,

    < xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> 

    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

     



  • Erik BN

    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


  • sambhav

    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.

  • Massimo Mascaro

    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

  • DragonCommando

    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


  • Install from CD