Several Instdir
Hello all,
I'm french, sorry for my poor english.
So, I want to create an installer wich can copy 2 files in differents directory if it's find them.
I'm a newbie with NSIS, i can't see how i can made it!
Thanks for your help guys.
Archive: Several Instdir
Several Instdir
Hello all,
I'm french, sorry for my poor english.
So, I want to create an installer wich can copy 2 files in differents directory if it's find them.
I'm a newbie with NSIS, i can't see how i can made it!
Thanks for your help guys.
Download HM NIS Edit and use the Script Wizard :] That'll do it for you really fast !
Sorry but HM NIS Edit can't install the files in several directories.
For example : I want to copy 2 files in c:\test ant the same files in c:\test2
We had a similar problem for our installer. The solution was to create a custom page allowing the user to specify the directories.
Use can use the NSIS plug-in for Eclipse to do this. It's very good.
Use the SetOutPath function inside a Section to have this file in two places. For example:
Section
DetailPrint "Section 1"
SetOutPath "D:\test1"
File test1.txt
SectionEnd
Section
DetailPrint "Section 2"
SetOutPath "D:\test2"
File test1.txt
SectionEnd
>
You could have this in one Section if you wanted. This will put "test1.txt" in D:\test1\ and D:\test2\.Ok, that's great but ...
... Now I want copy test1.txt in D:\test1 only if D:\test1 exist and test1.txt in D:\test2 only if D:\test2 exist.
thanks
The function IfFileExists
... will do what you need.
Look it up in the help index for its parameters.
Good! Thank You for your help!