Solved

how to edit msi to change variable in file

Posted on 2011-03-22
8
1,011 Views
Last Modified: 2012-08-13
We are deploying a new desktop backup solution by emc called avamar.

This solution has a msi file which I am hoping to change before depoyment.

There is a xml file in the msi that has a variable that I need to change before sending it out to the rest of the company (350+ computers)

If any of you can provide a solution to edit the attached msi file please let me know asap.  

We start the rollout tomorrow.
0
Comment
Question by:pbroussard
8 Comments
 
LVL 48

Expert Comment

by:dbrunton
ID: 35195205
Suggestion

Possibly use 7Zip to open it up.  Then if the concerned file is visible right click on it and choose Edit.  Save once finished and Exit.

Experiment on a copy rather than the actual file.
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 35195372
I don't see any attached file.

Assuming that the xml file is one of the files packed within the msi, you need to do the following:

open msi in orca (official download - Windows SDK), find table "cabs" and export the stream from [Binary Data]
extract xml file from cab file, change it, then put back into cab
in orca, import modified cab file into the msi
0
 
LVL 8

Expert Comment

by:ActiveDirectoryman
ID: 35195387
I agree with vadimrapp1.  orca is the best tool to use for msi editing and for transform creation.  

0
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 35195431
...actually, there's a better way.

1. create administrative installation by running msiexec /a mypackage.msi
This will place smaller msi plus all the files in adjucent directories, in the folder you will specify in the dialog
2. find xml and change it
3. deploy from this modified administrative installation.

This is simpler, and the clients will install it faster because they won't have to unpack it.
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 35485655
No indication that the author tried experts' suggestions.
0
 

Author Comment

by:pbroussard
ID: 35485879
Sorry about that, I'm fairly new to this.

I did try editing the file but that did not fix our issue.

The file in question was not the answer to our issue.  We found that editing the file would not fix the issue as the file was not called on until after activation which was after the event we were trying to stop.

We rolled out the software with the issue and are coming behind it and replacing the file with the pre-edited xml file.  

Sorry for the confusion.
0
 
LVL 40

Accepted Solution

by:
Vadim Rapp earned 500 total points
ID: 35486003
Thanks for clarification; as I understand, our solution did allow you to change the file in the installation the way you wanted, but you later found that this edit did not achieve the purpose it was for.

Moderator, I suggest split between  http:#35195431 and http:#35195372 . 7zip will see the cab inside the msi, but won't be able to edit a file within.
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is about my first experience with programming Arduino.
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question