Peter Carlson
2005-01-14 21:41:40 UTC
I am trying to add a couple of post build steps to our setup project. I use
the following commands:
# default to all users
cscript WiRunSQL.vbs "Setup.msi" "update `Property` set `Value`='ALL' where
`Property`='FolderForm_AllUsers'"
# disable disk cost button
cscript WiRunSQL.vbs "Setup.msi" "update `Control` set `Attributes`=0 where
`Dialog_`='FolderForm' and `Control`='DiskCostButton'"
#add the install and uninstall custom action into the sequence
cscript WiRunSQL.vbs "Setup.msi" "insert into `InstallExecuteSequence`
(`Action`,`Condition`,`Sequence`) values ('Launch_Client_First', 'NOT
Installed', 7500)"
cscript WiRunSQL.vbs "Setup.msi" "insert into `InstallExecuteSequence`
(`Action`,`Condition`,`Sequence`) values ('Launch_Client_LAst', 'Installed',
1850)"
However I am getting fits with adding the custom action itself...I'd like to
do
cscript WiRunSQL.vbs "Setup.msi" "insert into `CustomAction` (`Action`,
`Type`, `Target`, `Source`) values ('Launch_Client_First', 210,
'install=first', (select `File` from `File` where
`FileName`='CHATCL~1.EXE|chatclient.exe'))"
There are 2 problems:
1 the sub select doesn't seem to work...how can I dynamically get the `File`
from the table?
2 I'd like to use a "like" clause instead of = - where `FileName` like
'%client%' instead
Any ideas?
Peter
the following commands:
# default to all users
cscript WiRunSQL.vbs "Setup.msi" "update `Property` set `Value`='ALL' where
`Property`='FolderForm_AllUsers'"
# disable disk cost button
cscript WiRunSQL.vbs "Setup.msi" "update `Control` set `Attributes`=0 where
`Dialog_`='FolderForm' and `Control`='DiskCostButton'"
#add the install and uninstall custom action into the sequence
cscript WiRunSQL.vbs "Setup.msi" "insert into `InstallExecuteSequence`
(`Action`,`Condition`,`Sequence`) values ('Launch_Client_First', 'NOT
Installed', 7500)"
cscript WiRunSQL.vbs "Setup.msi" "insert into `InstallExecuteSequence`
(`Action`,`Condition`,`Sequence`) values ('Launch_Client_LAst', 'Installed',
1850)"
However I am getting fits with adding the custom action itself...I'd like to
do
cscript WiRunSQL.vbs "Setup.msi" "insert into `CustomAction` (`Action`,
`Type`, `Target`, `Source`) values ('Launch_Client_First', 210,
'install=first', (select `File` from `File` where
`FileName`='CHATCL~1.EXE|chatclient.exe'))"
There are 2 problems:
1 the sub select doesn't seem to work...how can I dynamically get the `File`
from the table?
2 I'd like to use a "like" clause instead of = - where `FileName` like
'%client%' instead
Any ideas?
Peter