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

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
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.
Answered 01/11/2008 by: aogilmor
Ninth Degree Black Belt

Please log in to comment
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?
Answered 01/14/2008 by: ogeccut
Black Belt

Please log in to comment
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...
Answered 01/14/2008 by: VBScab
Red Belt

Please log in to comment
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.
Answered 01/14/2008 by: fritoz
Orange Belt

Please log in to comment
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.
Answered 01/14/2008 by: aogilmor
Ninth Degree Black Belt

Please log in to comment
0
Thank you for reply. Just got next release with workign msi.

Thank you.
Answered 01/15/2008 by: ogeccut
Black Belt

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