Hi, Bob.
Custom action <Custom Action='BackupFiles' 
Before='InstallFiles'><![CDATA[&F_Online=3]]></Custom> will perform whenever 
the feature "F_Online " is selected to install. Try include in your condition 
this: (Not Installed). It should look like this:
        <Custom Action='BackupFiles' Before='InstallFiles'><![CDATA[Not 
Installed AND &F_Online=3]]></Custom>

P.S. Bob, tell me please, how do you know about the feature can be referenced 
in a condition as "&feature_name"?

Regards,
Denis Zavorotnyuk
> -----Исходное сообщение-----
> От: [EMAIL PROTECTED] [mailto:wix-users-
> [EMAIL PROTECTED] От имени BOB1981
> Отправлено: 17 сентября 2008 г. 17:22
> Кому: wix-users@lists.sourceforge.net
> Тема: Re: [WiX-users] HA: Running Custom Action Before InstallFiles
>
>
> Hi Denis,
>
> Thank soo much , you nailed it right. I just made the changes you suggested
> and its working , but it seems to run everytime i install the MSI or
> Uninstall or Repair..
> So i added
> <Custom Action='BackupFiles'
> Before='InstallFiles'><![CDATA[&F_Online=3]]></Custom>
> <Custom Action='DoBackupFiles'
> Before='InstallFiles'><![CDATA[&F_Online=3]]></Custom>
>
> So i guess it will run only if F_Online Feature is getting installed.
> Hey there only one this left i need to acomplist in this....any idea ?
>
> This Msi Package which i am creating needs to be created in such way that ,
> on our production server it is always going to be Install (Never Uninstall).
> this is why i wanted to all this backup Action before install.
>
> So wht can i change that it will allow over an existing Msi Product. Unlike
> right now it gives me an error "Another Version of this Product is already
> installed".
>  Because i want all of my Components to be Unmanaged , I guess i am going to
> leave Guid attribute as an empty string. Do u think its okey.. I just dont
> know the concequesces of this.
>
> All actually i want is no updation in registry at all and just an installer
> (no removal).
> Let me know
> and thanks for you suggestion. again
> Bob
>
>
> Denis Zavorotnyuk wrote:
> >
> > 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.
> >
> > С уважением,
> > Заворотнюк Денис.
> >
> >
> >
> >
>
> --
> View this message in context: 
> http://n2.nabble.com/Running-Custom-Action-Before-
> InstallFiles-tp1093699p1095230.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

Reply via email to