/build/static/layout/Breadcrumb_cap_w.png

Calling an EXE using a BAT during the uninstall process.

Hi !

I have an EXE file that I have to launch at the install AND the uninstall (This file install/uninstall a network protocol).

I currenty launch this file using a .BAT :


THE_EXE_FILE -l "PATH_TO_AN_INF_FILE_INSTALLED_WITH_THE_PRODUCT" -c p -i A_SERVICE
net start A_SERVICE
THE_EXE_FILE -v -s n


At install time, no problems, I install the files I need, and then launch the .BAT.

At uninstall time, I launch this BAT file :


net stop A_SERVICE
THE_EXE_FILE -u A_SERVICE
THE_EXE_FILE -v -s n


Of course, I launch this BAT before the real uninstall of the files I need.


Now, my problem :

I didn't found in InstallShield 10.5 a custom action using a .bat file, so I made an EXE Custom Action and then modified it. That make me think I'm doing something which maybe should not do.

Do you have any other solutions ?

Thanks !


P.S : If you have any solution which could allow me not to install the EXE_FILE (using it as temporary file, installed just during the install/uninstall), please tell me !

0 Comments   [ + ] Show comments

Answers (0)

Be the first to answer this question

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