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: CA not executing during add/remove programs
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 29, 2007
12:02 PM
CA not executing during add/remove programs
I have a custom action that I want to run during the uninstall. It's setup to run in the Install Exec Sequence, After Install Initialize, with the condition of REMOVE="ALL".
What it does is rename a folder on the system.
When I run the setup.exe from the command line using setup.exe /x, the CA executes fine, and everything uninstalls as I want it to.
However, when I uninstall through Add/Remove programs, I get the same error that I get when the CA doesn't run. (After installing the app, I rename a folder that got installed through a CA during the install. When I uninstall the app in this state, I get a network error saying it can't read the .msi file. If I rename the folder back to the original name it was installed as, the error goes away and everything uninstalls fine.)
I've tried putting the CA in the Admin Exec sequence as well with the same sequence and condition, but still no go.
Is there a difference between CA's running from the setup.exe vs. running the uninstall through Add/Remove programs?
Thanks for any help,
Mike
What it does is rename a folder on the system.
When I run the setup.exe from the command line using setup.exe /x, the CA executes fine, and everything uninstalls as I want it to.
However, when I uninstall through Add/Remove programs, I get the same error that I get when the CA doesn't run. (After installing the app, I rename a folder that got installed through a CA during the install. When I uninstall the app in this state, I get a network error saying it can't read the .msi file. If I rename the folder back to the original name it was installed as, the error goes away and everything uninstalls fine.)
I've tried putting the CA in the Admin Exec sequence as well with the same sequence and condition, but still no go.
Is there a difference between CA's running from the setup.exe vs. running the uninstall through Add/Remove programs?
Thanks for any help,
Mike
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 29, 2007
09:29 PM
You will need to provide additional info on your custom action, e.g., what it is doing, code snippet, etc.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 30, 2007
12:11 PM
Okay. Here's the custom action.
It's a New EXE -> Path Referencing a Directory
The working directory is INSTALLDIR
The Filename and Command Line is "[INSTALLDIR]\res.bat remove"
(res.bat is a simple batch file that does some file renaming for me. When called with the "remove" parameter, it renames the INSTALLDIR\YourFolder to INSTALLDIR\MyFolder, that's it)
It's set to Synchronous (Ignore Exit Code), Immediate Execution, Always Execute.
Scheduled in the Install Exec Sequence, After InstallInitialize with the REMOVE="ALL" condition. (I've also tried it in the Admin Exec sequence at the same position).
Like I said, this all works fine if I run the uninstall off the msi or setup.exe from the command line. But fails to work if I just go into Add/Remove Programs and use the remove option there.
Thanks again for any help.
Mike
It's a New EXE -> Path Referencing a Directory
The working directory is INSTALLDIR
The Filename and Command Line is "[INSTALLDIR]\res.bat remove"
(res.bat is a simple batch file that does some file renaming for me. When called with the "remove" parameter, it renames the INSTALLDIR\YourFolder to INSTALLDIR\MyFolder, that's it)
It's set to Synchronous (Ignore Exit Code), Immediate Execution, Always Execute.
Scheduled in the Install Exec Sequence, After InstallInitialize with the REMOVE="ALL" condition. (I've also tried it in the Admin Exec sequence at the same position).
Like I said, this all works fine if I run the uninstall off the msi or setup.exe from the command line. But fails to work if I just go into Add/Remove Programs and use the remove option there.
Thanks again for any help.
Mike
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 04, 2007
07:14 PM
One thing you can try is to turn on system policy and enable logging for all MSI setups, and run uninstall from Add/Remove Programs. The log may provide additional info on the error.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 05, 2007
10:35 AM
Thanks for the reply, where can I do that? What policy is it?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 05, 2007
11:01 AM
Nevermind, found the policy setting, got a log, and I think I found my problem 😉
Thanks for the help!
Thanks for the help!