plz help in patch & 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!

IB85lb
Posts: 27
Joined: Tue Oct 12, 2010 10:02 am

plz help in patch & custom action

1-how to create a silent patch.
2-how to create a custom action that it job is to search for a file then it will copy it before the upgrade remove the old one and install the new.

thanks
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: plz help in patch & custom action

Hello,

Patches by themselves are not "silent or not".
Them being silent or not is decided on runtime by passing the /qb or /qn parameter when launching them.
2-how to create a custom action that it job is to search for a file then it will copy it before the upgrade remove the old one and install the new.
Are you trying to do a backup? If so, you can create a custom action that launches xcopy to copy your file to some location, then let the upgrade process overwrite the old one with the new one.
If this is not what you want, please describe the issue in more detail.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
IB85lb
Posts: 27
Joined: Tue Oct 12, 2010 10:02 am

Re: plz help in patch & custom action

hello
thanks Gabriel Barbu but i didnot know how to make the backup
if you can give me the steps with more details.


Best regards
IB85lb
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: plz help in patch & custom action

Hello,

It is quite easy actually. Here are the steps:
- add a file search for your file from the Search page. It will be stored in a property of your choice, let's assume MY_FILE_PATH
- add a Launch File or Open URL custom action before the RemoveExistingProducts standard action. Condition it using the UPGRADINGPRODUCTCODE property, which is set only during upgrades. This way your custom action will only run when your product is upgraded. Your custom action should launch xcopy with the appropriate parameters for copying your file to the desired location. Use the MY_FILE_PATH property found in the first step inside the command line field of this custom action.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”