Hamister
8th June 2004 04:37 UTC
How to close explorer.exe during the installation
Hi I´m noob on NSIS, I made a modification on Windows DLLs so I need little help...
TO replace the dlls the explorer should be closed, so how can I add this to the script?
Other questions too How can I make a backup of the files that are installed? and how to execute cmd(DOS) programs during the installation?
I Really need your help!
Thanks a lot
Anders
9th June 2004 01:12 UTC
explorer is also the "shell" (taskbar and that stuff) so just closing all exlorer windows probably wont help(+that most of the dlls are not unloaded right away) but if u still want to do it u have to use EnumWindows (i think i saw an example of this in the system plugin docs) and close all windows with the classname CabinetWindow(or something like that)
open dos commands with the normal exec functions or the exectostack thingie plugin
deguix
9th June 2004 03:17 UTC
I think you should restart the computer as normally programs do which is recommended.
How can I make a backup of the files that are installed?
Use
SetOutPath to somewhere else to install another copy of the files (using same
File commands. Or if you meant "backup of old files" you can use
CopyFiles command.
how to execute cmd(DOS) programs during the installation?
You can run .bat files (made by you or by the installer). To make .bat files with the installer, you can simply use
FileOpen,
FileWrite and
FileClose commands.
Hamister
9th June 2004 03:55 UTC
Originally posted by Anders
explorer is also the "shell" (taskbar and that stuff) so just closing all exlorer windows probably wont help(+that most of the dlls are not unloaded right away) but if u still want to do it u have to use EnumWindows (i think i saw an example of this in the system plugin docs) and close all windows with the classname CabinetWindow(or something like that)
open dos commands with the normal exec functions or the exectostack thingie plugin
Oh could you make a sample for me please?