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
- :
- execute custum action only on 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
‎Oct 20, 2008
05:39 AM
execute custum action only on uninstall
I have to launch a exe with parameter -s when the pachage installs and with parameter -u when i'm uninstalling the msi.
i made to custom action but i don't know which condition number to set. the -s condion works but the -u gives me a error because the exe is already deleted.
i hope i could explain the problem, because my english is not better...
thanx a lot
i made to custom action but i don't know which condition number to set. the -s condion works but the -u gives me a error because the exe is already deleted.
i hope i could explain the problem, because my english is not better...
thanx a lot
(8) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 20, 2008
06:24 AM
tell us a bit more:
- what kind of project is it?
- what do you need to accomplish with the custom action?
- when do you sequence it?
- what kind of project is it?
- what do you need to accomplish with the custom action?
- when do you sequence it?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 20, 2008
06:58 AM
it's a simple msi project. i copy a folder with some files to c:\program files\directory. in a subdirectory i have some dll and a install exe. during the installation a launch the install.exe (installs a virtual printer) with my custom action.the install_printer custom action is sequenced as 6505, before install finalize. it works perfectly but my problem is the uninstallation.
i would like to delete the printer when i uninstall my pachage. to do this i have to launch the install.exe with the parameter -u and i don't know when i have to launch the custom action
i would like to delete the printer when i uninstall my pachage. to do this i have to launch the install.exe with the parameter -u and i don't know when i have to launch the custom action
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 20, 2008
08:18 AM
I see. If you use "Path referencing a directory" as your EXE type custom action you will need two custom actions for this:
- one that you call during Install (set condition NOT Installed) with the -s parameter before "After InstallFinalize"
- one that you call during Uninstall (set condition REMOVE="ALL") with the -u parameter anywhere between "After InstallValidate" and "After RemoveFiles"
There are a few ways to Install a virtual printer through scripts - just google for it. If you still want to use your "install exe" method I would recommend using the "Stored in Binary table" custom action type. In this way you don't have to install the "install exe" file with your MSI.
- one that you call during Install (set condition NOT Installed) with the -s parameter before "After InstallFinalize"
- one that you call during Uninstall (set condition REMOVE="ALL") with the -u parameter anywhere between "After InstallValidate" and "After RemoveFiles"
There are a few ways to Install a virtual printer through scripts - just google for it. If you still want to use your "install exe" method I would recommend using the "Stored in Binary table" custom action type. In this way you don't have to install the "install exe" file with your MSI.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 20, 2008
09:14 AM
It's "NOT Installed" with a capital I as a condition. Have you logged your installation?
also your custom action types are wrong - they should both be "Path referencing a directory"
I strongly recommend doing some more learning on Custom Actions. Even the build-in help is good.
also your custom action types are wrong - they should both be "Path referencing a directory"
I strongly recommend doing some more learning on Custom Actions. Even the build-in help is good.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 21, 2008
03:08 AM
thank you very much for your help!!!
it works perfectly!
it works perfectly!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 21, 2008
04:57 AM
You really need to check out this document: "MSI Sequences and Standard Actions: An Introduction"
Robert Dickau has a very good way of explaining things...
best of luck.
Robert Dickau has a very good way of explaining things...
best of luck.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 21, 2008
05:05 AM
ok i will read it
thanks again
thanks again