V_Light
18th September 2010 00:33 UTC
Hello! I have two questions
Hello everyone! ;)
V_Light and I'm new at this. Nice to meet you.
I have the following questions:
- In installation, I have to put mandatory "_ or - in the name of a file to be installed? For example, I have to test_file, and I get and the shortcut, and I would like to come out test file.
- In my installation I would like to include files that are installed or put it in a specific folder (for example, and above all in the folder "System32" on Windows or Program Files)
So far that's all. I hope not bother you much ... and if my English is bad sorry.
Hello! ;)
Zinthose
18th September 2010 01:31 UTC
Are you asking how to include a file named "test_file.exe" but rename it as "test file.exe" when installed?
If so you can use the /oname feature of the file command.
File "/oname=test file.exe" test_file.exe
>
The only thing is you must specify the file name implicitly as wildcards are not supported when used with /oname
otherwise you could perform a search and rename of the files after being installed.
Rename "$INSTDIR\test_file.exe" "$INSTDIR\test file.exe
>
V_Light
18th September 2010 23:30 UTC
Thanks for answering. Your answer helped me, but I still did not answer the second question:
In my installation I would like to include files That are installed or put it in a specific folder (for example, and above all in the folder "System32" on Windows or Program Files)
If you answer me thank you very much, but thanks for answering the first question.
¡Hello!
demiller9
19th September 2010 04:35 UTC
You should read the manual, it can answer all of your questions.
SetOutPath $SYSDIR
File <your.file>
You might also want SetOutPath
$ProgramFiles or $ProgramFiles32 or $ProgramFiles64.
Animaether
19th September 2010 12:26 UTC
Originally posted by demiller9
You should read the manual, it can answer all of your questions.
SetOutPath $SYSDIR
File <your.file>
You might also want SetOutPath $ProgramFiles or $ProgramFiles32 or $ProgramFiles64.
Note that if one needs $ProgramFiles64 for 64bit installation purposes, -and- $SYSDIR is used, one needs to keep filesystem redirection in mind as well.
http://nsis.sourceforge.net/Include/x64.nsh
Note that on Vista and above, you can also use $WINDIR\SysNative\ , without the need to disable filesystem redirection.