What happens when newer version is installed with 2005 ClickOnce?

I published a newer version and ran setup.exe to install.

1. The Windows Start, Control Panel, Add or Remove Programs automatically deleted the older version.

2. Additional folders were added in the new locations for ClickOnce in cryptic folder names, some layers below C:\Documents and Settings:

C:\Documents and Settings

\user name
\Apps
\2.0
\cryptic name.OT4
\cryptic name.QTH
\manifests
\cryptic name x version 2
\cryptic name x version 1
\cryptic name y version 2 (app's exe file here)
\cryptic name y version 1 (app's exe file here)

Q1. What is the easy way to provide a method to start the app My desktop program screen is already full; after installing the first version, I didn't see where it was added. So I did a search "appName.exe", found the "hidden" location, made a desktop shortcut.

On the newer install, I deleted the old desktop shortcut, found the Additional "cryptic name y" folder and made a new shortcut. The only way to identify the newer version's folder is the files Date modified values in folder y. The actual version is not actually shown in folder names.

Q2. Why are the older version folders retained

Note the unusual sequence of x and y folders when newer versions are added. The newer version folders (at least in my case) are placed before the older version, going against normal alphabetic sequence.



Answer this question

What happens when newer version is installed with 2005 ClickOnce?

  • nancy white

    you are right gseese2 it doesnt matter for .net which version you publish on IIS

    but it would be misunderstable when u start with 10.0 or 30.0

    i dont have knowledge about installation "hidden" folder.

    when you publish your application on IIS,(i have learnt this yesterday) Framework creates a manifest folder which your COM+ controls,designers or classes built-in

    for example when i added Shockwave Flash control to my solution,it would automatically creates a manifest file when i published at localhost or something open-to-Internet.



  • kaizen

    My focus was on the Install (what happens when setup.exe is run), not the Deploy. Before ClickOnce, the installed app was inserted into C:\Program Files. Now they are put into "hidden" folders that are not easily found or read by a human.

    I'm not familiar with Publish in localhost(IIS). Can you please confirm what happens with the installed components, if it is different than what I described

    I would think the installation process does not care what the actual new version is, compared with any existing versions. I assume you could start with version 5.6.7.8 (instead of default 1.0.0.0), then publish with version 6.7.8.9, and the same install would occur.


  • OoeyGUI

    i tried it

    when i add something to new to my program i publish it

    it automatically counts like

    if i have 1.0.0.0 version before its now 1.0.0.1

    i tried to change that and entered

    myprojects properties from project menu

    i changed publish setting

    i made the version 1.1.0.0

    and then i rebuilt and published my project in localhost(IIS)

    when i entered my localhost folder,there was a folder named with my project

    i entered and what do i see i saw all the versions of my project

    hint:

    when u publish your project in localhost,if u dont nstall newer version of course the system runs the older versions

    if u install the newer version system automatically updates and deletes the old version as i did



  • BullZhot

    Correction of path and additional information.

    If three installs are made for project Addresses (v1, 2, and 3), and three installs are made for project Addromeda (v1,2, and 3),  I see these folders:

    C:\Documents and Settings
    
    \(user name)
    \Local Settings
    \Apps
    \2.0
    \8H6JVYE3.QT4
    \9VMJ4LN7.QTH
    \Manifests
    \addr...exe_cryptic codes (Addresses v2)
    \addr...exe_cryptic codes (Addresses v3)
    \addr...exe_cryptic codes (Addromeda v2)
    \addr...exe_cryptic codes (Addromeda v3)
    \addr..tion_cryptic codes (Addresses v2)
    >>> (tion = "BIN" - app exe file, readme.txt etc.)
    \addr..tion_cryptic codes (Addresses v3)
    \addr..tion_cryptic codes (Addromeda v2)
    \addr..tion_cryptic codes (Addromeda v3)
    \Data
    \XWRBZCND.EN2
    \N3YVWAM4.R56
    \addr.tion_cryptic codes (Addresses v2)
    \Data
    >>> (if app has database, mdf file is here)
    \addr.tion_cryptic codes (Addresses v3)
    \Data
    \addr.tion_cryptic codes (Addromeda v2)
    \Data
    \addr.tion_cryptic codes (Addromeda v3)
    \Data

    Current and prior versions are included. In this case, v1 folders and files were deleted when v3 was installed. Control Panel shows only the current version. What's the purpose of having prior version here

    Only first four characters of project name are utilized. Perhaps programmer will not need to access this information in Windows Explorer, but if necessary, confusion and error could be caused when projects share first four characters. Seems like an extra folder level to have the entire project/app name (and version) would make this clearer, but are they trying to make it mysterious on purpose   

    Is backup of database done at a high level that recognizes only the current version Otherwise, could it be complicated due to this unusual path system, and existence of two versions

     


  • What happens when newer version is installed with 2005 ClickOnce?