Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > UPGRADING CLIENT'S MACHINE WITH SETUP.msi
 

UPGRADING CLIENT'S MACHINE WITH SETUP.msi

I am trying to update my SetUp project which has been installed on a client’s machine. Unfortunately when I try to install the updated version it runs though the install sequence and confirms it has been installed successfully.

However the previous version remains and there is no record of the newer version in C:\Program Files. Although it is listed in ‘Program and Features�

My Setup settings:

UpgradeCode �Remains the same

Version �increased by 1

ProductCode - Changed

RemovePreviousVersion - True

Rebiuld SetUp

Copy SetUp to CD from Project > SetUp. Release to install on clients machine.

What am I doing wrong?

hemo  Saturday, July 25, 2009 7:46 PM
Hi hemo,

Have you increased the AssemblyVersion and AssemblyFileVersion for all the updated assembly? Setup will only update the assembly whose version number has been updated. Only change the setup project's version number won't work.

If I misunderstood you, please feel free to tell me.

Sincerely,
Kira Qian
Please mark the replies as answers if they help and unmark if they don't.
  • Marked As Answer byhemo Tuesday, July 28, 2009 11:33 AM
  •  
Kira Qian  Tuesday, July 28, 2009 3:45 AM
Hi hemo,

Have you increased the AssemblyVersion and AssemblyFileVersion for all the updated assembly? Setup will only update the assembly whose version number has been updated. Only change the setup project's version number won't work.

If I misunderstood you, please feel free to tell me.

Sincerely,
Kira Qian
Please mark the replies as answers if they help and unmark if they don't.
  • Marked As Answer byhemo Tuesday, July 28, 2009 11:33 AM
  •  
Kira Qian  Tuesday, July 28, 2009 3:45 AM

Hello Kira

No, you haven’t misunderstood the problem. Your solution perfectly indentifies my error. The new version now correctly update the previous version and as planned not copying the database,

One interesting point, although the application is listed in C:\ Program Files(x86) it don’t appear in ‘Start All Programs�/span>

Thank you very much for your help.

Regards

hemo

hemo  Tuesday, July 28, 2009 11:32 AM
Hi hemo,

I am glad I can solve the problem.

"although the application is listed in C:\ Program Files(x86) it don’t appear in ‘Start All Programs"

Did you install the application for "Everyone"? If you install it for "Just me", it only appear to your own "start menu" -> "All Programs".

Sincerely,
Kira Qian
Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Wednesday, July 29, 2009 1:47 AM

Hello Kira

Yes the application was installed for Everyone. I have installed the application on another with the same result. Normally there would be a indication in the Start > All Programs bar that a new program had been installed. Using ClickOnce setup the program is listed in all programs. Have I missed something in my SetUp.msi?

Regards

hemo

hemo  Thursday, July 30, 2009 9:19 PM
Hello hemo,

Did you create shortcut for your application? May be you have miss that.
1. Select "User's Programs Menu" node in the File System window.
2. Right click the blank area at the right side, choose "Create new shortcut".
3. Point it to the Primary output in the "Application Folder".

That will create shortcut into the "All Programs".

Wish you good luck.

Sincerely,
Kira Qian
Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Friday, July 31, 2009 1:59 AM

You can use google to search for other answers

Custom Search

More Threads

• Is it possible to deploy non-.NET apps with ClickOnce?
• Cannot launch ClickOnce appliation on another network
• Move published application to another IIS server
• Framework 2 Deployment problem
• setup project installation problem
• Add/Remove program questions
• Launch Location of ClickOnce App Using UNC
• New to clickOnce Technology please help
• Set-up for a class library
• Custom Action dll in C#?