How to execute SQL Script at the time of Patch - 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!

sagar
Posts: 39
Joined: Tue Dec 13, 2011 2:53 pm

How to execute SQL Script at the time of Patch

Hi,
I am creating patch for my installer but I am not able to execute the upgraded SQL script at the time of installing Patch.I refereed http://www.advancedinstaller.com/forums ... php?t=6484 post to execute my SQL script. In that post you have given step to change .api file but when I do that changes in my patch.api file advanced installer give me error "The upgrade patch cannot be installed by the windows installer service because the program to be upgraded may be missing or the upgrade patch may update different version of the program. Verify that the program to be upgraded exists on your computer." at the time of build.I have attached my .api file with this post
I want to execute one .net custom action at the time of installing patch I have added that custom action InstallExecuteSequence.
Please tell me how to execute SQL script & .Net custom action at the time installing patch.
Attachments
Test.aip
1.0.1 version
(12.09 KiB) Downloaded 325 times
Test.aip
1.0.0 version
(11.45 KiB) Downloaded 370 times
Patch.aip
(1.95 KiB) Downloaded 389 times
sagar
Posts: 39
Joined: Tue Dec 13, 2011 2:53 pm

Re: How to execute SQL Script at the time of Patch

I got the solution for previews problem.We have to check maintenance check-box of script execution
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: How to execute SQL Script at the time of Patch

This is correct, here is a similar thread that discusses this with more details:
http://www.advancedinstaller.com/forums ... =2&t=12013

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”