Results 1 to 6 of 6

Thread: Copy folder in Inno Setup

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2008
    Posts
    195

    Copy folder in Inno Setup

    Hi,
    Just a quick one, is it possible to copy a folder in Inno setup?. I'm trying to figure out how I could copy a folder from my source directory to the C:\Program Files

    I know that I can create a directory in ISTool and just copy all the files to that if thats the only way forward.


    It would just be handy if I could use some sort of copy feature?. Because I also have a few folders in program files that I would like to make shortcuts for on the desktop. (The folders are not generated by my program, just folders that are already in program files by default)

    Any ideaS?

    thanks

  2. #2
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Copy folder in Inno Setup

    Something like this:

    Source: E:\Server Data\Randem\Develop\**********\Sample\*.*; DestDir: {app}\Sample; Flags: ignoreversion recursesubdirs

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Feb 2008
    Posts
    195

    Re: Copy folder in Inno Setup

    Thanks I will give that a shot.

    I've got one other question. I'm trying to copy an exe to desktop as a shortcut from a source but for some reason it just copys the exe itself.

    Can't figure out how I could copy the exe as a shortcut to the desktop?

    Any ideaS?

    thanks alot

  4. #4
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Copy folder in Inno Setup

    Something like this:

    The desktop icon:

    Name: {commondesktop}\**********; Filename: {app}\**********.exe; WorkingDir: {app}

    and the Quick Launch Icon:

    Name: {commonappdata}\Microsoft\Internet Explorer\Quick Launch\********** ; Filename: {app}\**********.exe; WorkingDir: {app};

  5. #5
    New Member
    Join Date
    Jan 2009
    Posts
    6

    Re: Copy folder in Inno Setup

    Quote Originally Posted by randem View Post
    Something like this:

    Source: E:\Server Data\Randem\Develop\**********\Sample\*.*; DestDir: {app}\Sample; Flags: ignoreversion recursesubdirs
    WOW! I must say that easily saved me a few hours of work, THANK YOU!

  6. #6
    New Member
    Join Date
    Nov 2011
    Posts
    1

    Re: Copy folder in Inno Setup

    What if I need to create a directory other than Program Files?
    In other words, I want:

    create my application installation directory in Program Files and also create a directory in ProgramData/myCompany/AppName and copy a file there.

    How exactly should I go with that?

    Thanks a lot in advance.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width