Try to search your question here, if you can't find : Ask Any Question Now ?

Nsis ReadReStr not reading when space is present in path or value

HomeCategory: stackoverflowNsis ReadReStr not reading when space is present in path or value
julie asked 2 weeks ago

I am trying to test the function to read registry in nsis.

I have this in my nsis script.

section
    ReadRegStr $0 HKLM "SoftwareMozillaMozilla Firefox" "CurrentVersion"
    DetailPrint "Mozilla version: $0"
    ReadRegStr $0 HKLM "SoftwareRegistredAplications" "Google Chrome"
    DetailPrint "Chrome: $0"
    ReadRegStr $0 HKLM "Softwarevimgvim" "path"
    DetailPrint "Gvim path: $0"
    ReadRegStr $0 HKLM SoftwareNSIS ""
    DetailPrint "NSIS is installed at: $0"
sectionend

The output is:

Mozilla version: 
Chrome: 
Gvim path: C:Program Files (x86)Vimvim81gvim.exe
NSIS is installed at: C:Program Files (x86)NSIS
Completed

I think the problem is created by the spaces in the path.
How can I fix it?

1 Answers
Best Answer
Matthias answered 2 weeks ago
Your Answer

12 + 1 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com