Search

BadImageFormatException executing Custom Action during Setup by Michael Freidgeim

Closed
as External Help for as External

3
Sign in to vote
0
Sign in to vote
Sign in
to vote
Type: Bug
ID: 110182
Opened: 5/16/2006 8:47:17 PM
Access Restriction: Public
0
Workaround(s)
1
User(s) can reproduce this bug
when installing an application created using WS 2005 Setup project with custom action on the machine where previous (.Net 1.1) version of the same product was installed, the error occurred:
Error 1001. Exception occurred while initializing the installation:
System.BadImageFormatException: The format of the file 'XXXXX.dll' is invalid.

See http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=370659&SiteID=1 for more details.
Details (expand)
Product Language
English
Version
Visual Studio 2005
Category
Deployment
Operating System
Windows Server 2003
Operating System Language
English
Steps to Reproduce
1.In VS 2003 create library project with Installer derived class. Then create Setup Project with custom action to run installer class. UninstallPreviousVersion=true
2. Install the setup on client machine.
3. Convert projects to VS2005 and build new setup.
4. Try to install it on the machine where previous version was installed.
Actual Results
Error 1001. Exception occurred while initializing the installation:
System.BadImageFormatException: The format of the file 'XXXXX.dll' is invalid.
Expected Results
Ideally setup should be able to uninstall previous version in background without any problems.
As a short term solution VS2005 conversion wizard should change UpgradeCode and document warning about it.
File Attachments
0 attachments
Sign in to post a comment.
Posted by Michael Freidgeim on 8/16/2006 at 5:43 AM
The bug report has been closed without any reasoning. Why?