ssearles
Posts: 65
Joined: Tue Oct 30, 2007 12:54 pm

MSI Import - Exception

I'm trying to import an existing MSI into a new package and get an exception when it's inspecting the package (specifically for an "Invalid MSI filename string").


Is there any way to ignore or at least give the ability to continue with the inspection/import anyway (so maybe I can figure out or choose to ignore whatever is throwing the error)? The only option i seem to see is to go back which does me nothing because nothing is actually processed.


The original MSI is from a vendor and I have absolutely no control over it's construction.

Thx in advance.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

You are encountering this problem because some of the types contained by the MSI have an invalid format. These errors are not fatal, therefore the MSI installation probably works on most computers.

However, Advanced Installer verifies these types and tries to correct them. Sometimes, the errors are to severe and Advanced Installer cannot correct them (you receive an exception message). Note that you can correct these errors with Orca and then try to import the MSI with Advanced Installer.

Please send us the MSI package that shows this behavior to support at advancedinstaller dot com so we can investigate it and search for a way to successfully import it.

This feature is not meant to be used for editing MSI packages, it should be used to migrate from another installation authoring tool to Advanced Installer.

Please note that not all of the original MSI logic will be imported (for example custom tables created inside the MSI will not be recognized).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
chantivlad
Posts: 7
Joined: Tue Mar 18, 2008 2:11 pm

MSI Import Wizard fails with error

Hello,

I just downloaded and installed the 30-day trial software "Advanced Installer 6.2" for Windows XP.
I then try to import an MSI file of mine using : "File -> New --> Import MSI".
Unfortunately, it stops almost immediately with the error message: "Exception - Invalid MSI Filename string [GCC-G++|gcc-g+++]."
during the phase "Importing Directory table".

Is there a way to ignore this error ??

Thank you in advance,
Florent
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi Florent,

The problem is that the DefaultDir column (for one or more entries in the Directory table of the MSI you are trying to import) contains invalid characters (the short-file name should not contain the "+" character).

AI checks the value of each field during import and tries to correct most of them in case invalid characters are found. In the next version, we shall also attempt to correct the short-file name for the DefaultDir column.

Until then, open the MSI you are importing in Orca, and edit the DefaultDir column from the Directory table, by changing the short-file name of the folder (the first part, before the "|" character) such that it does not contain invalid characters:

Code: Select all

+  ,  ;  =  [  ]
For more details please see:
http://msdn2.microsoft.com/en-us/librar ... S.85).aspx
http://msdn2.microsoft.com/en-us/librar ... S.85).aspx
http://msdn2.microsoft.com/en-us/librar ... S.85).aspx

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: MSI Import - Exception

Hello,

This has been fixed in version 16.8 of Advanced Installer, released on February 18th, 2020.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”