/build/static/layout/Breadcrumb_cap_w.png

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?

0 Comments   [ + ] Show comments

Answers (6)

Posted by: aogilmor 16 years ago
9th Degree Black Belt
0
Sounds doable.
You may have to experiment with cmd.exe to get it to run right.
Could be a type 50 or 34, depending on where you put the batch file.
Posted by: ogeccut 16 years ago
Black Belt
0
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?
Posted by: anonymous_9363 16 years ago
Red Belt
0
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
Orange Belt
0
You could try to add the custom action under the Execute Immediate tab after InstallValidate and test its operation from there. Just an idea that I had to use for another application a while ago.
Posted by: aogilmor 16 years ago
9th Degree Black Belt
0
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
Black Belt
0
Thank you for reply. Just got next release with workign msi.

Thank you.
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