473,385 Members | 1,402 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Installer issue in deployment project VS2005

I have a installation package which installs ok when setup.exe is used, but
if I try to install via msiexec, I get an error "This installation package
could not be opened. Verify that the package exists..."

In partidular, I need to be able to uninstall this package unattended from
the command line, any suggestions will be appreciated. The version of
msiexec.exe is 3.1.4000.1823, msi.dll is 3.1.4000.4039
Aug 23 '07 #1
6 3343
Hi Bo,

If you launch the MSI package by double-clicking it, could the MSI package
install without any problem?

You may have a try installing the MSI package via msiexec command on other
machines to see if the problem still exists.

If the problem still exists on other machines, the MSI package may be
corrupted or damaged; otherwise, the Windows Installer on the machine where
the problem exists is possibly broken.

For the latter, you may recover the broken Windows Installer by upgrading
it. The following is the download link of Windows Installer 3.1
Redistributable (v2):

http://www.microsoft.com/downloads/d...2fc-5f56-4a38-
b838-de776fd4138c&DisplayLang=en

Hope this helps.

Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Aug 24 '07 #2
Linda,

Thanks for responding. Yes, if you double click it installs just fine,
that's what's so weird about the problem. That and the fact that VS2005's
setup.exe installs it fine indicates to me unequivocally that the msi file is
not corrupt. I've installed V2 of installer 3.1, and it didn't have any
effect. The version numbers on msiexec.exe and msi.dll I gave in the original
post were those found post-install of installer 3.1 v2.

We have also seen older machines where msiexec.exe worked on this package
just fine.

I'm currently working on the following work-around: use setup.exe to pass
"command line" parameters to the installer API, like:

C:\setup REMOVE=ALL LIMITUI=TRUE

This has shown some promise, but we've found instances where it fails to
remove the .dll the package installs from the Global Assembly Cache. We're
still working on it. I would prefer to know I can use msiexec.exe with VS2005
deployment projects!

Bo McIlvain

"Linda Liu [MSFT]" wrote:
Hi Bo,

If you launch the MSI package by double-clicking it, could the MSI package
install without any problem?

You may have a try installing the MSI package via msiexec command on other
machines to see if the problem still exists.

If the problem still exists on other machines, the MSI package may be
corrupted or damaged; otherwise, the Windows Installer on the machine where
the problem exists is possibly broken.

For the latter, you may recover the broken Windows Installer by upgrading
it. The following is the download link of Windows Installer 3.1
Redistributable (v2):

http://www.microsoft.com/downloads/d...2fc-5f56-4a38-
b838-de776fd4138c&DisplayLang=en

Hope this helps.

Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Aug 24 '07 #3
Hi Bo,

Thank you for your prompt response and detailed feedback!
'm currently working on the following work-around: use setup.exe to pass
"command line" parameters to the installer API,

Could you please tell me with what tool you create the MSI package and
setup.exe? I don't remember we could pass parameters to setup.exe if the
MSI package and setup.exe is created with VS2005.
This has shown some promise, but we've found instances where it fails to
remove the .dll the package installs from the Global Assembly Cache.

How do you remove the DLL the package installs from the Global Assembly
Cache? What's the error message when you fail to remove the DLL from GAC?
For DLL that is installed by MSI, we could only uninstall it via MSI.

The following is a KB article discussing this topic:
http://support.microsoft.com/kb/873195/en-us
I would prefer to know I can use msiexec.exe with VS2005 deployment
projects!

Yes, we could use msiexec.exe with a VS2005 setup project. For example, to
add an uninstall program for your application, add the msiexec.exe file in
the setup project and create a shortcut for this file. Set the Arguments
property of the shortcut to "/x {ProductCode}".

Hope this helps.

Sincerely,
Linda Liu
Microsoft Online Community Support

Aug 28 '07 #4
Hi Bo,

Thank you for your detailed feedback!

How about the problem now? If you use msiexec.exe /x {ProductCode} to
uninstall the application via Altiris, does it work?
>So, what appeared to be a problem with msiexec opening the .msi file
actually turns out to be that msiexec couldn't locate the package
referenced
>in the .msi file as an installed package on the machine, probably because
the
>product codes don't match.
You could open the MSI package with Orca to see the ProductCode contained
in the MSI package. The ProductCode resides in the Property table.

Hope this helps.

Sincerely,
Linda Liu
Microsoft Online Community Support

Aug 30 '07 #5
Linda,

