Old 7th February 2011, 09:48   #1
Junior Member
Join Date: Jan 2011
Posts: 11
Check InstDir for special character

Hi all

Does theire already exist a function, which checks if the INSTDIR has any special characters (ä, ö, ?, spaced, ...)?
I searched already a while, but i wasn't successfull.

Thanks and regards,
wili is offline   Reply With Quote
Old 7th February 2011, 10:08   #2
Major Dude
Join Date: Oct 2006
Posts: 1,892
$INSTDIR is a special variable in that it can only contain a valid Windows path. This means that it automatically removes illegal characters such as ?, as well as trailing spaces or backslashes, etc.

To find specific characters in a string, you can use the macros in wordfunc.nsh.
MSG is offline   Reply With Quote
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