PDA

View Full Version : Silent Install - Session variables does not resolve at runtime


WillCast
02-08-2006, 02:18 PM
Hello,

I've created an install package that could be executed in silent mode.

This installation saves some session variables in the windows registry.

When it is run in standard mode, the variables get resolved correctly but when it is run in silent mode, not... All I got saved is the variables names! I.e. %ProgramFilesFolder%\%ProductName%

Is there any way to avoid this behavior??

All best,
Will

Eagle
02-13-2006, 10:09 AM
Just in case you missed it:

Note: "Screen actions will only be executed if screens are displayed, therefore when run in silent mode,
no screen actions will be executed."

You could perform your registry write actions, say on 'Post Install' Main Stage.
using SessionVar.Expand(..........) actions - one way anyhow.
--this could cover if run in Visual or Silent modes.

(In silent mode preset 'session variables' are used by default, unless you
change these manually prior to install Stages.)

hth a little