Well, it look like Altiris can't do that directly, for some reason it fails,
msiexec claims to be unable to find the installed package, and it doesn't
matter if you tell Altiris to execute as LocalSystem or as a domain admin
account. Since this DOES work for a logged-in user, we've come up with a
script we can execute when a user logs in, and we're proceeding with that.

Thanks for your pointer to Orca! I was unaware of its existence. I used it
to look at the .msi package that msiexec.exe told us it couldn't open, and
its product code matches the installed product code perfectly, so that's not
the problem.

Does Microsoft have any interest in pursuing this further? I think, as far
as we're concerned, our immediate problem is solved, but this experience
certainly lowers my confidence for using deployment packages. If you have any
suggestions for things we can look at to nail down the source of this error,
we'll be happy to work with you. I hate leaving bugs (whatever the cause)
unidentified.

Thanks for your help,

Bo McIlvain

"Linda Liu [MSFT]" wrote:
Hi Bo,

Thank you for your detailed feedback!

How about the problem now? If you use msiexec.exe /x {ProductCode} to
uninstall the application via Altiris, does it work?
So, what appeared to be a problem with msiexec opening the .msi file
actually turns out to be that msiexec couldn't locate the package
referenced
in the .msi file as an installed package on the machine, probably because
the
product codes don't match.

You could open the MSI package with Orca to see the ProductCode contained
in the MSI package. The ProductCode resides in the Property table.

Hope this helps.

Sincerely,
Linda Liu
Microsoft Online Community Support

Aug 30 '07 #6
Hi Bo,

Thank you for your feedback!

Let me summarize this post first.

You installed your product on a client machine and want to uninstall it
now. You remote connect to the client machine using Altiris. Then if you
launch the MSI package by double clicking it, the product can be
uninstalled successfully. However, if you try to uninstall the product by
the command line 'msiexec.exe myapp.msi', you get an error "This
installation package could not be opened. Verify that the package
exists...". Your solution so far is to tell Altiris to execute as
LocalSystem or as a domain admin account.

If I have any misunderstanding here, please feel free to point it out.

What's the version of OS on the client machine? I found a KB article
addressing the problem that an error occurs when running Windows Installer
installation on Terminal Server or Remote Desktop connection. Although this
problem occurs when using Remote Desktop Connection and the error message
is different from that you get, the reason may be the same.

Below is the link of the KB article:

"BUG: An error occurs running Windows Installer installation on Terminal
Server or Remote Desktop connection"
http://support.microsoft.com/kb/255582/en-us

In additon, you may have a try connecting to the client machine via Remote
Desktop Connection and uninstalling your product via msiexec to see if the
problem still exists.

Hope this helps.

Sincerely,
Linda Liu
Microsoft Online Community Support

Sep 3 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: D Busby | last post by:
List I've made a .NET windows service in C++, then I added an installer to the solution. I added the 'Project Output' from my .NET service as a package for the installer to install however it does...
5
by: Arun Bhalla | last post by:
I'm working with VS.NET 2003 and .NET 1.1 (not SP1) on Windows XP SP1. My application is using the Windows Installer Bootstrap. (I may have also installed a module which detects requirements (.NET...
0
by: Arun Bhalla | last post by:
I'm having some inconsistency problems with my deployment project ("Setup") and its custom actions ("Installer"). I'm using Visual Studio .NET 2003 (.NET 1.1, no service pack) on Windows XPSP1. ...
1
by: rjack | last post by:
I migrated a VS 2003 add-in to VS 2005. The VS 2003 add-in is a COM interface which must continue to be deployed as a COM server. I have added the project output to the deployment package and I set...
1
by: Rick | last post by:
Hi guys, i made an app using C# (vs2005) and i added some references to MS Excel in my project, when i try to install the app in a machine it begins but at some time it says "Cant find file...
8
by: jacky kwok | last post by:
Dear All: In VS2005 WebSetup installer InstallAddress dialog, there is field to let user to select which website to install the webapp (if there are more than one WebSite in the IIS). I want...
3
by: Andrew Chalk | last post by:
VS 2003 had a predefined template for an Installer class. That seems to have disappeared from VS2005. Am I right? Or has it just been moved? Or is it superceded by a new way of doing the same...
1
by: MimiMi | last post by:
I have a deployment project that was originally created in VS2003. Since I don't have VS2003, I now open it in VS2005, but then of course VS2005 has to convert it. Everything seems to work fine. I...
7
by: Cirene | last post by:
I used to use the Web Deployment Project with my VS2005 projects. Now I've fully upgraded to VS2008. Do I have to download a new version of the Web Deployment Project? If so where can I find...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.