home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip: 25 Years Anniversary
/
CHIP_25Jahre_Jubilaeum.iso
/
downloads
/
401065
/
WPO11
/
WPO11.msi
/
Binary.NewBinary27
< prev
next >
Wrap
Text File
|
2003-04-15
|
3KB
|
79 lines
Option Explicit
'***********************************************************************************************************
' Script: HideFeatures.vbs
'
' Purpose: - allows /a install to define features to hide in an admin package
'
' Logic: - /a install ... * set [AdminProperties]-[ADMINREMOVE] to [REMOVE]
' - install ... * read feature names [ADMINREMOVE], set property [FeatureName]
' * install condition on each feature, hides feature
'***********************************************************************************************************
'********************************************************************
' Sub hideFeatures
'
' - CustomAction for workstation install
' - reads [ADMINREMOVE] and sets properties
'********************************************************************
Sub hideFeatures
Dim sFeature: sFeature = ""
Dim sFeatures: sFeatures = Split(Session.Property("ADMINREMOVE"), ",")
For Each sFeature in sFeatures
If (sFeature <> "") Then 'Ensure not a null string
Session.Property(sFeature) = "1"
End If
Next
End Sub
'********************************************************************
' Sub setAdminProperties
'
' - CustomAction for admin install
' - sets [ADMINREMOVE] to the features the admin wants to remove
'********************************************************************
Sub setAdminProperties
If (Session.Property("ADMINREMOVE") <> "") Then
Exit Sub 'Already set
End If
Dim sAdminRemove
Dim sRemove: sRemove = Session.Property("REMOVE")
If (sRemove <> "" ) Then
sAdminRemove = sRemove
End If
' Check dialog in admin UI
If (Session.Property("R_PDX") <> "1") Then
sAdminRemove = sAdminRemove & ",Paradox"
End If
If (Session.Property("R_GRAPHICS") <> "1") Then
sAdminRemove = sAdminRemove & ",Graphics"
End If
If (Session.Property("R_FILTERS") <> "1") Then
sAdminRemove = sAdminRemove & ",Filters"
End If
If (Session.Property("R_FONTS") <> "1") Then
sAdminRemove = sAdminRemove & ",Fonts"
End If
If (Session.Property("R_UTILITIES") <> "1") Then
sAdminRemove = sAdminRemove & ",Utilities"
End If
If (Session.Property("R_PR") <> "1") Then
sAdminRemove = sAdminRemove & ",Presentations11"
End If
If (Session.Property("R_QP") <> "1") Then
sAdminRemove = sAdminRemove & ",QuattroPro11"
End If
If (Session.Property("R_WP") <> "1") Then
sAdminRemove = sAdminRemove & ",WordPerfect11"
End If
Session.Property("ADMINREMOVE") = sAdminRemove
End Sub