Old 23rd June 2003, 14:21   #1
ScottO
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
ScottO is offline   Reply With Quote
Old 23rd June 2003, 14:50   #2
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
Use Delete /REBOOTOK to delete it after a reboot.
Joost Verburg is offline   Reply With Quote
Old 23rd June 2003, 15:06   #3
ScottO
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...
ScottO is offline   Reply With Quote
Old 25th June 2003, 11:54   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
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
kichik is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump