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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Try this condition instead
If Not Installed OR (REINSTALL AND NOT PATCH) then
Answered 06/12/2008 by: AngelD
Red Belt

Please log in to comment
0
It does not execute either. The VBScript call is completely at the end of the Execute Immediate section. Would that change anything?
Answered 06/12/2008 by: sylvain_langlois
Orange Belt

Please log in to comment
0
Where is it exactly sequenced?
What does the vbscript do?
Answered 06/12/2008 by: AngelD
Red Belt

Please log in to comment
0
what is the script doing as well. sounds like something that is modifying the system
Answered 06/12/2008 by: jmcfadyen
Fifth Degree Black Belt

Please log in to comment
0
NOT REMOVE~="ALL" will run your CA during install and repair - but not during uninstall.

Hope it helps,
Rob.
Answered 06/13/2008 by: MSIPackager
Third Degree Black Belt

Please log in to comment
0
Yes it will and during installation of a patch, that's why added NOT PATCH to the repair condition.
Answered 06/13/2008 by: AngelD
Red Belt

Please log in to comment
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... [;)]
Answered 06/13/2008 by: sylvain_langlois
Orange Belt

Please log in to comment
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?
Answered 06/13/2008 by: MSIPackager
Third Degree Black Belt

Please log in to comment
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!
Answered 06/13/2008 by: sylvain_langlois
Orange Belt

Please log in to comment
Answer this question or Comment on this question for clarity