MAKEMSI quickly and reliably creates MSI files in a non-programmatic way
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
[Bottom][Contents][Prev]: CaSleep()[Next]: VbsCaRaiseError()
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
\->Source Code->VBSCRIPT->Custom Action Functions->VbsCaPropertyGet()

VbsCaPropertyGet()

This function returns the value of a Windows Installer property. It exists to allow your custom action a much greater chance of being able to be tested from the command line.

If your custom action is deferred then you probably wish to use "VbsCaCadGet" instead.

When being tested you will be prompted for a "test" value for the property.

The function takes these parameters:

  1. The name of the property being queried.

  2. A default value which is only used during testing.

  3. An extra message for the testing "prompt", pass "" if not required.

EXAMPLE

<$VbsCaEntry "Install">
   dim InstallDir : InstallDir = VbsCaPropertyGet("INSTALLDIR", "C:\tmp\INSTALLDIR.TST", "")
<$/VbsCaEntry>


Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.Please email me any feedback, additional information or corrections.
See this page online (look for updates)

[Top][Contents][Prev]: CaSleep()[Next]: VbsCaRaiseError()


MAKEMSI© is (C)opyright Dennis Bareis 2003-2008 (All rights reserved).
Saturday May 28 2022 at 3:11pm
Visit MAKEMSI's Home Page
Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.