Archive: deleting install file after install


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


Use Delete /REBOOTOK to delete it after a reboot.


>>> 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...


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.