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
Re: Copy folder in Inno Setup
Something like this:
Source: E:\Server Data\Randem\Develop\**********\Sample\*.*; DestDir: {app}\Sample; Flags: ignoreversion recursesubdirs
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
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};
Re: Copy folder in Inno Setup
Quote:
Originally Posted by
randem
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!
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.