473,605 Members | 2,637 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.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}\{exec utable name}.InstallSt ate”.

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 3017
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.publi c.platformsdk.m si 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}\{exec utable name}.InstallSt ate 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.publi c.platformsdk.m si 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}\{exec utable name}.InstallSt ate 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
1414
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 in the assembly unable to load. If I exclude the custom installer everything installs correctly. On my development system XP professional the above error is not raised and everything install correctly including the custom installer . Also if I...
4
7403
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 custom action. This dll is apparently dependent on the MSVCP71.DLL and MSVCR71.DLL's as per the Detected Dependencies folder visible in the deployment project All this good except I am UNABLE to Retarget the output of the msm merge...
2
5342
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 works. Now, I am wondering if there is any way to change the directory that the installer installs the files to. I want to be able to put my files in a specified directory (user specified is good, but i don't mind hardcoding the path either) and...
1
8460
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 very simple everything is working just fine. I've tested it by writing the string out to a text file to test it. However, the trouble comes in when I use the textbox for what I really intended, a ADO.Net Connection String. The textbox is to...
3
1884
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 should be identicle. On one system the installer project will compile correctly, but on two others it will fail with this error. ------ Rebuild All started: Project: Installer, Configuration: Debug ------ Building file 'T:\Current Builds...
1
3783
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 administrator rights then it works, if we create a new administrator user then it does NOT work, Here is the MSI log, please help as this is causing problems as only 3 users on this box are able to run MSI where are about 15 other users
3
2628
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 to a required input file for the program. I'm finding that if the user enters a path which contains a space (example: c:\Program Files\myProgram\file.txt) that the install will return a file not found error and abort the install. I don't...
3
8945
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. Over the month I've been working on the project, I've built the MSI file many times. Sometimes it runs fine and I have a service that can be started and stopped. Other times, the MSI file starts up, goes through several screens and then reports...
2
12810
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 contents of the log file for the d:\practice in .net\mywindowsservice\mywindowsservice\mywindowsservice\bin\practiceservice.exe assembly's progress. The file is located at d:\practice in...
1
1499
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 work! It gives me the error "An error occured while downloading a required file. You may retry...
0
7934
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8425
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8071
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8288
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6743
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, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5445
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3912
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2438
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
0
1271
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.