473,396 Members | 1,757 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,396 software developers and data experts.

.NET Installer Error

Hi guys,

I've recently written a .NET installer package. It installs a Windows
application and some supporting DLLs. I’ve written these before and never had
problems…. until now.

This is what happens:

The installer gets almost to the end, but then a message box pops up saying:

Could not find file “{install location}\{executable name}.InstallState”.

Obviously, the stuff in curly brackets is replaced with the actual
locations! I’ve got no idea why this is happening! Has anyone got any ideas?!

Thanks in advance,

Steve.
Sep 12 '05 #1
5 2999
Hey Steve,

The InstallState file is used to serialize the InstallState Dictionary
to disk after an installation has occured. 2 Things could be happening.
1 You are running an installer that uninstalls a previous version. It
is trying to run the uninstall phase, not finding the serialized
installState file and failing because the installer is accessing a
persisted variable.

2. The installer is just installing and is unable to save the
IstallerState file.

If 1 is your issue, try using MsiZap to clear the previous install an
remember not to delete the InstallState file in future, if 2 is your
issue, I'm at a bit of a lost... file permissions spring to mind, but
that's unlikly as the installer runs with elivated permissions...

Hope that helps,
Jan

Sep 12 '05 #2
Jan,

Thanks very much for your help!

However... I think we're in your second case here, since the install failed
the very first time I tried it! The first time I tried it, I'm pretty sure I
was running with administrator rights too, so I doubt it's a permissions
issue. I've never had problems with installers before, so I'm at a loss as to
what is happening.

Thanks again,

Steve.

"Jan Bannister" wrote:
Hey Steve,

The InstallState file is used to serialize the InstallState Dictionary
to disk after an installation has occured. 2 Things could be happening.
1 You are running an installer that uninstalls a previous version. It
is trying to run the uninstall phase, not finding the serialized
installState file and failing because the installer is accessing a
persisted variable.

2. The installer is just installing and is unable to save the
IstallerState file.

If 1 is your issue, try using MsiZap to clear the previous install an
remember not to delete the InstallState file in future, if 2 is your
issue, I'm at a bit of a lost... file permissions spring to mind, but
that's unlikly as the installer runs with elivated permissions...

Hope that helps,
Jan

Sep 12 '05 #3
Hi Steve,

This issue appears to be an msi setup package issue, would please post this
problem to the microsoft.public.platformsdk.msi group, I think you will get
more specific help in that group.

By the way, when you post this issue to the platformsdk.msi group, it is
better if you can provide more detailed info about the {install
location}\{executable name}.InstallState file which could not be found, for
example is it a CA...
Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default...sdn/nospam.asp
&SD=msdn

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

Sep 13 '05 #4
Gary,

Thanks for your help. I've reposted in the group you recommended.

The file mentioned in the error message is not something I created. I am
under the impression that the msi creates the file itself, which is why it's
weird that it can't be found. By the way, what is CA?

Thanks,

Steve.

""Gary Chang[MSFT]"" wrote:
Hi Steve,

This issue appears to be an msi setup package issue, would please post this
problem to the microsoft.public.platformsdk.msi group, I think you will get
more specific help in that group.

By the way, when you post this issue to the platformsdk.msi group, it is
better if you can provide more detailed info about the {install
location}\{executable name}.InstallState file which could not be found, for
example is it a CA...
Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default...sdn/nospam.asp
&SD=msdn

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

Sep 13 '05 #5
Hi Steve,
I am under the impression that the msi creates the file
itself, which is why it's weird that it can't be found.
By the way, what is CA?


The CA means the custom action in the setup package, I just noticed one
community member has posted a reply to your problem in the platformsdk.msi
newsgroup, we will wait for your response there.
Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default...sdn/nospam.asp
&SD=msdn

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

Sep 14 '05 #6

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

Similar topics

0
by: HPKrekt | last post by:
If I deploy part of my webproject to a W2K Server I get the following error if I try to use a custom installer: unable to get installer types in the .....dll assembly => One or more of the types...
4
by: Bill Murray | last post by:
I am using VS.NET 2003 and trying to deploy a service program(c++) to a Windows 2000 Server system. I have also written a small DLL (USSsetup.dll) that is used to start/stop the service using a...
2
by: MENTAT | last post by:
Hi, I am trying to create an installer for my web application. So I added a web setup project to my solution (I am using VS.NET 2003). Been playing around with it since then and it basically...
1
by: Craig | last post by:
I have added a 'Textboxes (A)' to my UI installer project along with a custom action to pass the value back to a class I've written to override the void Install function. As long as the text is...
3
by: Brian Henry | last post by:
This has worked perfectly for the past year now all the sudden it will not compile the installer project correctly. All our source code is in a Source Safe database so every system we do this on...
1
by: BuddyWork | last post by:
Hello, When a particular user (has administrator rights) on a Windows 2000 Server SP4 tries to run any MSI's we get the message mentioned in the subject. If we logon with another user that has...
3
by: MovnOn | last post by:
I've created an installation package for my program. Before installation, I use the User Interface to get values that are added to the registry. One of the values that the user must add is a path...
3
by: david | last post by:
Greetings, I'm doing some modifications of an existing Visual Studio .NET 2003 C# project that is to be deployed as a windows service. The solution includes a project that builds an MSI file. ...
2
by: ashishjainism | last post by:
I am unable to install my windows service and the installutil is throwing the following error: Running a transacted installation. Beginning the Install phase of the installation. See the...
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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 projectplanning, coding, testing,...

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.