Quantcast
Channel: .Net
Viewing all articles
Browse latest Browse all 10

Software Factory – Guidance Migration from Visual Studio 2005 to Visual Studio 2008

$
0
0

Before begin I have to give some credit to my friend Rodrigo Guerreiro because he helped me with this PROBLEM.

First I can say that I wasn’t able to find ANY information in internet about migration. Don’t know if I was looking in the wrong sites but i wasn’t able to find any information.

Now this post reflect what I did in order to create 2 MSI’s files that can be installed in Visual Studio 2005 and Visual Studio 2008. (One MSI to install in VS2005 and another to install in VS2008)

Notice that I didn’t had to migrate my solution to VS2008 in order to create a MSI that installs a factory in VS2008

These was my steps:

  1. Go to the solution folder and, in my case, there was a folder with the project setup. What I did was copy that folder and rename it from XXXSetup to XXXSetup2008.
    1. image
  2. Inside the folder XXXSetup2008 I rename the file XXXSetup.vdproj to XXXSetup2008.vdproj
    1. image
  3. Then I edit file XXXSetup2008.vdproj (With notepad :)) and every place I had XXXSetup I rename it to XXXsetup2008 (Very Careful with this point because you can mess up with the project and start from the begining). In my case I just had to do this renames:
    1. "ProjectName" = "8:XXXSetup" para "ProjectName" = "8:XXXSetup2008"
    2. "OutputFilename" = "8:Release\\XXXSetup.msi" para "OutputFilename" = "8:Release\\XXXSetup2008.msi"
  4. After this I open the solution in VS2005 and added the project XXXSetup2008.vdproj to my solution
    1. image 
  5. With the project XXXSetup2008 selected.
    1. In the solution explorer choose “Custom Actions Editor” icon
      1. A window will open with the following custom actions
        -- GuidancePackage[Install], [commit], [roolback], [uninstall]

      2. image 
      3. Click in every single one and on the properties window change it from /Hive=8.0 /Configuration="[TARGETDIR]xxx.xml" to /Hive=9.0 /Configuration="[TARGETDIR]xxx.xml"

      4. image

  6. Again with the project XXXSetup2008 selected
    1. In the solution explorer choose “Launch Conditions Editor” icon
    2. A window will open with the following Launch Conditions:
      1. Search Target Machine
      2. Launch Conditions
    3. click in every single option (CSharp, RunTime, VS, .NetFramework, C# Language, Guidance Automation Extensions, VS.Net) and in the properties you will have to change every single place you have 8 (VS2005) change it to 9 (VS2008).

    4. image 

    5. Here it is what you need to change:
      1. In CSharp change it from:
          SOFTWARE\Microsoft\VisualStudio\8.0\InstalledProducts\Microsoft Visual C#
        To:
          SOFTWARE\Microsoft\VisualStudio\9.0\InstalledProducts\Microsoft Visual C#
      2. In RunTime change it from:
          SOFTWARE\Microsoft\VisualStudio\8.0\InstalledProducts\RecipeManagerPackage
        To:
          SOFTWARE\Microsoft\VisualStudio\9.0\InstalledProducts\RecipeManagerPackage
      3. In VS.Net change it from:
          SOFTWARE\Microsoft\VisualStudio\8.0\Setup\VS
        To:
          SOFTWARE\Microsoft\VisualStudio\9.0\Setup\VS
      4. In VS.Net change it from::
          Visual Studio .NET 8.0 is not installed. Do you want to see information of the product? Click Yes to be directed to a web page, click No to exit.
        To:
          Visual Studio .NET 9.0 is not installed. Do you want to see information of the product? Click Yes to be directed to a web page, click No to exit.

 

 

Now Compile and create the MSI’s. The next step is test the Factory in a VS 2008 :) Hope I was able to help. Sure helped me.


Viewing all articles
Browse latest Browse all 10

Trending Articles