Uninstall windows services of particular component on user selection

Comments

2 comments

  • Avatar
    jesus

    Hi developer,

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

    <preUninstallationActionList>
      <deleteWindowsService>
        <abortOnError>0</abortOnError>
        <displayName></displayName>
        <serviceName>${servicename}</serviceName>
      </deleteWindowsService>
    </preUninstallationActionList>
    
  • Avatar
    developer

    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

Please sign in to leave a comment.