Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 10th July 2012, 11:02   #1
GoldkinG
Junior Member
 
Join Date: Jan 2012
Posts: 7
how to use uninst.exe in separate folder of same application path

Hi,

In my application i have to keep my uninst.exe file in uninstall folder of the application path.
I tried but i'm not getting the uninst.exe file and uninstall folder. how to place..

Thanks in advance...
GoldkinG is offline   Reply With Quote
Old 10th July 2012, 12:35   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
WriteUninstaller? Note that it requires a full path not a relative one.

Stu

Need an installer? http://www.afrowsoft.co.uk
Afrow UK is offline   Reply With Quote
Old 20th July 2012, 10:31   #3
saran4u
Junior Member
 
Join Date: Jul 2011
Posts: 8
ya I used the same thing..

Actually i want to create my uninstaller inside the uninstall folder in the Application path.
It's creating but the uninstaller not removing the files from the application path.
saran4u is offline   Reply With Quote
Old 20th July 2012, 18:08   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,775
$instdir in the uninstaller is the folder the uninstaller is in. If you put it in a subfolder you can do:

Quote:
function un.oninit
strcpy $instdir $instdir\..
functionend

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 23rd July 2012, 04:48   #5
saran4u
Junior Member
 
Join Date: Jul 2011
Posts: 8
I changed the string value of $INSTDIR and now it's working fine.

Thanks a lot....
saran4u is offline   Reply With Quote
Reply
Go Back   Winamp 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