PDA

View Full Version : Using session variables in Uninstall settings


ceciltss
10-05-2006, 06:46 PM
Hi there,

ok, I realize that this is insane, inappropriate, and contrary to the nature of the universe, but then so am I.

On the Uninstall Settings screen, I filled the three values:

Uninstall File Folder
Configuration Filename
Executable Path and Filename

with session variables. I do this so that I can change the settings based on user interaction. It suddenly occurs to me that I might have to change %ProductName%. I want the Add/Remove Programs entry to vary also.

My question is: At what point do those field values become concrete. Can I change them in a Before Install action and have the changes reflected when the uninstall is created. I guess it comes down to When is the uninstall created?

Does anyone have any thoughts?

Thanks in advance.

CecilTSS

Darryl
10-06-2006, 10:02 AM
Hi ceciltss,

Yes, you should be able to massage those values during the install. Basically the uninstall is created during the "Installing Files" stage, so if you were to use the SessionVar.Set action to set the values of those variables at some point before the files are actually installed (such as Before Installing), it should be OK.

Also, just to make you aware of them, Setup Factory contains a group of actions called UninstallData.XXX. These are meant to be used at some point after the files have been installed and uninstall created. So if need be, you could also manipulate the uninstall there. That being said, it would not affect any Add/Remove Program information updates because those are simply registry entries versus the uninstall config file.

Hope that helps.

Lorne
10-06-2006, 10:26 AM
(As a last resort, you could also edit the registry entries directly.)