kumarkiranc
Posts: 85
Joined: Tue Sep 18, 2007 6:49 am

Executing VB Script files in Patch.

Hi,

I want to run some script file while installing a patch. How can i do it with Patch builder in Advance Installer.


Thanks
Kiran
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Re: Executing VB Script files in Patch.

Hi Kiran,

Include the script (VBScript or JavaScript) as an Attached Custom Action in the Upgraded MSI package and set the Execution Condition to:

Code: Select all

PATCH
Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
Skorpion81
Posts: 6
Joined: Thu Oct 25, 2007 8:45 am

Re: Executing VB Script files in Patch.

Hi Ionut,

is this also a solution for a "Installed custom action" ?
(I have got a VB Application which should be executed with some parameters.
Sourcetype = Executable (*exe)
CommandLine=[Appl_1_DIR]File1.txt,[APPDIR]File1.txt,0
)

I have got a setup (upgraded setup), where i want to execute one custom action before updatíng the files and one custom action which should be executed after updating the files.

In my setup i added one custom action in the section "InstallUISequence -> ProgressDlg" (-> before updating the files) and one custom action in the section "InstallExecuteSequence -> Commit" (-> after updating files)


In my setup this works fine. But when i generate a patch and execute it, it does not work.
Maybe it does not work becaues i select that the first custom action should be executed while ProgressDlg? What is a better option?

I also tried to use PATCH as execution condition.

It would be great if you can help me!

Thanks,
Skorpion81
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Executing VB Script files in Patch.

Hi,

Please schedule these custom actions in the "InstallExecuteSequence", not in the "InstallUISequence". If the problem persists please send us the AIP files you use to generate the target and upgraded pacakges to support at advancedinstaller dot com so we can investigate them.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Skorpion81
Posts: 6
Joined: Thu Oct 25, 2007 8:45 am

Re: Executing VB Script files in Patch.

Hi Cosmin,
thank you.
Maybe this solves my problem with the patch, but it does not work as i want. The first custom action should be executed before installing the files!!! And the second custom action should be exectued after installing the files!!!
How can i manage this?
Thans,
Skorpion81
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Executing VB Script files in Patch.

Hi,

The files are installed during the "InstallExecuteSequence" -> "InstallFiles" standard action. Therefore, you can schedule a custom action under any InstallExecuteSequence standard action which comes before "InstallFiles". Also, the second custom action can be scheduled under "InstallFinalize" as Immediate or under "PublishProduct" as deferred.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Skorpion81
Posts: 6
Joined: Thu Oct 25, 2007 8:45 am

Re: Executing VB Script files in Patch.

Hi Cosmin,

thank you!!! This works in the setup. In the next step i will generate the patch and test it!

It looks very good!

Once again, THANK YOU

Skorpion81
Skorpion81
Posts: 6
Joined: Thu Oct 25, 2007 8:45 am

Re: Executing VB Script files in Patch.

And here just as a small update for you...
Also the patch works fine!
Thank you very much.

Skorpion81

Return to “Common Problems”