Hi,
You can use a search (from "Search" page -> "New Search" and then "Add Location">"Registry") to set a property (named let's say MYPROP). But this search will be performed at the beginning of the uninstall and you can only get the value data from a registry key value you can't test the existence of a registry key.
If you decided to use the search for a registry value at the beginning of the uninstall then from "Custom Action" page use "Show Standard Action">"Before Finalization">"InstallFinalize". Now under "InstallFinalize" use "New Custom Action">"Property Set with Formated".
for the "Property Name" use: REBOOT
for the "Formatted Text" use: Forced
for the "Expression" use: MYPROP="aspected value to reboot"
If you consider that the search for a registry value at the beginning of the uninstall doesn't satissfayes your needs you must create a custom action that will test the registry at the end of the uninstall and will set that property. If you will use scripts see MSDN for more information about using registry in scripts:
http://msdn.microsoft.com/library/defau ... egread.asp
But not all scripts that run from Explorer also run from WindwsInstaller and vice-versa. For example:
in Explorer you can use:
Set WshShell = WScript.CreateObject("WScript.Shell")
in WindowsInstaller you must use:
Set WshShell = CreateObject("WScript.Shell")
and if you want to set the reboot from a custom action use:
Session.Property("REBOOT") = "Forced"
Let me know how it works.
Best,
Mihai.