guys
I have some VB code which detects if the PC is a laptop or not by using WMI to see if there's a battery installed on the PC.
I would like the VB Code to change a "Property" in the MSI so I can do....
IF Laptop = "TRUE" then
Install Laptop components
END
IF Laptop = "False" THEN
Install Desktop Components
END
Do you see what I'm trying to acomplish....
....is it possible and does anyone know how?
Regards
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.
Setting a Property with a VB Script
Started by
JWPP
, Apr 03 2002 11:19
1 reply to this topic
Posted 08 April 2002 - 18:25
It is very possible. Every VBS CA that is called has a Session object available to it by default. To set a property you would:
Session.Property("PROPNAME") = "Your value"
As for creating custom actions, there are several options available to you, I suggest you start with the SDK docs.
MSDN Platform SDK Documentation for Windows Installer.
There is a lot of info in there and it can be a bit overwhelming at times, but there is some good stuff there too.
Session.Property("PROPNAME") = "Your value"
As for creating custom actions, there are several options available to you, I suggest you start with the SDK docs.
MSDN Platform SDK Documentation for Windows Installer.
There is a lot of info in there and it can be a bit overwhelming at times, but there is some good stuff there too.