Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Prerequisites installed but failed to be detected by MSI Installer
 

Prerequisites installed but failed to be detected by MSI Installer

#SORRY FOR THE DUPLICATED THREAD.
#JUST MOVED THIS THREAD FROM A GENERAL SECTION OF THE FORUM

Hi everyone,

I am working on the msi installer built by VS(Setup and Deployment Project). I 've got everything else working like charm except the prerequisites of the project. It would be a great help if you could point me to a right direction for solving the following problem.

For setting up the prerequisites, I went through the following steps:
1.Select the Installer ('Setup and Deployment Project') and right-click on it
2.Click on "Properties" on the pop-up menu
3.Click on "Prerequisities..." button of the Installer Property Page dialog and check on the items needed to be installed as prerequisites of my project
4.Build the Installer

While executing the Installer, the problem I got is that the Installer keeps prompting for installing the prerequisites even if the prerequisites specified @ step 3 were already installed on the machine. I doubt if there is somthing wrong with my settings but it seems not. Is there a way to work around this?

I would like to have the following prerequisites to be check before installing my application:

* .Net Framework 2.0
* Windows Installer 3.1
*SQL Server 2005 Express Edition

Any help and ideas are appreciated!(^^)/~

ps. btw, I am building this project on Vista with UAC enabled...however, I don't think it has anything to do with Vista

Coder Jay  Monday, August 24, 2009 1:21 AM

Well, I tried to build the setup with appropriate .Net Framework language pack installed and it all works fine.
Thanks a lot.

  • Marked As Answer byCoder Jay Thursday, September 03, 2009 11:12 PM
  •  
Coder Jay  Thursday, September 03, 2009 11:12 PM
Hi Coder Jay,

Based on my experience, most prerequisites are checked through registry. Once the bootstrapper can not find a special node in the registry, it will recognize it as missing and trying to install it.

Please look into the registry key of that problem computer for the following key.

.NET Framework
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NET Framework
if Vista or higher version, please turn .NET Framework feature on.

Windows Installer 3.1
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB893803v2
if OS is 2003, then change Windows XP to Windows Server 2003
if OS is Vista or higher version, Windows installer 3.1 already installed, please turn on the feature.

Sql Server 2005 Express
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server

Does these key located there?

Sincerely,
Kira Qian
Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Wednesday, August 26, 2009 3:25 AM
Hi Kira Qian,

Thank you for your reply!

I have verified the aformentioned registry keys on the machine in question, and theyare located the place where they are supposed to be except for Windows Installer 3.1; however, the OS of the machine is Windows Vista. As you mentioned Vista has the Windows Installer 3.1 installed by default, so I don't see any problem there.

The onlything which may caused the problemthat I could think of right now is that I am using English verion of VS 2005 on Japanese version of Windows Vista Ultimate building setup project with Prerequisites in English Version.

The setup project itself should do just fine because I have set "Localization" property to Japanese;however I get the following warnings during each build:

Could not match culture 'ja-JP' for item '.Net Framework 2.0'. Using culture 'en' instead.
Could not match culture 'ja-JP' for item 'Windows Installer 3.1'. Using culture 'en' instead.
Could not match culture 'ja-JP' for item 'SQL Server 2005 Express'. Using culture 'en' instead.

I know that the warning is telling me that the compiler couldn't find the Japanese version of appropriate item listed above and used English version of it instead to build my setup program.

Could it be the problem in this case? Or there are other issuess?
  • Edited byCoder Jay Wednesday, August 26, 2009 2:46 PM
  •  
Coder Jay  Wednesday, August 26, 2009 2:39 PM
Hi Coder Jay,

Have you installed Japanese language package for the .NET Framework? When I change my setup project from en-US to ja-JP, I got the same erro message on my side. I have not install any other language package other than English. But when I double click the setup.exe to run it. It can show Japanese correctly.

During the process, I don't see it require to install windows Installer 3.1. Do you mean it always popup to install windows Installer 3.1 on you computer?

Sincerely,
Kira Qian
Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Thursday, August 27, 2009 2:20 AM
Hi Kira Qian,

I didn't install the .Net Framework 2.0 Japanese Language Pack. Would Windows Installer detects the version of .Net Framework by looking at a special registry key? If it does, would the solution for the .Net Framework be installing the correct Language Pack(Japanese in this case) and rebuilding the project?

The reason to have "Windows Installer 3.1" as one of prerequisites is that I checked "SQL Server 2005 Express" as a prerequisite. As you know, Visual Studio would throw the following warning during build process if you do not check Windows Installer 3.1 as a prerequisite as well.

Item 'Windows Installer 3.1' is required by 'SQL Server 2005 Express Edition', but was not included....

Nope, I didn't mean that it always pop up during each setup run. The one which always pop up is SQL Server 2005 Express:-)
In other words, I have to get Windows Installer 3.1 selected as one of prerequisites in order to get around with the warning message I get during build.
Coder Jay  Thursday, August 27, 2009 9:35 AM

Well, I tried to build the setup with appropriate .Net Framework language pack installed and it all works fine.
Thanks a lot.

  • Marked As Answer byCoder Jay Thursday, September 03, 2009 11:12 PM
  •  
Coder Jay  Thursday, September 03, 2009 11:12 PM

You can use google to search for other answers

Custom Search

More Threads

• Number of version ClickOnce
• Deploying VSTO via clickonce
• How to Install WebService more than once using websetup?
• Windows installer 3.1 prerequisite always ask for reboot, Help
• better way for detect windows service is installed
• ClickOnce - Failed to Connect Error
• Click once application deployed in Shared folder for Disconnected
• vs2002 deployment reboot and .NET framework
• deployment shortcut not showing arguments
• ClickOnce and local file security in Vista