• Announcements

    • xper

      MSFN Sponsorship and AdBlockers!   07/10/2016

      Dear members, MSFN is made available via subscriptions, donations and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, become a site sponsor and ads will be disabled automatically and by subscribing you get other sponsor benefits.
Sign in to follow this  
Followers 0
iamtheky

Editing a file inside an .msi

7 posts in this topic

There is a config file inside an msi in which I need to change a single path. Is there a simple way to edit the file.

I've got the extract and edit part, which made me want to ask if a solution exists that allows to simply edit a file and save with no repacking.

0

Share this post


Link to post
Share on other sites

What tool are you using? ORCA, or something else?

0

Share this post


Link to post
Share on other sites

I used uniextract to unpack it and found the config file and single line that i need to edit (just repathing a home folder from c to d). Problem is I lack skills in the whole repacking department.

I have all of last nights experience with Orca, that actually peaked my interest. Which led to the question, that if I dont want to change the installer at all, just one character in one existing file and leave everything else intact, whats the easiest method?

0

Share this post


Link to post
Share on other sites

I've recently discovered that 7-Zip can open some .EXE and .MSI files, as well as write new data to the contents (you have to select the "Open as archive" option in the Explorer context menu).

Edited by kahlil88
0

Share this post


Link to post
Share on other sites

Thats a nice gui for extracting, thanks. (I think uniextract succeded with 7zip but just extracted). Still does not allow me to replace or edit. I get a lot of 'operation not supported' and 'can not update file' errors.

0

Share this post


Link to post
Share on other sites
Thats a nice gui for extracting, thanks. (I think uniextract succeded with 7zip but just extracted). Still does not allow me to replace or edit. I get a lot of 'operation not supported' and 'can not update file' errors.
You might have to extract the files you want to edit and then drag them back into the archive and replace the originals.
0

Share this post


Link to post
Share on other sites

thats when i get 'operation not supported', whether i attempt to perform the procedure on the entire extracted cab or just the extracted .cfg from inside the cab.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.