can I use modal dialog in my 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!

ihsiu1
Posts: 17
Joined: Tue Feb 21, 2006 4:36 pm

can I use modal dialog in my custom action?

Hi,

I have problem using modal dialog in my custom action. The return code of DoModal() is -1, failed to create. Is there anything particular that I have to do to fix this or it is not supported yet?

Thanks,
ihsiu
Mike
Posts: 292
Joined: Wed Jun 01, 2005 10:50 am
Location: Craiova, Romania
Contact: Website

Hi,

Modal dialogs are supported by Windows Installer. There is likely a problem with your code.

You could try call the Create function of your class to make sure you have a valid handle. Also, use could use GetLastError to see why is DoModal failing.

Regards,
Mihai
Mihai Bobaru
Advanced Installer Team
http://www.advancedinstaller.com
ihsiu1
Posts: 17
Joined: Tue Feb 21, 2006 4:36 pm

Thanks, Mike. You are right. :-) although I don't know exactly how I messed up to get error code 1812 "The specified image file did not contain a resource section" :-(

Return to “Common Problems”