Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Where is the upgrade code stored?
 

Where is the upgrade code stored?

Hi
My first install is replacing a Install Shield install program with a VS install program.I used Orca to find the upgradecode and search the registry for the upgrade code. The updgrad code was not found. Where is it.This is my first install and I just trying to learn how on install work.
Also as I am entering this question a box saying "Step 3 of 6:" keeps poping up and I can not see what I am typing when the cursore is under this box. What do I do to fix thes?
BarberColman  Tuesday, July 14, 2009 2:36 PM
There's no support in VS setup projects for asking the user to confirm that an upgrade is going to occur. Programmatically you can use the MsiEnumRelatedProducts Win32 API to return a list of ProductCodes associated with a particular UpgradeCode. That's why the idea that this in the registry doesn't work. There are literally dozens of Win32 APIs related to MSI and installed products, plus a scripting model based on the "WindowsInstaller.Installer" progid, plus WMI access based on win32_product.


I still have no idea what your step 3 is about. Step 3 of what? An install?
Phil Wilson
PhilWilson  Wednesday, July 15, 2009 6:02 PM
I'm not sure what you're trying to do here, but if you know the UpgradeCode then just use it in your setup project to upgrade the products. You'll have to explain exactly what program or whatever you're using with steps 1to 6 and what the question is that you're entering.
Phil Wilson
PhilWilson  Tuesday, July 14, 2009 9:36 PM
With respect to the UgradeCode we may want to verify the previous project is installed and that offer other options. I wanted to search for the upgrade code and go from there. Is there a better way to handle this.


The problem with step 3 is that the dialog box covers up the text I am entering on the right side of the screen. I would like to move or hide the box so I can see what I am entering.
BarberColman  Wednesday, July 15, 2009 12:17 PM
There's no support in VS setup projects for asking the user to confirm that an upgrade is going to occur. Programmatically you can use the MsiEnumRelatedProducts Win32 API to return a list of ProductCodes associated with a particular UpgradeCode. That's why the idea that this in the registry doesn't work. There are literally dozens of Win32 APIs related to MSI and installed products, plus a scripting model based on the "WindowsInstaller.Installer" progid, plus WMI access based on win32_product.


I still have no idea what your step 3 is about. Step 3 of what? An install?
Phil Wilson
PhilWilson  Wednesday, July 15, 2009 6:02 PM
Sorry, I did not specify. When I try to post a new question a wizard pops and gives comment or direction on each step of entering a new question. Step 3 in entering text in the body of the question. When the text I am entering reaches the right the "step 3 of 6" dialoge from the wizard is located over the cursor. It does not happen all the time but it does happen.

Not a major problem but a pain at times.
Thanks
BarberColman  Wednesday, July 15, 2009 6:32 PM

You can use google to search for other answers

Custom Search

More Threads

• Custom/Typical Deployment Dialog
• file not found after setup installed
• Install windows service using InstallUtil Error
• .NET application not startup in Windows 2000
• Issue with HttpUtility.ParseQueryString
• Please upgrade UAB 2 to dotnet 2
• how to specify the entrypoint from mage command line
• .NET app checks for original install location before running?
• Click Once launching - Padding is Invalid and cannot be removed
• How to install SQL Server 2005 Reporting Services on your Production box