Hi, I have an installer which can install two components. These two components have individually windows services. During uninstallation, I need selection option of component to uninstall. If user select component 1 for Uninstaller the particular services of that component will be uninstalled with component and if the user select all component all services with their component will be uninstalled. right now i add this <setinstallervariable> <name>project.allowAddRemoveComponents</name> <value>1</value> </setinstallervariable>

For this particular component is uninstalled but service is not uninstalled. Please help me to out it.

asked 09 Dec '15, 09:24

developer's gravatar image

accept rate: 0%

Hi developer,

You will have to call to the <deletewindowsservice> action in the pre/postUninstallationActionList to delete the service.


answered 10 Dec '15, 13:19

jesus's gravatar image

jesus ♦♦
accept rate: 18%

Thanks jesus for your reply,

I have tried this but it'snot working for me.

I added this in <preuninstallationactionlist>

  • <runprogram> <program>${installdir}MyProjectAppUninstall1.bat</program> <programarguments></programarguments> <rulelist> <comparetext> <text>${component(component1).selected}</text> <logic>equals</logic> <value>1</value> </comparetext> </rulelist> </runprogram>

its also not working


answered 11 Dec '15, 04:23

developer's gravatar image

accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 09 Dec '15, 09:24

Seen: 614 times

Last updated: 11 Dec '15, 04:23