Old 17th September 2010, 23:33   #1
V_Light
Junior Member
 
Join Date: Sep 2010
Posts: 2
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!
V_Light is offline   Reply With Quote
Old 18th September 2010, 00:31   #2
Zinthose
Senior Member
 
Join Date: May 2009
Posts: 152
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.

PHP Code:
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.

PHP Code:
Rename "$INSTDIR\test_file.exe" "$INSTDIR\test file.exe 
Zinthose is offline   Reply With Quote
Old 18th September 2010, 22:30   #3
V_Light
Junior Member
 
Join Date: Sep 2010
Posts: 2
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!
V_Light is offline   Reply With Quote
Old 19th September 2010, 03:35   #4
demiller9
Senior Member
 
Join Date: Mar 2006
Location: Dallas
Posts: 462
You should read the manual, it can answer all of your questions.
code:
SetOutPath $SYSDIR
File <your.file>

You might also want SetOutPath $ProgramFiles or $ProgramFiles32 or $ProgramFiles64.
demiller9 is offline   Reply With Quote
Old 19th September 2010, 11:26   #5
Animaether
Major Dude
 
Join Date: Jun 2001
Posts: 1,173
Quote:
Originally Posted by demiller9 View Post
You should read the manual, it can answer all of your questions.
code:
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.
Animaether is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump