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.
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)
Please log in to answer
Posted by:
AngelD
15 years ago
Posted by:
sylvain_langlois
15 years ago
Posted by:
jmcfadyen
15 years ago
Posted by:
MSIPackager
15 years ago
Posted by:
AngelD
15 years ago
Posted by:
sylvain_langlois
15 years ago
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... [;)]
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
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?
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
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.