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
- :
- Re: execute application during uninstall
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 21, 2012
04:17 AM
execute application during uninstall
Hello community,
I want to create a custom action that executes an executable, which is installed with the MSI package, during uninstallation.
I want first execute the custom action and then deleting the files installutil.exe and myService.exe. The problem is, that I can't do it via components -> services
I created one, but it doesn't work:
Executable Filekey: installutil.exe
Command Line: /u myService.exe
Return Processing: Synchronous (check exit code)
in-script execution: immediate execution
execution scheduling: always execute
use 64bit: no
install UI sequence: absent
install exec sequence: after removeduplicatefiles
install exec condition: REMOVE="ALL"
admin UI sequence: absent
admin exec sequence: absent
What am I doing wrong?
thanks in advance
I want to create a custom action that executes an executable, which is installed with the MSI package, during uninstallation.
I want first execute the custom action and then deleting the files installutil.exe and myService.exe. The problem is, that I can't do it via components -> services
I created one, but it doesn't work:
Executable Filekey: installutil.exe
Command Line: /u myService.exe
Return Processing: Synchronous (check exit code)
in-script execution: immediate execution
execution scheduling: always execute
use 64bit: no
install UI sequence: absent
install exec sequence: after removeduplicatefiles
install exec condition: REMOVE="ALL"
admin UI sequence: absent
admin exec sequence: absent
What am I doing wrong?
thanks in advance
(6) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 21, 2012
08:15 AM
what does the .log say? Not sure what this means: "The problem is, that I can't do it via components -> services"
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 21, 2012
09:04 AM
Where do you have your CA firing in the Sequences?
Edit: Duh...I see it..sorry.
Edit: Duh...I see it..sorry.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 21, 2012
09:08 AM
I have one executing on uninstall, the only differences with mine are:
Command Line: -u
In Script Execution: Deferred Execution
Install Exec Sequence: After StopServices
Command Line: -u
In Script Execution: Deferred Execution
Install Exec Sequence: After StopServices
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 21, 2012
09:19 AM
Cygnusx1 wrote:
what does the .log say? Not sure what this means: "The problem is, that I can't do it via components -> services"
I have a component that contains the service.exe. I don't want to install the service at install. The user decides when to install the service. The service has an special name in services. When I want to delete the service with "sc.exe" I need this special name. But I don't know the special name during uninstall. This is why I did not define a service in Components.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 21, 2012
09:43 AM
Log says:
[CODE]
MSI (s) (0C:60) [16:37:55:120]: Executing op: ActionStart(Name=ServiceUninstallDelete,,)
Action 16:37:55: ServiceUninstallDelete.
MSI (s) (0C:60) [16:37:55:120]: Executing op: CustomActionSchedule(Action=ServiceUninstallDelete,ActionType=1042,Source=C:\myservice13\InstallUtil.exe,Target=-u myService.exe,)
CustomAction ServiceUninstallDelete returned actual error code -1 (note this may not be 100% accurate if translation happened inside sandbox)
MSI (s) (0C:60) [16:37:55:214]: Note: 1: 1722 2: ServiceUninstallDelete 3: C:\myservice13\InstallUtil.exe 4: -u myService.exe
Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action ServiceUninstallDelete, location: C:\myservice13\InstallUtil.exe, command: -u myService.exe
MSI (s) (0C:60) [16:37:56:474]: Product: myservice -- Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action ServiceUninstallDelete, location: C:\myservice13\InstallUtil.exe, command: -u myService.exe
Action ended 16:37:56: InstallFinalize. Return value 3.
[/CODE]
[CODE]
MSI (s) (0C:60) [16:37:55:120]: Executing op: ActionStart(Name=ServiceUninstallDelete,,)
Action 16:37:55: ServiceUninstallDelete.
MSI (s) (0C:60) [16:37:55:120]: Executing op: CustomActionSchedule(Action=ServiceUninstallDelete,ActionType=1042,Source=C:\myservice13\InstallUtil.exe,Target=-u myService.exe,)
CustomAction ServiceUninstallDelete returned actual error code -1 (note this may not be 100% accurate if translation happened inside sandbox)
MSI (s) (0C:60) [16:37:55:214]: Note: 1: 1722 2: ServiceUninstallDelete 3: C:\myservice13\InstallUtil.exe 4: -u myService.exe
Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action ServiceUninstallDelete, location: C:\myservice13\InstallUtil.exe, command: -u myService.exe
MSI (s) (0C:60) [16:37:56:474]: Product: myservice -- Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action ServiceUninstallDelete, location: C:\myservice13\InstallUtil.exe, command: -u myService.exe
Action ended 16:37:56: InstallFinalize. Return value 3.
[/CODE]
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 26, 2012
04:20 AM
I found a solution.
I had to use Command line: -u [INSTALLDIR]myService.exe
This works fine for me.
I had to use Command line: -u [INSTALLDIR]myService.exe
This works fine for me.
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)