Patch Creation - 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!

udayk
Posts: 126
Joined: Thu Jan 19, 2012 12:30 pm

Patch Creation

Hi Mihai,

I have few doubts and questions regarding patch creation.

1. First of all what is Target msi and update msi ?
2. If i was installed some msi package in the system, installed package how should allow patch up on the existed package ?
That means, Is there any permissions to give for future patch installation up on this existed msi...?
First of all, i want clear clarification above 2-questions.

Please send any links to create a Patch for to install up on the existing application.

Thank you,
Uday.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Patch Creation

Hi Uday,
Is there any permissions to give for future patch installation up on this existed msi...?
The following article can teach you how to suppress UAC elevation when installing your patch:
http://www.advancedinstaller.com/user-g ... ching.html

Reading and following the articles from the this post will answer your first question as well:
http://www.advancedinstaller.com/forums ... 433#p46433

Please keep in mind patching is a very delicate process and requires careful settings. If any of the patching rules are broken, the patch will not apply.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
udayk
Posts: 126
Joined: Thu Jan 19, 2012 12:30 pm

Re: Patch Creation

Hi Mihai,

Thank you for your links

I am very new to Patch creation, can you please give me some suggestions for new learning...

I followed the rules, for patch creation.
My Target application has some custom actions, with tomcat web server, and SQL Scripts to connect Server run scripts through remotely.

If i want to create a new database using SQL Scripts on to the Server through remotely, in updated version, In .aip file i applied PATCH in Execution Condition Expression for Standard actions Install, InstallIIS and WriteEnvironmentStrings.

I haven't change Product name, Product version as well. Patch Build with out any errors successfully.

When i am going to install patch it shows an Exception, i will attached Screen shot please find it.

Can you please tell me why this happened clearly.

Thank you,
Uday.
Attachments
when i run the patch script it shows an error
when i run the patch script it shows an error
Patch.png (160.67 KiB) Viewed 10986 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Patch Creation

Hi Uday,
I am very new to Patch creation, can you please give me some suggestions for new learning...
Read and follow the links from this post before implementing anything in your main project.
In .aip file i applied PATCH in Execution Condition Expression for Standard actions Install, InstallIIS and WriteEnvironmentStrings.
The PATCH property is set when a patch is being installed. Why are you conditioning the standard actions with this property? The error is most likely related.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
udayk
Posts: 126
Joined: Thu Jan 19, 2012 12:30 pm

Re: Patch Creation

Thank you Mihai,

You are correct,thank you for suggestion.

Product version update and file adding is successfully completed using PATCH.

I have one Query.

1. How should i run sql script using PATCH?

this is the major requirement of us, can you please tell me... ???

Thank you,
Uday.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Patch Creation

Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
udayk
Posts: 126
Joined: Thu Jan 19, 2012 12:30 pm

Re: Patch Creation

Hi Rudy and Mihai,

I followed steps as Rudy said,

I changed all of my custom actions, which started and stopped the services, to 'deffered with no impersonation'. I also set the execute condition to include 'PATCH'. The scripts were also set to 'modify/repair' as the patch is seen a modifing the application.

In my script i want to create new database using the patch script,but i get ODBC Connect : timeout exceeded exception,

Can you please tell me any alternative, regarding this script running through patch.

Thank you,
Uday.
udayk
Posts: 126
Joined: Thu Jan 19, 2012 12:30 pm

Re: Patch Creation

Hi Team,

I tried many suggestions,
But i have a doubt regarding SQL script run through PATCH ???

why because there is no SQLConnectionDlg will appear while patch installation for SQL Scripts,

Is there any possibility for running SQL Scripts through PATCH ? ? ?

Can you please tell me regarding these queries.

Thank you,
Uday.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Patch Creation

Hi Uday,

Can you please send us both the .AIPs ( target and upgraded ) to support at advancedinstaller dot com so we can investigate them?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
udayk
Posts: 126
Joined: Thu Jan 19, 2012 12:30 pm

Re: Patch Creation

Hi Mihai,

can you please find the attachments at suppport at advancedinstaller dot com.

Thank you,
Uday.
udayk
Posts: 126
Joined: Thu Jan 19, 2012 12:30 pm

Re: Patch Creation

Hi Mihai,

I send to the attachments with target and upgrade versions aip file, please find it at support at advancedinstaller dot com.

Thank you,
Uday.
udayk
Posts: 126
Joined: Thu Jan 19, 2012 12:30 pm

Re: Patch Creation

Hi Mihai,

I have couple of questions :-

1.First of all is it required for Connection dialog at patch levels in dialog page at upgraded versions ????

2.How do i put Connection dialog in Patch levels in dialog page for establish SQL connection in the upgraded version ???????

Thank you,
Uday.
udayk
Posts: 126
Joined: Thu Jan 19, 2012 12:30 pm

Re: Patch Creation

Hi Mihai,

when can i expect response from your side.

Thank you,
Uday.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Patch Creation

Hi Uday,
is it required for Connection dialog at patch levels in dialog page at upgraded versions ?
This is up to you, on how you decide to have the patch user interaction. By design and concept, a patch should have least user interaction. This is the reason the dialog choice is minimal.
How do i put Connection dialog in Patch levels in dialog page for establish SQL connection in the upgraded version ?
You can do this manually with NewDialog published events. Just keep in mind to sequence the dialog correctly. This means to set the appropriate published event for its "Back" and "Next" buttons and do the same for the next and previous dialogs.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Patch Creation

In the projects you sent I noticed you haven't set the PATCH condition for either of your SQL scripts. I suggested this a couple of times in the past.

However, please keep the following approach in mind if you need to execute sql scripts during patches:
- A best practice is not to rely on the patch diff process to create the sql script which will run during a patch
- When executing scripts during patches you should add a separate script conditioned with:

Code: Select all

PATCH
- In the SQL Scripts page you should have scripts which run during a regular install and different ones for upgrades. This is done by setting each with the appropriate condition.

Scripts need to be executed in a certain order depending on what was executed previously on the target machine. By keeping our recommendations with scripts you will avoid any future unwanted results.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”