Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 6th July 2006, 10:28   #1
cutie
Junior Member
 
Join Date: Jul 2006
Posts: 5
Uninstall Pocket PC application leave behind the application directory

I have successfully install my Pocket PC application.
Unfortunately, when i uninstall it, the application directory cannot be deleted. It says the files is in use.

The directory that is left behind is:
\Program Files\MyApp\Images\

The question is did i left out something in the uninstall section of .nsi file?

Can any1 provide me with an example of the uninstall section?

Thanks in advance.
cutie is offline   Reply With Quote
Old 6th July 2006, 17:04   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Is that directory the working directory of another running program or your installer? To change the working directory of your installer, use SetOutPath. You can set it to $TEMP, for example.

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
Old 9th July 2006, 17:41   #3
onad
Senior Member
 
onad's Avatar
 
Join Date: Dec 2004
Location: Turkey
Posts: 447
Also make sure you use the latest available NSIS version, this to avoid some strange issue connected to this subject, and ofcourse follows kichik's tips...

"Just do it"
onad is offline   Reply With Quote
Old 12th July 2006, 01:49   #4
cutie
Junior Member
 
Join Date: Jul 2006
Posts: 5
sorry for the late reply, been a long weekend holiday for me

kichik,

i not sure i understand fully. Do you mean i need to SetOutPath in my Uninstall section? \Program Files\MyApp\ is my application folder where the exe file is in and all the subfolders. \Program Files\MyApp\Images\ is the folder left behind when i uninstall.

Onad,

You are right. I am using an earlier version, 2.15 because the chap before use this version. Do you think i will have any issues if i upgrade? I just don't want to have any hassle because the deadline is near and i don't want to screw up this late. (-.-")
cutie is offline   Reply With Quote
Old 14th July 2006, 01:07   #5
cutie
Junior Member
 
Join Date: Jul 2006
Posts: 5
well... i have done more test on this and i found out the uninstall section is for the desktop version. Do any1 know how to control uninstallation for the Pocket PC side?
cutie is offline   Reply With Quote
Old 19th July 2006, 14:45   #6
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
No, what I'm saying is that you need to use SetOutPath to set the working directory of the uninstaller, if it's set to that directory. If you don't, you won't be able to delete the directory.

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