Jump to content

This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.

Detecting Feature Location in CA VBS

1 reply to this topic


  • Members
  • 2 posts

Posted 03 December 2003 - 21:26

How do I determine weather a feature is installed to run from source in a CA VBS? I have a VBS CA that is checking the ADDSOURCE property to see where a feature is installed so I can make registry entries that point to the location of the files, but ADDSOURCE is always null, even when I use Custom setup to run them from source. Maybe I am overlooking something simple. Any help would be greatly appreciated.


  • Members
  • 48 posts

Posted 07 December 2003 - 05:47

You can check the FeatureRequestState property of the Session Object. Read the Windows Installer help library article titled "FeatureRequestState Property" for more information.

'This is a sample vbscript code
if(nFeatureState=3) then
msgbox "Run from source"
end if

hope this helps smile.gif