This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Exception occurred while initializing the installation
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 19, 2008
03:59 PM
Exception occurred while initializing the installation
I have just upgraded from Installshield 2008 to 2009.
When I build my Basic MSI project in IS 2008, it work fine but when I build it in IS2009 and run it, I get the following error:
Any ideas why?
Thanks.
PS: MyService is a .Net Application file.
PS2: I installed IS2009 on a Win Server 2003 and buit my setup and ran it...with no problem. The above problem occurres when I build the setup with IS2009 on XP.
When I build my Basic MSI project in IS 2008, it work fine but when I build it in IS2009 and run it, I get the following error:
Error 1001 exception occurred while initializing the installation.
System.BadImageFormatException: The format of file is invalid file 'MyService.exe' is invalid...
Any ideas why?
Thanks.
PS: MyService is a .Net Application file.
PS2: I installed IS2009 on a Win Server 2003 and buit my setup and ran it...with no problem. The above problem occurres when I build the setup with IS2009 on XP.
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 20, 2008
10:14 PM
Does your application require a certain version of .Net to be installed?
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 23, 2008
08:30 AM
This issue most often occurs when a .NET assembly is loaded with the wrong version of .NET. Generally speaking, it happens when a .NET 2.0 assembly is loaded using the .NET 1.1 runtime.
The easiest way to check this is to go to Tools -> Options -> .NET and then change the location of Regasm.exe and InstallUtilLib.dll to point to the correct version of the .NET Runtime.
The easiest way to check this is to go to Tools -> Options -> .NET and then change the location of Regasm.exe and InstallUtilLib.dll to point to the correct version of the .NET Runtime.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 23, 2008
10:39 AM
Thanks a lot, that was it. I had to pick the right version of InstallUtilLib.dll.