If you do use an empty file and want the file to be "looked after" by
Windows installer for patching, repair, etc - you can update the
filesize information post-build. Something like the following should
work (this is a somewhat simplified version of an actual script we
use)

Const MSI_SOURCE = "application.msi"
Const FILE_REPLACE = "config.xml"

Dim filesys, installer, database, view, size

Set filesys=CreateObject("Scripting.FileSystemObject")
Set installer = CreateObject("WindowsInstaller.Installer")
Set database = installer.OpenDatabase (MSI_SOURCE, 1)

Set objFile = filesys.GetFile(FILE_REPLACE)
size = objFile.Size

Set view = database.OpenView ("UPDATE File SET FileSize = " & size & "
WHERE File = '" & LCase(FILE_REPLACE) & "'")
view.Execute





On Mon, Mar 1, 2010 at 11:46 PM, Bob Arnson <b...@joyofsetup.com> wrote:
> On 3/1/2010 1:13 AM, hila toronchik wrote:
>> The problem is - that an empty file named Global.jpeg need to be placed the
>> development machine in order to build the msi.
>>
>
> WiX needs the file to fill out the details of the file (size, e.g.) in
> the MSI database.
>
> --
> sig://boB
> http://joyofsetup.com/
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to