Custom Action to include a batch file
Hello,
As required, I will have to create a msi installer of Java 6 Update 27 (forget about vulnerabilities) that needs all other versions of Java installed on the host. I have my batch file created using wmi command that uninstalls all the java versions installed on the machine. And, I have the msi installer extracted from the java setup. On the install shield editor I see a custom action to include VBScript but not regular windows script. Could some one help me in getting this done?. We use Flexera Admin Studio for repackaging software applications.
Thanks,
Seemon
5 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
Rahul.C.Gaikwad
9 years ago
That sounds like a monumental waste of time to me!
As to running batch, a clue: run CMD.EXE with the name of the batch file as an argument.
As to whether doing this via batch is a good idea, it's really not. Besides any other consideration, batch is truly awful at error-trapping. Use your deployment system to uninstall older versions of apps/utilities. - anonymous_9363 10 years ago
I apologize if my typo error has confused you. My msi needs to uninstall all other versions installed already on the host first and then it needs to install the specified version. So I am intending to run the batch file first as a custom action and then install the actual software.
Please let me know if this doesn't make any sense.
Thanks,
Seemon - seemon 10 years ago
Since the JRE MSIs aren't proper MSIs at all, just a vehicle for a ZIP and a bunch of CAs to extract the files, etc., and since your goal is to obliterate all previous versions, why not build a very simple uninstalling MSI by populating the RemoveFile and RemoveRegistry tables? In the latter, you can include the Product Codes which branche from the 'Uninstall' branch by refererence to the installations you have. - anonymous_9363 10 years ago
-Seemon - seemon 10 years ago