thanks.
without comspec it works.
Announcement
Collapse
No announcement yet.
nsExec::Exec won't work with quotes. please help
Collapse
X
-
You only put quotes around the executable path, not the entire string. So in this case, just around $R0. And yeah you don't need to use COMSPEC really; just call rmtshare.exe directly.
Stu
Leave a comment:
-
-
Why are you using COMSPEC? COMSPEC is picky about quotes and spaces...
Leave a comment:
-
-
nsExec::Exec won't work with quotes. please help
I have share the "Shared Virtual Machines"-folder for the user webGIS
I searched for a tool to make it as simple as possible...found RMTSHARE.EXE.
In the command prompt it works fine:
But in my nsis-installer the following code will not work, but I don't know why at all.code:
C:\Daten\Installer\rmtshare \\computer\"Shared Virtual Machines"="C:\Users\Public\Documents\Shared Virtual Machines" /GRANT webGIS:F
the same code for the folder "c:\Daten" will work:code:
nsExec::Exec '"$R0 /C C:\Daten\Installer\rmtshare \\$0\"Shared Virtual Machines"="C:\Users\Public\Documents\Shared Virtual Machines" /GRANT webGIS:F"'
I think, it's beause of the quotes, but I don't know how to make it work.code:
nsExec::Exec "$R0 /C c:\Daten\Installer\rmtshare \\$0\Daten=c:\Daten /GRANT webGIS:F"
Please help.
BTW: $R0 is initialized bycode:
ReadEnvStr $R0 COMSPECTags: None
-
Leave a comment: