Domain Manage

Unpack .exe program make change and repack

Discussion in 'Services Wanted' started by scooter, Apr 13, 2013.

Thread Status:
Not open for further replies.
  1. scooter United Kingdom

    scooter (23) Well-Known Member Trusted Trader

    Joined:
    Apr 2006
    Posts:
    2,022
    Likes Received:
    41
    I need a change to a progran that is delivered in .exe format.


    I need to insert one line of code in a ".ini" file so when it is installed it is there



    Can you help?












    .
     
  2. Domain Forum

    Acorn Domains Elite Member

    Joined:
    1999
    Messages:
    Many
    Likes Received:
    Lots
     
  3. aZooZa

    aZooZa (72) Well-Known Member Exclusive Member Trusted Trader

    Joined:
    Nov 2005
    Posts:
    4,495
    Likes Received:
    92
    You can tack ASCII on the end of the .exe binary. I'm assuming you wrote it, so you can concatenate the .ini data to the .exe, then find the pointer offset of its location using a hex editor or binary dump, and then set the read pointer from within the .exe to read the text from what is now a 'plumper' .exe. Actually, even if you didn't write the original .exe, this will work but you'll need to code it. PM me if you need any help.

    Edit: If it's simply an executable zip file, you should just be able to unzip it to reform the constituent parts; make your changes, then recreate the executable zip.
     
    Last edited: Apr 13, 2013
  4. PoshTiger United Kingdom

    PoshTiger (13) Well-Known Member Trusted Trader

    Joined:
    Jun 2011
    Posts:
    1,241
    Likes Received:
    25
    Sometimes .exe files are just executable zip archives with an autorun program...

    It's only a 25% chance but try opening the .exe with something like winrar and see if you can see the files, if you can, then extract them - alter as you wish and re-create the executable zip archive again.
     
  5. expertc

    expertc (15) Well-Known Member Trusted Trader

    Joined:
    Apr 2009
    Posts:
    1,009
    Likes Received:
    16
    If it creates an .ini file while installing, it is (most probably) some sort of an install script like InastallShield or similar. In this case you can't do any changes easily. So you will be better off recreating the installation. There is a free alternative to Windows Installer or InstallShield called Inno Setup. You can find it here: http://www.jrsoftware.org/isinfo.php

    Install your soft in some sort of a "sandbox" (google free win sandboxes, they are quite a few) that records the changes to the registry / files etc. Then you can write your own install with the functions you want.

    Hope this helps! Good luck.
     
    Last edited: Apr 13, 2013
Thread Status:
Not open for further replies.

Share This Page