From: Urban J. Ing. <ur...@as...> - 2006-03-17 08:59:30
|
First Hi2All, I have got few thinks I would like to solve and not sure about solution, so... 1. Check if a file exists and then insert the value in Property. I proposed this: <Property Id=3D"REGASMFILE" Value=3D"c:\WINNT\Microsoft.NET\Framework\v1.1.4322\RegAsm.exe"> <DirectorySearch Id=3D"SEARCH_DIR" Path=3D"[%WindowsFolder]Microsoft.NET\" Depth=3D"999"> <FileSearch Id=3D"SEARCH_FILE" Name=3D"RegAsm.exe" /> </DirectorySearch> </Property> - I am not sure if I can put default value - Not sure when the value is filling in. I guess it is during InstallInitialize. - Not sure about duplicity search result (regasm for different framework) 2. Need to execute exe file with arguments, ex. "c:\WINNT\Microsoft.NET\Framework\v1.1.4322\RegAsm.exe" SMTPCiselniky.dll /codebase /tlb I am not really sure what I should use: I suppose that I use a Property, which is filled with value of executable file, in this case regasm.exe included full path. Afterwards it could look like: <CustomAction Return=3D"check" ExeCommand=3D"SMTPCiselniky.dll /codebase /tlb" Property=3D"REGASMFILE" Id=3D"idCARunRegAsm"></CustomAction> - Do I need set a directory, where SMTPCiselniky.dll is placed? - Am I using right CA if I want firstly find and check regasm.exe existence? - Not sure about arguments, am I right placing them in ExeCommand attribute? 3. Need to run smtpreg.vbs, should I use CA and run cscript.exe with parameters or something different? ex. : cscript "c:\Program Files\aaa\shared\smtpreg.vbs" /add 1 onarrival SMTPCiselniky111 ASD.XML.WS.SMTPCiselniky111.OnArrivalCiselnikyPozadavek "rcpt to=3Dc...@aa..." Thanks for any help.. bye bye Xabatcha |