Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#836 Error launching installer if path has wide characters

2.0 Series
closed-duplicate
nobody
General (292)
5
2014-12-04
2008-11-06
James Cook
No

Environment:
NSIS 2.40 on Windows Vista SP1
(also reproduces on Windows XP SP2 and SP3 with Control Panels > Languages > East Asian Language support enabled)

Repro:
1. Compile C:\Program Files\NSIS\Examples\example1.nsi
2. Create a folder on the desktop with a Korean name (라마)
2.1. You can use Google Translate to copy/paste the string ( http://translate.google.com/translate_t#en|ko|llama )
3. Move example1.exe into the new folder
4. Launch example1.exe

Expected:
example1 runs and installs

Observed:
Dialog "NSIS Error" with "Error launching installer"

Comments:
I suspect this is because the NSIS installer must open itself to access the compressed data stream, but is using the Win32 ASCII version of path and file open functions. Perhaps a myFileOpen() problem?

This prevents me from using the base NSIS to deliver my application to Asian customers. By default, Windows Vista users download content into C:\Users\<username>\Downloads, and users speaking Korean, Japanese, and Chinese usually have usernames with wide characters. Windows XP has the same problem for files downloaded to the Desktop.

Thanks,

James Cook
james@lindenlab.com

Discussion

  • James Cook
    James Cook
    2008-11-06

    Error dialog when launching NSIS from path with wide characters

     
  • James Cook
    James Cook
    2008-11-07

    Also, this is not a new issue with NSIS 2.40. I have seen it with 2.38 and earlier as well.

     
  • Amir Szekely
    Amir Szekely
    2008-11-15

    You're correct. The installer has to open itself to read the data but can't do so if the it can't tell the OS where it is. In case of a Unicode path, we have no way of telling the OS where the installer is.

    I'm closing this as duplicate as the bug Unicode (#1238132) support ticket covers this.

     
  • Amir Szekely
    Amir Szekely
    2008-11-15

    • status: open --> closed-duplicate