Old 12th May 2022, 09:54   #1
jeffersonmachado
Junior Member
 
Join Date: May 2022
Posts: 3
dropping colon from filename

Hi,

Sorry for my english.

The file with name teste:aa is installed as testeaa.
How I can fix this?

nsi

ICON "/opt/results/rbi/rbi_coletor/resources/windows/favicon.ico"
OutFile "/opt/results/rbi/rbi_coletor/dist/Setup_rbi_redis.exe"
;ShowInstDetails "nevershow"
BrandingText "R-BI Coletor"

InstallDir C:\Results\RBI\rbi_coletor
;RequestExecutionLevel admin

Section ""
; include for some of the windows messages defines
!include "winmessages.nsh"
; HKLM (all users) vs HKCU (current user) defines-
!define env_hklm 'HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"'
!define env_hkcu 'HKCU "Environment"'
; set variable for local machine
WriteRegExpandStr ${env_hklm} PENTAHO_JAVA_HOME c:\results\rbi\rbi_coletor\third_party\java-se-8u41-ri
; and current user
;WriteRegExpandStr ${env_hkcu} MYVAR MYVAL
; make sure windows knows about the change
SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} 0 "STR:Environment" /TIMEOUT=5000

CreateDirectory C:\results\rbi\rbi_coletor\jobs
SetOutPath $INSTDIR\jobs
File /r Z:\opt\results\rbi\jobs\*.*
CreateDirectory C:\results\rbi\rbi_coletor\third_party
SetOutPath $INSTDIR\third_party
# File /r Z:\opt\results\rbi\rbi_coletor\build\third_party\*.*
SectionEnd


Regards,
jeffersonmachado is offline   Reply With Quote
Old 12th May 2022, 16:18   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,484
Are you using NTFS streams?

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 12th May 2022, 17:24   #3
jeffersonmachado
Junior Member
 
Join Date: May 2022
Posts: 3
No, wine on Linux.
jeffersonmachado is offline   Reply With Quote
Old 12th May 2022, 19:54   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,484
teste:aa is not a valid filename on Windows, it is the named stream aa on the file teste (or not valid at all on FAT volumes).

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 12th May 2022, 22:39   #5
jeffersonmachado
Junior Member
 
Join Date: May 2022
Posts: 3
Please see files attached.
My java app use many file with : in filename
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2022-05-12 19-36-44.png
Views:	32
Size:	649.3 KB
ID:	54901  
jeffersonmachado is offline   Reply With Quote
Old 12th May 2022, 22:44   #6
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,484
Zone.Identifier is a stream name! In this case, "the mark of the web".

NSIS does not support stream names. If you really must create one; cmd.exe /c echo foo > "bar.ini:Whatever"

IntOp $PostCount $PostCount + 1
Anders 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