Solved

how to edit msi to change variable in file

Posted on 2011-03-22
8
1,001 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 47

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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Let’s list some of the technologies that enable smooth teleworking. 
Healthcare organizations in the United States must adhere to the guidance of both the HIPAA (Health Insurance Portability and Accountability Act) and HITECH (Health Information Technology for Economic and Clinical Health Act) for securing and protec…
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
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 …

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now