PDA

Click to See Complete Forum and Search --> : Copy folder in Inno Setup


jbennett
Mar 31st, 2008, 06:55 PM
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

randem
Apr 1st, 2008, 04:27 AM
Something like this:

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

jbennett
Apr 1st, 2008, 06:32 AM
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

randem
Apr 1st, 2008, 02:14 PM
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};

dkittell
Dec 17th, 2009, 11:15 PM
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!

NaomiN
Nov 21st, 2011, 11:08 AM
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.