Solved

how to edit msi to change variable in file

Posted on 2011-03-22
8
1,018 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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

In this article, you will read about the trends across the human resources departments for the upcoming year. Some of them include improving employee experience, adopting new technologies, using HR software to its full extent, and integrating artifi…
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Viewers will learn how to use the Hootsuite Dashboard.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

765 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