how to make installation folder a shared on
Hello everybody,
I'm new to NSIS. I would like to know how to make my installation folder (INSDIR) a shared one through my script.
Archive: how to make installation folder a shared on
how to make installation folder a shared on
Hello everybody,
I'm new to NSIS. I would like to know how to make my installation folder (INSDIR) a shared one through my script.
XP tested:
Name "Output"
OutFile "Output.exe"
InstallDir "$PROGRAMFILES"
Page directory
Page instfiles
Section
#Share folder
nsExec::ExecToLog 'NET SHARE myfolder="$INSTDIR"'
Pop $0
#Unshare folder
nsExec::ExecToLog 'NET SHARE myfolder /DELETE'
Pop $0
SectionEnd
Name "Output"
OutFile "Output.exe"
InstallDir "$PROGRAMFILES"
Page directory
Page instfiles
Section
#Share folder
nsExec::ExecToLog /OEM 'NET SHARE myfolder="$INSTDIR"'
Pop $0
#Unshare folder
nsExec::ExecToLog /OEM 'NET SHARE myfolder /DELETE'
Pop $0
SectionEnd
Dear Instructor,
Thanks a lot for such quick response.
I'll try your code and will get back to you
after testing it.