We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Shreyans26
Posts: 18
Joined: Wed Jul 16, 2014 6:20 am

uninstall Event

Hi,
Is there any way that we can get uninstall event in my application using advanced installer.

I have a situation where
- I have to call an API using the password key as parameter which is stored in user settings properties of application, during the uninstall of the application.

Suggest please,

Thanks
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: uninstall Event

Hello,

In order to retrieve the password key parameter you can use an XML search (SEARCH_PROP) added in "Search" page. Then, you can create your own custom action, add it in "Custom Actions" page and configure it to run only on uninstall.

For example, you can create a C++ custom action or a C# custom action.

Let us know if this helped, otherwise please give us more details about your specific scenario.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Shreyans26
Posts: 18
Joined: Wed Jul 16, 2014 6:20 am

Re: uninstall Event

Hi,
Thanks for the reply,

Okay scenario is :
we have a key which we get in our application once authentication is done.
we save the key in the user settings of the application.
i have used the Advanced Installer to create the setup for my application.

Now, i have to pass the key to advanced installer while installing and when uninstalling i can use the key and call the API to remove it (key is different for different user).

Thanks,
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: uninstall Event

Hello,

You can store the related key at install time into an XML file. Please take a look on our "Import and edit an XML file" how to which should be useful for you. Then, you can use an "XML Search" which will retrieve the password at uninstall time. Finally you should create your own custom action which will implement the desired functionality (e.g. call an API using the password key as parameter) and schedule it to run on uninstall.

If this doesn't help you please give us more details (maybe exemplify or attach some screenshots) about your installation scenario and about what you are trying to achieve.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”