What version of the WiX toolset are you using?

Bazarewsky, Michael C. wrote:
> Hello,
>
> I have a WIX MSI that removes a runtime-generated file.  The applicable 
> fragment looks like this:
>
>                 <RemoveFile Id="DeploymentGeneratedSQL"
>                             LongName="FrameworkDeploy.sql"
>                             Name="Fr*.sql"
>                             On="uninstall"
>                             />
>
> This works right now, but is messy, because of the wildcard.  I originally 
> just used
>
>                 <RemoveFile Id="DeploymentGeneratedSQL"
>                             Name="FrameworkDeploy.sql"
>                             On="uninstall"
>                             />
>
> But that did not work, presumably because Name is supposed to be a short 
> name.  If I put in just a "LongName", I get a complaint that I need a "Name". 
>  Because I don't know the short name (it would be generated when the file was 
> created if it was generated at all) I can't use a specific name.
>
> As I said, this works at runtime, but it causes a warning from WiX that 
> LongName is depreciated - I should use Name:
>
>         warning CNDL1069: The RemoveFile/@LongName attribute has been 
> deprecated.  Since Windows Installer XML now has the ability to generate 
> short file/directory names, the desired name should be specified in the Name 
> attribute instead.  If the name specified in the Name attribute is a short 
> name, then Windows Installer XML will not generate a short name.  If the name 
> specified in the Name attribute is a long name and you want to manually 
> specify the short name, please set the short name value in the ShortName 
> attribute.
>
> However, as I said, using a long name in Name doesn't seem to work.
>
> Any ideas?
>
> Thanks,
> Michael C. Bazarewsky
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>   

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to