Archive: SMS and NSIS


SMS and NSIS
I am distributing my NSIS created installer using SMS. Near the end of the installation, I launch a bat file which disconnects all mapped network drives. This causes the bat file to terminate abruptly. Any suggestions on how I can get this bat file to run on/in a separate local shell? I have attempted to Exec "Start <options> /Dc:\ /B <path>\<***>.bat" and ExecShell, and neither of them worked.

Thank you.


Why run a batch file at all? Simply execute the batch file commands using Exec, ExecWait or the nsExec plug-in. You can even call WNetCancelConnection2 directly using the System plug-in.


The completed installer works fine when it is launched locally (copied to the desktop and ran) but when SMS distributes it to a hub which in turn distrbutes it to the clients, something does not work. I am not sure how SMS works so I can not go into depth, I am assuming that the installer is running on a path and my batch file terminates that connection which terminates any processes running on that path.