If your custom action is in-script (read: deferred) it will be sequenced after all of the built-in actions that copy files. Of course, you can't change the Registry table from a deferred action (which is what I assume you are trying to do here).
We all assumed you were reading a text file that was already present on the machine, not one you are installing. If you need data from a file you are installing, you should read from the file while building and populate your property that way (since the file and package are shipped together). -----Original Message----- From: HuangRunzhen [mailto:h_runz...@hotmail.com] Sent: Wednesday, November 11, 2009 10:29 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] How to read a file to a property Is it possible to read a file in a component in custom action? I tried to do that in custom action but the file is not copied yet when the custom action is run. The custom action has a sequence of 4850, right before WriteRegistryValues. Thanks, Runzhen > Date: Thu, 12 Nov 2009 13:54:45 +1100 > From: sascha.beaum...@gmail.com > To: wix-users@lists.sourceforge.net > Subject: Re: [WiX-users] How to read a file to a property > > Hi, > > I was attempting to do the same a while back, but unless it's an INI > or XML file then you're out of luck and will need to code your own > custom action. It was easier for us to modify the application to > read/write to the registry and avoid text files in the future. > > Sascha > > > 2009/11/12 HuangRunzhen <h_runz...@hotmail.com>: > > > > Hi, > > > > > > > > I wonder if it is possible to read a .txt file into a property? I need to read this property in a custom action and encode it. > > > > > > > > Thanks, > > > > Runzhen > > > > _________________________________________________________________ > > MSN十周年庆典,查看MSN注册时间,赢取神秘大奖 > > http://10.msn.com.cn > > ---------------------------------------------------------------------------- -- > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > > trial. Simplify your report design, integration and deployment - and focus on > > what you do best, core application coding. Discover what's new with > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > _______________________________________________ > > WiX-users mailing list > > WiX-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > ---------------------------------------------------------------------------- -- > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users _________________________________________________________________ MSN十周年庆典,查看MSN注册时间,赢取神秘大奖 http://10.msn.com.cn ---------------------------------------------------------------------------- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users