I used dark.exe to extract some files from an MSI that is modified by 
one of my programs.  Rather than bother with extracting and modifying 
the original cab (this was back before WiX taught me so much about 
Windows Installer), I created a new cab with the newer versions of the 
files, added an entry to the Media table, and updated the sequence 
numbers in the File table.  Dark.exe extracted the file from the 
original cab instead of the file from the new cab, even though the 
sequence number indicates it should come from the second cab.  I have 
verified both in testing and production that msiexec installs the 
correct file.

Here are the relevant rows from the MSI:

File
settings.xml    _255AC3B343CF45AE802DB7CA6C3CA133    settings.xml    
382            512    638
_D3A8191618394962B77991DDCC06762A    
_971FA3B7456F4F76BFDE571E9E3BC5B1    uci~0001.con|uci.config    1068    
        512    639

Media
1    637    1    #Instal01.cab    DISK_1   
2    640        #client.cab       

I haven't tried to trace this down in the code yet.  I guess I should 
actually set the LastSequence to 639.

Thanks,

-- 
Thomas S. Trias
Senior Developer
Artizan Internet Services
http://www.artizan.com/


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
WiX-devs mailing list
WiX-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to