Replace a file in MSI

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Replace a file in MSI

Natalie Carr
Hi everyone,

 

I have a customer who would like to replace a certain file in my MSI setup.
At the moment I am currently writing a guide on how to do this and at the
moment I have this scenario:

 

Remove cab from MSI

Extract all files from Cab

Replace file

Rebuild cab file

Add cab back into MSI

 

This is done using the SDK commands.

 

Is there an easier way to do this via orca/transforms?

My user wold like the new file embedded inside the MSI and not at the root
folder.

 

Thank you.

------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Reply | Threaded
Open this post in threaded view
|

Re: Replace a file in MSI

Christopher Painter-2
I take a slightly different approach.  Not as optimal but simpler and less
invasive.  Using C#/DTF:

Create a new cab with my file.
Stream cab into MSI
Update Media Table
Update File Table

This essentially orphans the original file and touches as little MSI table
data as possible.

----------------------------------------
 From: "Natalie Carr" <[hidden email]>
Sent: Thursday, August 01, 2013 8:41 AM
To: [hidden email]
Subject: [WiX-users] Replace a file in MSI

Hi everyone,

I have a customer who would like to replace a certain file in my MSI
setup.
At the moment I am currently writing a guide on how to do this and at the
moment I have this scenario:

Remove cab from MSI

Extract all files from Cab

Replace file

Rebuild cab file

Add cab back into MSI

This is done using the SDK commands.

Is there an easier way to do this via orca/transforms?

My user wold like the new file embedded inside the MSI and not at the root
folder.

Thank you.

----------------------------------------------------------------------------
--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk


_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Reply | Threaded
Open this post in threaded view
|

Re: Replace a file in MSI

Natalie Carr
Hi Christopher,

That certainly seems a far better approach. Would you have an example or
point me in thr right direction on how to implement this please?

Thank You
Natalie Carr

-----Original Message-----
From: Christopher Painter [mailto:[hidden email]]
Sent: 01 August 2013 14:48
To: General discussion for Windows Installer XML toolset.;
[hidden email]
Subject: Re: [WiX-users] Replace a file in MSI

I take a slightly different approach.  Not as optimal but simpler and less
invasive.  Using C#/DTF:

Create a new cab with my file.
Stream cab into MSI
Update Media Table
Update File Table

This essentially orphans the original file and touches as little MSI table
data as possible.

----------------------------------------
 From: "Natalie Carr" <[hidden email]>
Sent: Thursday, August 01, 2013 8:41 AM
To: [hidden email]
Subject: [WiX-users] Replace a file in MSI

Hi everyone,

I have a customer who would like to replace a certain file in my MSI setup.
At the moment I am currently writing a guide on how to do this and at the
moment I have this scenario:

Remove cab from MSI

Extract all files from Cab

Replace file

Rebuild cab file

Add cab back into MSI

This is done using the SDK commands.

Is there an easier way to do this via orca/transforms?

My user wold like the new file embedded inside the MSI and not at the root
folder.

Thank you.

----------------------------------------------------------------------------
--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk


_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users


----------------------------------------------------------------------------
--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Reply | Threaded
Open this post in threaded view
|

Re: Replace a file in MSI

Phil Wilson-2
If it's a data file the MsiFileHash table may need an update. MsiFiler.exe
from the Windows SDK might be useful.

Phil

-----Original Message-----
From: Natalie Carr [mailto:[hidden email]]
Sent: Thursday, August 01, 2013 6:57 AM
To: [hidden email]; 'General discussion for Windows Installer XML
toolset.'
Subject: Re: [WiX-users] Replace a file in MSI

Hi Christopher,

That certainly seems a far better approach. Would you have an example or
point me in thr right direction on how to implement this please?

Thank You
Natalie Carr

-----Original Message-----
From: Christopher Painter [mailto:[hidden email]]
Sent: 01 August 2013 14:48
To: General discussion for Windows Installer XML toolset.;
[hidden email]
Subject: Re: [WiX-users] Replace a file in MSI

I take a slightly different approach.  Not as optimal but simpler and less
invasive.  Using C#/DTF:

Create a new cab with my file.
Stream cab into MSI
Update Media Table
Update File Table

This essentially orphans the original file and touches as little MSI table
data as possible.

----------------------------------------
 From: "Natalie Carr" <[hidden email]>
Sent: Thursday, August 01, 2013 8:41 AM
To: [hidden email]
Subject: [WiX-users] Replace a file in MSI

Hi everyone,

I have a customer who would like to replace a certain file in my MSI setup.
At the moment I am currently writing a guide on how to do this and at the
moment I have this scenario:

Remove cab from MSI

Extract all files from Cab

Replace file

Rebuild cab file

Add cab back into MSI

This is done using the SDK commands.

Is there an easier way to do this via orca/transforms?

My user wold like the new file embedded inside the MSI and not at the root
folder.

Thank you.

----------------------------------------------------------------------------
--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk


_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users


----------------------------------------------------------------------------
--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users


----------------------------------------------------------------------------
--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users