|
|
#1 |
|
Junior Member
Join Date: Jun 2003
Location: MD
Posts: 2
|
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 |
|
|
|
|
|
#2 |
|
NSIS MUI Dev
Join Date: Nov 2001
Posts: 3,717
|
Use Delete /REBOOTOK to delete it after a reboot.
|
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jun 2003
Location: MD
Posts: 2
|
>>> 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... |
|
|
|
|
|
#4 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
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.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|