Unhandled exception while creating custom action - 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!

Robbie
Posts: 13
Joined: Thu Jul 24, 2008 12:25 am

Unhandled exception while creating custom action

While creating a Commit custom action I browsed for the General Properties "Source Path" item.
After selecting the required msi file I got an unhandled exception stating:

Exception - ACCESS_VIOLATION (0xc0000005) at address
0xesd6bede67134af2.
*** Stack Trace ***
[0x67134af2] std::_BADOFF()

Sorry, I can't find any other supporting information, like a crash log or executable dump, as I am fairly new to this product.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Unhandled exception while creating custom action

Hi,

I cannot reproduce this behavior on my test machines. Can you please specify the Advanced Installer version you are using? Also, can you please give me more details about the type of custom action you created?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Robbie
Posts: 13
Joined: Thu Jul 24, 2008 12:25 am

Re: Unhandled exception while creating custom action

I am running version 6.4.1 .
In a package directory I have the MS vcredist.msi package, required for my executables.

To reproduce the problem I executed the following steps:
Open the project
Select Custom Actions
Right-click on Commit, and select New Installed Custom Action
Navigate to the vcredist.msi file and select it.
The Source Path now indicates vcredist.msi, Source Type indicates MSI Database.
Click on the Source Path browse (...) button.
Select the vcredist.msi file again.
The exception now occurs. The Source Path now indicates the full path to the vcredist.msi file.

Please see also attached screendump.
screen.png
screen.png (175.98 KiB) Viewed 3523 times
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Unhandled exception while creating custom action

Hi,

You are encountering this behavior because a "New Installed Custom Action" does not support MSI files. Note that if your package requires other software to be installed, you can add it as a prerequisite. Advanced Installer has a predefined prerequisite for Visual C++ 2005 Redistributable, but you can also create a custom one.

However, I have added on our TODO list an improvement which will make Advanced Installer show a friendlier message. Thank you for bringing this to our attention.

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

Return to “Common Problems”