CA to run bat file
I need to create a transform to run a batch file provided by a vendor in order to clean up and uninstall their old version. The process takes about 5 min to complete. Would I be able to create a transform based on the new vendor msi and have a batch file running first and then after its done run the msi?
Or there is a better way to do the installation?
Or there is a better way to do the installation?
0 Comments
[ + ] Show comments
Answers (6)
Please log in to answer
Posted by:
aogilmor
16 years ago
Posted by:
ogeccut
16 years ago
Posted by:
anonymous_9363
16 years ago
Is there a way to create a TRANSFORM to run a bath file and only then proceed with the msi install?I may be over-thinking this but you could:
- think of a location in the registry you can use e.g. HKLM\Software\[VendorName]\BatchFile\Run=True (or the date)
- use REG.EXE to delete the above entry (optional)
- run your batch file
- if successful, write a registry entry using REG.EXE
- add an AppSearch to test for the registry entry, then add a Launch Condition to start/terminate accordingly
You can substitute a copied file for the registry entry if you prefer.
There may well be a simpler route, it just hasn't struck me yet...
Posted by:
fritoz
16 years ago
Posted by:
aogilmor
16 years ago
ORIGINAL: ogeccut
I can run a batch file from the CA. But vendor msi will not install unless the batch file is run. Is there a way to create a TRANSFORM to run a bath file and only then proceed with the msi install?
Yes, if you have WiseScript you can wrap your batch file in there, make it custom action and place it at or near the top of the installation sequence.
If you don't have wise script, you can use some other utility to wrap it, or use VBscript or something else to accomplish the same thing.
Posted by:
ogeccut
16 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.