Bob, as far as I understood your CustomAction simply set the Property='BackupFiles' with the value specified. Try create another custom action of the type 50 (http://msdn.microsoft.com/en-us/library/aa372048(VS.85).aspx), probably like this: <CustomAction Id="DoBackupFiles" Property='BackupFiles' ExeCommand='/e /c /y h:\Sites h:\BackupSites ' Execute='immediate' Return='ignore' Impersonate='no' /> but in this case, most likely your CustomAction should be like this: <CustomAction Id='BackupFiles' Value ='c:\xcopy' Property='BackupFiles'></CustomAction> and include both CustomActions into the InstallExecuteSequence.
С уважением, Заворотнюк Денис. > -----Исходное сообщение----- > От: [EMAIL PROTECTED] [mailto:wix-users- > [EMAIL PROTECTED] От имени BOB1981 > Отправлено: 17 сентября 2008 г. 0:58 > Кому: wix-users@lists.sourceforge.net > Тема: [WiX-users] Running Custom Action Before InstallFiles > > > Hi All, > > Everyone has been really helpfull here with me, first thankyou soo much for > this help. > > Okey now my Question, I am trying to run a Custom action before Install > Files , this action is to just xcopy existing folder from h:\Sites to > h:\BackupSites , i added the custome action and InstallExecute Sequence as > below:- > > <CustomAction Id='BackupFiles' Value ='c:\xcopy /e /c /y h:\Sites > h:\BackupSites' Property='BackupFiles'></CustomAction> > > <InstallExecuteSequence> > <Custom Action='BackupFiles' Before='InstallFiles'></Custom> > </InstallExecuteSequence> > > My Product.wxs file complie and generates an MSI with no errors. > But when i install the MSI this action is running but with exit code 1 as > below, part of Log file is below: > > Action 16:28:27: BackupFiles. > Action start 16:28:27: BackupFiles. > Action ended 16:28:27: BackupFiles. Return value 1. > > it seems the action is running but some error while executing. How can i Use > Xcopy in this scenario to use as custom action to run before InstallFiles > Action. > > Waiting. > Thanks > > -- > View this message in context: > http://n2.nabble.com/Running-Custom-Action-Before- > InstallFiles-tp1093699p1093699.html > Sent from the wix-users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users