/build/static/layout/Breadcrumb_cap_w.png

Execute VBscript on repair

I have a VBScript (embedded code) which is executed on install and I'm trying to find a way to run the same script when the msi package is repaired. I do not know what condition to use so it can run the script.

Here's what I use now in the Execute Immediate section of Wise:

If NOT Installed then
Call VBScript From Embedded Code (Copy_File)
End


I tried adding a "OR MaintenanceMode=Repair" but it doesn't work.

Thanks for your help.

0 Comments   [ + ] Show comments

Answers (9)

Posted by: AngelD 15 years ago
Red Belt
0
Try this condition instead
If Not Installed OR (REINSTALL AND NOT PATCH) then
Posted by: sylvain_langlois 15 years ago
Orange Belt
0
It does not execute either. The VBScript call is completely at the end of the Execute Immediate section. Would that change anything?
Posted by: AngelD 15 years ago
Red Belt
0
Where is it exactly sequenced?
What does the vbscript do?
Posted by: jmcfadyen 15 years ago
5th Degree Black Belt
0
what is the script doing as well. sounds like something that is modifying the system
Posted by: MSIPackager 15 years ago
3rd Degree Black Belt
0
NOT REMOVE~="ALL" will run your CA during install and repair - but not during uninstall.

Hope it helps,
Rob.
Posted by: AngelD 15 years ago
Red Belt
0
Yes it will and during installation of a patch, that's why added NOT PATCH to the repair condition.
Posted by: sylvain_langlois 15 years ago
Orange Belt
0
The script is located between InstallFinalize dans RemoveExistingProducts.

What the script is doing is copying a file according to a property specified when you launch the installation. I want this MSI package to act like a VBS script, always run, even though it's already installed. I don't want to have to uninstall the MSI package so I can run it again and have the script modify the system. I'm not sure if I'm clear... [;)]
Posted by: MSIPackager 15 years ago
3rd Degree Black Belt
0
No you are not being very clear.

Either you want your VBS custom action to run each time the package is installed or repaired (in which case the conditions above will do the trick) - or you want the script to run each time the application is run, in which case have your shortcut point to your vb script and edit your vbscript to run the appropriate application exe command line at the end...

Does this help?
Posted by: sylvain_langlois 15 years ago
Orange Belt
0
I want it to run each time the package is installed or repaired. And the condition did it perfectly.

Thank you for your help!
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