This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Uninstall does not try to remove service when component is not in root [INSTALLDIR]
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 02, 2015
07:50 AM
Uninstall does not try to remove service when component is not in root [INSTALLDIR]
Hello all,
My installer (basic MSI) installs a windows service. It's implemented in a component (Shared=No, Permanent = No).
If this component resides in the [INSTALLDIR] - when I remove the service it's stopped and removed.
(I defined the control Events for install/stop/remove)
When I move the component file to a different dir (sub-directory of INSTALLDIR) the uninstall/stop will not work.
Installshield doesn't even try to do it - it just ignores removal altogether. I tried to remove and create the compoennt
from scratch and it didn't help either. I'm clueless...
Please help!
Dany
My installer (basic MSI) installs a windows service. It's implemented in a component (Shared=No, Permanent = No).
If this component resides in the [INSTALLDIR] - when I remove the service it's stopped and removed.
(I defined the control Events for install/stop/remove)
When I move the component file to a different dir (sub-directory of INSTALLDIR) the uninstall/stop will not work.
Installshield doesn't even try to do it - it just ignores removal altogether. I tried to remove and create the compoennt
from scratch and it didn't help either. I'm clueless...
Please help!
Dany
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 02, 2015
08:45 AM
I kept on checking and it's clear that If I move the service file to the [INSTALLDIR] (out of the subdirectory) it will uninstall just fine.
I need to have it in a subdirectory so I need to understand why it won't work when I move it back to [INSTALLDIR]\subdirectory
Thanks!
I need to have it in a subdirectory so I need to understand why it won't work when I move it back to [INSTALLDIR]\subdirectory
Thanks!
dany@sec.do wrote:
Hello all,
My installer (basic MSI) installs a windows service. It's implemented in a component (Shared=No, Permanent = No).
If this component resides in the [INSTALLDIR] - when I remove the service it's stopped and removed.
(I defined the control Events for install/stop/remove)
When I move the component file to a different dir (sub-directory of INSTALLDIR) the uninstall/stop will not work.
Installshield doesn't even try to do it - it just ignores removal altogether. I tried to remove and create the compoennt
from scratch and it didn't help either. I'm clueless...
Please help!
Dany
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 03, 2015
07:31 AM
I am not sure if this is the issue, but could it be a permissions issue where the sub folder does not have appropriate rights and the parent folder does?
Another idea is the sub directory, is it a value that is somehow derived during the first install but could be lost during the uninstall? I highly doubt this is the issue because most of the time our sub directories derive directly from [INSTALLDIR].
Another idea is the sub directory, is it a value that is somehow derived during the first install but could be lost during the uninstall? I highly doubt this is the issue because most of the time our sub directories derive directly from [INSTALLDIR].
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 10, 2016
11:50 AM
Hi, I have exactly the same problem. May I know if there is any solution to it now? Thanks!