Suite/Advanced UI Uninstall Package Script
Hi - I have created an installer which has a self extracted Zip file (SFX with .exe extension) as a feature. when installation process initiates this feature , SFX file is extracted to C:\Temp and runs install.bat file after extraction , which intern invokes child installers. this is all working fine.
as a part of uninstall I have to invoke Uninstall.bat file in zip file. I tried using like below but it didnt work.
Opeations => Remove=>EXE CommandLine =>
any thoughts on how to initiate a bat file using uninstall process.
I mean for installing the package , install shield invokes the SFX file, which executes the Install.bat(which is in Zip) ,and install.bat invokes child installers in zip file.
In case of uninstall I have to explicitly invoke uninstall.bat which is in the zip file.so for that I modified below properties as show below . but it is not working. is this right way to invoke?
That will only work if uninstall.bat exists in "C:\Temp\RabbitMQ". That command line won't unzip anything. You could set up your command line to the unzip and execute or just include uninstall.bat as a support file so you don't have to unzip it.
Hi @ragava28 ,
I doubt InstallShield supports executing commandline of different target other than the selected target.exe.Find the reference snap for inline help of EXE commandline:
You can append commandline for the setup.exe or any target.exe that is been added as exe package but not different target i guess.(In your case it is cmd.exe)
Thank you for your response. You mentioned that we can achieve this using Events. after reading about the events (OnBegin,OnResuming ..etc. ) I didnt find any event which gets triggered during/after un installation . Can you please point me to a link or info about implementation .
Hi @ragava28 ,
I guess you can pick OnPackagesConfigured event with which you can set your action say here:it is launching batch file
with condition of PackageOperation equals to REMOVE.
Find the snapshot for reference:
Hope that can help,