VideoHelp Forum




+ Reply to Thread
Results 1 to 10 of 10
  1. I have a software exe file that after it is installed, there is an ini file in the software program folder. I modified the ini file and would like to have that modification incorporated in the exe file. Otherwise, every time I install the exe file, I have to overwrite the ini file with the modified ini file. How can I modify the exe file so that I can eliminate the need to overwrite the ini file each time I install the exe file?
    Quote Quote  
  2. Member
    Join Date
    Sep 2002
    Location
    South Africa
    Search Comp PM
    I think this will depend heavily on what program was used to make the original Installer file. If it is a open source program there is a chance you will be able to get hold of the installer script used to generate the install exe. And then you might be able to "compile" your own installer.

    Here is some info for installers made with NSIS (Nullsoft Scriptable Install System)
    http://nsis.sourceforge.net/Can_I_decompile_an_existing_installer

    I was wanting to do this myself, but have found it easier to replace files manually than to recreate an installer, but I guess it depends on your application and how frequently you want to do it.

    Another thought just occured to me. you could Make your own custom installer, which runs the original installer, and then afterwards, copies the updated "ini" file into the appropriate place.
    Quote Quote  
  3. aBigMeanie aedipuss's Avatar
    Join Date
    Oct 2005
    Location
    666th portal
    Search Comp PM
    is it a self-extracting rar archive or a program exe?
    --
    "a lot of people are better dead" - prisoner KSC2-303
    Quote Quote  
  4. Member
    Join Date
    May 2001
    Location
    United States
    Search Comp PM
    You'll find that most programmers go to great length to prevent end-users from modifying their code. Plus, all you will see is compiled code and not something like VBasic or C++. Unless you are very proficient at reading machine language (which you obviously are not, since you are asking this question), you should probably just make yourself a directory called "MY_INIs" and place your modified INIs in there. When you have to reinstall, just copy your modified INI back to the program's directory.
    ICBM target coordinates:
    26° 14' 10.16"N -- 80° 16' 0.91"W
    Quote Quote  
  5. The install file and new ini can be seen at:
    http://www.fileden.com/files/2006/11/30/441298/AVIConverter%20Setup%205.rotate.rar
    But as I am not proficient with computers, I will probably just copy over the ini file each time I install the exe.
    Quote Quote  
  6. Member Krispy Kritter's Avatar
    Join Date
    Jul 2003
    Location
    St Louis, MO USA
    Search Comp PM
    In most instances, you can't edit/modify the exe file. That is the reason for using ini files.
    Google is your Friend
    Quote Quote  
  7. You could use a beatch file . Use this to install the program as done normally, then get it to replace the ini file, which you could zip up into a new exe file
    Corned beef is now made to a higher standard than at any time in history.
    The electronic components of the power part adopted a lot of Rubycons.
    Quote Quote  
  8. In Microsoft Visual FoxPro You can include an ini file into the executable.
    Quote Quote  
  9. Member dragonkeeper's Avatar
    Join Date
    Jul 2003
    Location
    United States
    Search Comp PM
    Sounds like what you want to do would be fairly simple using autoit, autoit would allow you to automate the process of installing the exe and overwriting the ini file. I have built 3 versions of Windows XP install disk using this program.

    Windows XP ver 1: Installs windows Xp then installs. (version 1 is use as the base for my other two versions.)
    FireFox
    Maleware bytes
    Avira
    Office 2010
    Adobe Acrobat Reader
    Flash Player
    Video, Printer, modem, and Scanner drivers
    notepad++
    Imgburn
    haali Media Splitter
    MPC-HC
    Winrar
    Sandboxie


    Version 2 includes all my video editing apps (CS4, Virtualdub, etc).
    Version 3 includes all of my programing apps (netbeans, Eclipse, webshere, SQL Server, .net Studio, etc).
    Last edited by dragonkeeper; 29th Oct 2011 at 10:03.
    Murphy's law taught me everything I know.
    Quote Quote  
  10. Member
    Join Date
    Aug 2006
    Location
    United States
    Search Comp PM
    The thread originally ended 3 1/2 years ago. Who cares at this point?
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!