Old 24th January 2005, 15:54   #1
HaMz
Junior Member
 
Join Date: Jan 2005
Posts: 2
Question Exec and Delete help

Hey... Im kinda new to NSIS and i was wondering what kind of script i would have to compile if i wanted to install some files, run a file from that temporary directory and delete the temp directory when the excecuted program ends. I'm trying to experiment but cant seem to get it right... also need to know which part of the script to put it in
HaMz is offline   Reply With Quote
Old 24th January 2005, 16:43   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
There are tonnes and tonnes of examples in your Examples folder, on the Archive. You should check the readme (NSIS.chm) for reference.

There's Exec, Delete commands for one.
Also $TEMP for the current temp folder...

-Stu
Afrow UK is offline   Reply With Quote
Old 6th February 2005, 09:12   #3
HaMz
Junior Member
 
Join Date: Jan 2005
Posts: 2
noo...

Sorry... still cant get it to work!!! i'm going to attach my NSIS document along so that you can take a look at where i went wrong
Attached Files
File Type: nsi modern user interface nsis script.nsi (838 Bytes, 109 views)
HaMz is offline   Reply With Quote
Old 10th February 2005, 18:29   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
You forgot to use SetOutPath before the File command. Besides that, with your usage of File /r, the entire MicroAngelo directory will be copied. This means the executable won't be in $INSTDIR\setup.exe but in $INSTDIR\MicroAngelo v5.59\setup.exe.

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