ScottO
23rd June 2003 15:21 UTC
deleting install file after install
I made a simple NSIS script that finds the location of a .mdb file via the registry and overwrites it with a newer Access db. That portion works great and this is my first foray into NSIS, and I found it rather easy to use and learn, which brings me to my question: I want the install.exe file to be deleted on my clients' computer after a successful install. I would like this to work regardless of the location of the install.exe file...
Any help is much appreciated...
Scott
Joost Verburg
23rd June 2003 15:50 UTC
Use Delete /REBOOTOK to delete it after a reboot.
ScottO
23rd June 2003 16:06 UTC
>>> Use Delete /REBOOTOK to delete it after a reboot. <<<
I realize that is the command to use, but how do I specify that I want to delete the executable install file??? Delete /REBOOTOK OutFile is what I thought, but alas that does not delete the file...
kichik
25th June 2003 12:54 UTC
You should process $CMDLINE to get the path to the installer. Remove quotes and command line parameters from it and you're good to go.