1. Post #1
    Physlithium's Avatar
    August 2008
    181 Posts
    Hi,

    I'm creating a disc which consist of a runnable exe, and I want that when people double click the batch files, it copies 2 dlls over to the installed program folder.

    I figured out different people have different program folders, example some are C:\ some are D:\, some have Program Files (x86) some do not.

    How do I specify in the batch file to copy this two dlls (which are inside the CD) to copy to the installed folder of the program?

  2. Post #2
    Gold Member
    ZeekyHBomb's Avatar
    June 2006
    3,577 Posts
    Let them copy the runnable exe with those two dll-files?
    Another option is to place them in %SYSTEMROOT&/System32, but that won't be fun to uninstall..

  3. Post #3
    Physlithium's Avatar
    August 2008
    181 Posts
    Um no,

    it's supposed to replace the two exsisting DLLs inside the program folder.

  4. Post #4
    Gold Member
    r4nk_'s Avatar
    April 2005
    2,023 Posts
    l33t h4x0r
    Reply With Quote Edit / Delete Reply Australia Show Events Dumb Dumb x 10Funny Funny x 1 (list)

  5. Post #5
    Physlithium's Avatar
    August 2008
    181 Posts
    l33t h4x0r
    wat
    Reply With Quote Edit / Delete Reply Singapore Show Events Agree Agree x 1 (list)

  6. Post #6

    February 2007
    177 Posts
    Hi,

    I'm creating a disc which consist of a runnable exe, and I want that when people double click the batch files, it copies 2 dlls over to the installed program folder.

    I figured out different people have different program folders, example some are C:\ some are D:\, some have Program Files (x86) some do not.

    How do I specify in the batch file to copy this two dlls (which are inside the CD) to copy to the installed folder of the program?
    I'd assume you would use the standard copy windows command

  7. Post #7
    Physlithium's Avatar
    August 2008
    181 Posts
    I'd assume you would use the standard copy windows command
    What do you mean?

    I wanted to replace DLLs with .bat because computer n00bs wouldn't understand what is "Go to the folder which the program is installed in and replace this two DLLs with those inside."

  8. Post #8
    Gold Member
    mike's Avatar
    October 2005
    4,316 Posts
    just use something like this and have an exe installer.

    http://www.jrsoftware.org/isinfo.php

  9. Post #9

    February 2007
    177 Posts
    What do you mean?

    I wanted to replace DLLs with .bat because computer n00bs wouldn't understand what is "Go to the folder which the program is installed in and replace this two DLLs with those inside."
    The Windows shell has a utility called copy:
    Code:
    copy originalfile destinationfile
    so if you had a program.exe you wanted to move into whatever/programs/:
    Code:
    copy program.exe whatever\programs\program.exe
    EDIT:
    And obviously, stick that in your batch file with the appropriate file names
    Reply With Quote Edit / Delete Reply United States Show Events Bad Reading Bad Reading x 1 (list)

  10. Post #10
    Gold Member
    itsbth's Avatar
    March 2006
    214 Posts
    Take a look at the PROGRAMFILES environment variable.

  11. Post #11
    Gold Member
    efeX's Avatar
    April 2009
    2,332 Posts
    whats with the influx of ~pro batch hackers~ lately
    Reply With Quote Edit / Delete Reply United States Show Events Dumb Dumb x 4 (list)

  12. Post #12
    FerrisWheel's Avatar
    October 2008
    256 Posts
    Is the .exe/.bat the thing that installs the program?

    whats with the influx of ~pro batch hackers~ lately
    What other type of batch hackers are there?

  13. Post #13
    Gold Member
    r4nk_'s Avatar
    April 2005
    2,023 Posts
    im sorry for my leet hacker comment

    Edited:

    deeply sorry