Error calling Msi API: 1627 Method: MsiViewExecute error - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

adevia
Posts: 4
Joined: Fri Oct 23, 2009 8:05 pm

Error calling Msi API: 1627 Method: MsiViewExecute error

I built a new project from scratch, but every time I try to build it, I get the following error:

[ DefaultBuild ]
Building package (en): C:\Development\Projects\PTS 2.6\Client\PTSTranslatorSetup\Release\PTSTranslatorSetup.exe
Creating CAB file(s)... done.
Creating MSI database... error.
Exception - Reason: Error calling Msi API: 1627 Method: MsiViewExecute Table: MsiAssemblyName. Extended Error:
1: 2210 2: C:\Development\Projects\PTS 2.6\Client\PTSTranslatorSetup\Release\PTSTranslatorSvcSetup.msi 3: 2 .

Build finished because an error was encountered.

I have built projects in similar manner before and have not had any problems. Please help!

Thanks,

Alex Devia
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Error calling Msi API: 1627 Method: MsiViewExecute error

Hello,

Please send your .aip project file to support at advancedinstaller dot com so we can investigate the issue.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Error calling Msi API: 1627 Method: MsiViewExecute error

Hello again,

We have studied the issue and found that the error occurs because one or more of your assemblies have the "PublicKeyToken" attribute empty. We will make an improvement to avoid such problems in the future. The improvement will be available in a future version of Advanced Installer.
Until then, the workaround is to either delete the attribute or fill it with some value.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
davethegeek
Posts: 2
Joined: Fri Apr 02, 2010 8:20 pm

Re: Error calling Msi API: 1627 Method: MsiViewExecute error

This oes not work in 7.5.2
How far in the future are you planning on fixing this BUG?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Error calling Msi API: 1627 Method: MsiViewExecute error

Hello,

I have increased the priority of this issue. I can not give you an estimate for the release date. There are many things to be done. Rest assured this will be implemented as soon as possible.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
ARDV
Posts: 1
Joined: Sat Jun 19, 2010 5:53 am

Re: Error calling Msi API: 1627 Method: MsiViewExecute error

hello
i hope this issue will be fixed in the newer versions

this is a tuto about adding a PublicKeyToken it in VB.NET
http://msdn.microsoft.com/en-us/library/ms813014.aspx
Sandor90
Posts: 2
Joined: Tue Aug 31, 2010 8:26 am

Re: Error calling Msi API: 1627 Method: MsiViewExecute error

Hello,

is there an other opinion to avoid the error yet?
I'm not willed to create a publicKeyToken or to remove assemblies. :(

Kind regards,
Sand0r
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Error calling Msi API: 1627 Method: MsiViewExecute error

Hello,

As Gabriel said the workaround is to delete the argument, not the entire assembly, from the arguments list.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Sandor90
Posts: 2
Joined: Tue Aug 31, 2010 8:26 am

Re: Error calling Msi API: 1627 Method: MsiViewExecute error

Oh okay sorry,
my fault :)
razvan
Posts: 9
Joined: Wed Oct 20, 2010 9:40 am

Re: Error calling Msi API: 1627 Method: MsiViewExecute error

Hello,

I'm having the same issue with that PublicKeyToken. It seems that if my assemblies were not strongly signed when I created the setup project (I started a test project to evaluate your installer and I wasn't signing the assemblies). However this is an issue that's active for over a year? Seriously?
If (string.IsNullOrEmpty(PublicKeyToken.value))
{show warning / or assign a default value so that we can continue with whatever other code is in the validation function}
It shouldn't be that hard to fix it. Anyway, the .api file it's not refreshed after I sign the assembly, is there a way to refresh the .api?

Then I realized I saved the .api in a wrong path, after I moved it, it stopped working because the path to appdir is relative, is there a way to change the location without creating the whole file again? Even if it is, it's not obvious :) Otherwise I hope everything works smoothly.

I'm evaluating the product because I want the auto update feature.

Have a good day!
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Error calling Msi API: 1627 Method: MsiViewExecute error

Hi,
However this is an issue that's active for over a year? Seriously?
A protection mechanism was implemented and will be included in the next release.
Anyway, the .api file it's not refreshed after I sign the assembly, is there a way to refresh the .api?
Are you referring to the Advanced Installer project file? If so, all files in "Files and Folders" page are updated automatically. If you are referring to the entry from "Assemblies" page, you need to remove it manually and add it again. Please note that each assembly attribute can be synchronized with the assembly file.
Then I realized I saved the .api in a wrong path, after I moved it, it stopped working because the path to appdir is relative, is there a way to change the location without creating the whole file again?
You can try converting your project paths to use path variables and then modify these variables. You can also use absolute paths instead of relative ones.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”