First, I think Yan has the right idea, this is something that should probably be done in the app.
However, the reason the CA is not working is because "rename" is not actually an application in modern versions of Windows and you must point to an actual executable in order for it to work. When Microsoft finally replaced the DOS underpinnings of the windows command environment the old simple applications like copy, del, rename, and etc got rolled into part of the command shell environment and the old executables that used to do the work were removed (though IIRC they were just stubs left in for backward compatibility for awhile before the change over). In order to run one of those commands you actually need to have the CA run cmd.exe with the correct command-line arguments. --Nathan On Wed, Feb 3, 2010 at 9:58 AM, Yan Sklyarenko <y...@sitecore.net> wrote: > Have you considered an option to put this responsibility on the > application, not installation? As you mentioned, the file is not > installed, but is created by the application, so the misprint is rather > a bug of application... > > -- Yan > > -----Original Message----- > From: Nicole Zheng [mailto:nicole.zheng...@hotmail.com] > Sent: Wednesday, February 03, 2010 12:06 > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] How to rename an existing file after > installation(major upgrade)? > > > When my application runs for the 1st time, it creates a file named > devcie.txt > under the installation folder. > Since the file name is a typo (should be device.txt), I want to provide > a > higher version .msi to perform a major upgrade and rename the file > during > the installation. > > My code is like: > <Property Id="QtExecCmdLine" Value="rename "C:\Program > Files\MyApp\Devcie.txt" Device.txt" /> > <CustomAction Id="QtExecExample" BinaryKey="WixCA" > DllEntry="CAQuietExec" Execute="immediate" Return="check"/> > . > . > . > <InstallExecuteSequence> > <Custom Action="QtExecExample" After="InstallFinalize"/> > </InstallExecuteSequence> > > But it doesn't work. The error logs: > CAQuietExec: Command string must begin with quoted application name. > CAQuietExec: Error 0x80070057: invalid command line property value > CAQuietExec: Error 0x80070057: failed to get Command Line > > Look forward your help. Thanks a lot. > > > -- > View this message in context: > http://n2.nabble.com/How-to-rename-an-existing-file-after-installation-m > ajor-upgrade-tp4506348p4506348.html > Sent from the wix-users mailing list archive at Nabble.com. > > ------------------------------------------------------------------------ > ------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the > business > Choose flexible plans and management services without long-term > contracts > Personal 24x7 support from experience hosting pros just a phone call > away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > -- --Nathan Stohlmann Minneapolis, MN USA nathan.stohlm...@gmail.com ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users