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.
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
Started by
wrgeater
, Dec 03 2003 21:26
1 reply to this topic
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
nFeatureState=Session.FeatureRequestState("MyFeature")
if(nFeatureState=3) then
msgbox "Run from source"
end if
hope this helps
'This is a sample vbscript code
nFeatureState=Session.FeatureRequestState("MyFeature")
if(nFeatureState=3) then
msgbox "Run from source"
end if
hope this helps