|
|
#1 |
|
Member
Join Date: May 2007
Posts: 53
|
How do i get installer to
How do i get the installer to copy a folder if selected...
Says an error with the line: File "plugin" And how do i get the installer to run a batch file lets say during installation or after.... Because i have something to add to registary.. code: |
|
|
|
|
|
#2 |
|
Debian user
(Forum King) Join Date: Jan 2003
Location: Arch land
Posts: 4,896
|
a) Copy a folder if the user selected?
Do you mean copy files from user's folder selection?b) You use nsis native registry functions to add those entries. If you wish not, then you should call Exec instruction to invoke regedit with silent switch /s. * PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux w/ xfce4. * Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Debian unstable w/ xfce4. |
|
|
|
|
|
#3 |
|
Member
Join Date: May 2007
Posts: 53
|
I am making it install to a folder, i want a whole folder to be copyed or a folder to be made in the installation folder then each file to be copied there...
what u said doesnt make much sence, i started learning today... So how would i call the file: server.reg or if need be call a batch file... so .bat |
|
|
|
|
|
#4 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
File /r
Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#5 |
|
Member
Join Date: May 2007
Posts: 53
|
The run of the file is not working....
Last edited by XxXGoD; 25th May 2007 at 17:34. |
|
|
|
|
|
#6 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
What exactly happens? Please be more specific.
Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#7 |
|
Member
Join Date: May 2007
Posts: 53
|
Nothing happens, i know when the registry file has been done... cos i can load game and see if server added
EDIT: i got it working now i used: Function .onInstSuccess Exec server.bat FunctionEnd |
|
|
|
|
|
#8 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
Exec Server.bat brings up the console window which might look kinda weird, recommended to use nsExec for an unattended by the end user batch execution.
Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
|
|
#9 |
|
Member
Join Date: May 2007
Posts: 53
|
Hmm okay.
Its all working good now, BUT with: File "Game.exe" if i allready have that file in there it doesnt overright i dont think... how can i tell if it does? |
|
|
|
|
|
#10 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
Assuming that the file isn't in use SetOverWrite on should do the job as expected.
Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
|
|
#11 |
|
Member
Join Date: May 2007
Posts: 53
|
Where/how do i place that??
|
|
|
|
|
|
#12 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
|
|
#13 |
|
Member
Join Date: May 2007
Posts: 53
|
SO is this correct?
SetOverwrite on File "Game.exe" File "D2Gdi.dll" File "D2gfx.dll" File "D2Glide.dll" will it make them all set to overwrite.. |
|
|
|
|
|
#14 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
`SetOverwrite on` is the default, so there's no need to use it, unless you use SetOverwrite in another place.
As for making it overwrite, yes it will. Just try and see. NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#15 |
|
Member
Join Date: May 2007
Posts: 53
|
Ok, well With the compoent page...
it shows the compent but when i hover mouse over them doesnt show the info on it... Section "C3PO" SetOutPath $INSTDIR\C3PO other than that problem its damn good now, thanks guys |
|
|
|
|
|
#16 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
See the Modern UI examples for how to add descriptions.
Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|