Best Practice for Web Application Updates - 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!

rakesh188
Posts: 6
Joined: Tue Jun 15, 2010 9:02 pm

Best Practice for Web Application Updates

Hi
I wanted to know what is the best practice to setup automatic updates for a web application + Database structure + Master Data. for. e.g.

Initial Install V 1.0 - contains application and Database (Tables and Some Master Data)
1st Update V 1.1 - contains application file changes.
2nd Update V 2.0 - contains application file changes + some database changes + Additional Master Data .

What is the best way to achieve the following scenarios.

For a new customer who installs V 2.0 as a fresh install I want to install Full ( Application + Database + Master Data)
For an existing customer who is on V 1.1 - I want to install only application changes + some Database changes.
For an existing customer who is on V1.0 - I want to install Application + db changes + master data updates.

How can I determine conditionally which version the user is currently on and based upon the version fire some SQL scripts for the database i.e either full db with master data or just the changes between the versions.

Thanks
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Best Practice for Web Application Updates

Hello,
How can I determine conditionally which version the user is currently on and based upon the version fire some SQL scripts for the database i.e either full db with master data or just the changes between the versions.
You ca achieve this with the help of the OLDPRODUCTS property. This property contains a list of older version products codes installed on the target machine. You can use this property in a custom action to do the corresponding actions.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rakesh188
Posts: 6
Joined: Tue Jun 15, 2010 9:02 pm

Re: Best Practice for Web Application Updates

Is there an example to execute SQL scripts through custom actions?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Best Practice for Web Application Updates

Hello,

Unfortunately we don't have an example to execute SQL scripts through custom actions. However, here is the tutorial from our user guide that describes how to run a SQL Script using Advanced Installer.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rakesh188
Posts: 6
Joined: Tue Jun 15, 2010 9:02 pm

Re: Best Practice for Web Application Updates

I have used this and it executes it without any problem. If I create a exe file which will execute the db scripts based on the version then How to pass the OLDPRODUCTS property to the exe ? Can I use command line arguments to pass this value to the exe.

I will appreciate any guidance on the best way to achieve this.

Thanks
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Best Practice for Web Application Updates

Hello,

The best approach is to pass arguments to your EXE from the custom action that launches it.("Custom Action Properties" -> "Command Line")

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”