Post by MyungWhen I go into AppSearch, I see Property and Signature. Can you give me an
example what can I put in there? (documentation is not much of help..)
Property is the name of the property that you would like get the result in,
for example THUNDERBIRDUNINSTALLEXE. Signature_ is a key into some different
tables in order for you to tell AppSearch what to look for.
You want to search for a file, therefore you must make an entry in the
DrLocator table and the Signature table. The DrLocator entry specifies the
directory in which you want to search and Signature describes the file.
The Signature_ field in AppSearch table, DrLocator and the Signature field
in the Signature table must be identical, for example UninstallSignature.
For the Path field in the DrLocator, I would try setting it to something
like [ProgramFilesFolder]\Mozilla Thunderbird\uninstall and ignore the Parent
and Depth fields.
In the Signature table, I recommend that you set FileName to uninstall.exe
and ignore the other fields.
Now when the AppSearch action runs, it sets the value of the property
THUNDERBIRDUNINSTALLEREXE to c:\program files\mozilla
thunderbird\uninstall\uninstall.exe or similar.
Post by MyungPost by RageAfter this you sequence a custom action type 50 or
34 to launch it, with a conditional value so that it only launches if the
file exists.
Can you please guide me through this step, also? Thank you very much.
Myung
Create an entry in the CustomAction table. Set the Action field to something
descriptive, such as RunThunderbirdUninstaller. Set the Source field to the
name of the property in the AppSearch table, i.e. THUNDERBIRDUNINSTALLEREXE.
The Target column should be set to the command line.
The type column should be set to 50 + 256 i.e. 306. This will cause the
executable to run immediately when the custom action is run and cause the
installation to fail if the exe file returns something other than 0. The
added 256 is to make it only run once during the installation if it is added
in both the InstallUISequence and InstallExecuteSequence.
Next you enter make the custom action run in the sequence you want, the
easiest may be to add it in both InstallUISequence and InstallExecuteSequence.
For both these tables, create an entry with the Action field set to the name
of the custom action, ie RunThunderbirdUninstaller. The condition should be
set to something like Not Installed And (REMOVE <> ALL) to make it run only
during first installation and not when uninstalling the new installation
package. The sequence number should be set to a number higher than the number
that is used for the AppSearch action, so that the custom action runs after
AppSearch has been done.
That should probably do the trick for you. If not, please let me know and
I'll help you in case I've forgotten something or got something wrong here.
/ Rage