473,569 Members | 2,571 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3356
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&Di splayLang=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&Di splayLang=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 misunderstandin g 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
503
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 not install my program as a service on the client machine. Is there something special I need to do? Shouldn't the 'Project Output' show the...
5
4897
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 1.1 -> MsiNetAssembly Support.) I have a few issues and questions regarding the MSI and its properties. * This may be my biggest annoyance at the...
0
2082
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. My main project is a band object (Explorer Bar) in an assembly (.DLL) that needs to be registered on installation and unregisted on uninstallation. ...
1
2349
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 the Register property to vsdrpCOM. If I look at the VS2005 MSI package generated with a viewer, I find the the CLSID registry setting aren't in...
1
1581
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 My_App_Name.application" (that file exist at the directory when im publishing the installer), the closes itself, but i can execute my app because there are...
8
6440
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 to know how can I get the WebStie info in the customAction. I can use "/VDIR=" in customActiondata to get the installed VirtualDirectory.
3
2206
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 thing. Thanks!
1
1494
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 build the project and an installer.msi - file as well as a setup.exe - file is created. Now to the problem: double-clicking the setup.exe doesn't...
7
5952
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 it? If not, how do I have to change my deployment strategy? Thanks!
0
7710
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7625
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7992
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6313
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5244
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3677
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2128
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1235
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
969
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.