- NSIS Discussion
- Uninstaller doesn´t do anything
Archive: Uninstaller doesn´t do anything
cctnt
30th September 2006 15:15 UTC
Uninstaller doesn´t do anything
Hello, i´m currently working on a installer for my friends mod and now i´ve a strange "bug", the uninstaller doesn´t remove anything. It just plays the uninstall music and thats all.
maybe you can point me to the mistake i´m doing?
and maybe you can point me to a better way to find the modinstallpath for steam.
i attach my setup file.
greets
cctnt
kichik
30th September 2006 15:36 UTC
The uninstaller deletes nothing because you gave it the wrong path to delete. $ISNTDIR already contains the fp directory in its path. MessageBox $INSTDIR in the uninstaller to see what its value is.
As for Steam, there's a script on the Wiki.
cctnt
30th September 2006 17:32 UTC
i did like you said and it prompts me the correct directory.
but still it doesn´t remove anything
i redid the code a bit in the meanwhile and still it doesn´t work.
here´s the new setup.nsi
while compiling i found this error.
Removing unused resources... Done!
Generating language tables... Done!
System can not find defined path.
Generating uninstaller... Done!
kichik
30th September 2006 18:34 UTC
The last version of your script seems to have $INSTDIR set right. It seems unreasonable that it won't be able to delete all of the files because they're in use. The path must be wrong somehow. Use IfFileExists to make sure the file you're trying to delete is really there.
The error you see when compiling is from !packhdr because it can't find upx in the path you specified.
cctnt
30th September 2006 19:18 UTC
do i have to use IfFileExists for every file or can i just look if there are files in the folder i wanna delete?
kichik
30th September 2006 19:20 UTC
One file is enough. It's for debugging the script just for the sake of this problem.
cctnt
30th September 2006 19:51 UTC
uninstaller works now but now i get this error
install function ".GUIInit" not referenced - zeroing code (966-983) out
kichik
30th September 2006 19:55 UTC
It's a warning, not an error. You can ignore it or remove that function because it's not used.
cctnt
30th September 2006 19:59 UTC
the strange thing is that i use it here
!define MUI_CUSTOMFUNCTION_GUIINIT ".GUIInit"
kichik
30th September 2006 20:21 UTC
Works fine for me with your last script... Make sure that line is located above the MUI_LANGUAGE macro insertion. If it still doesn't work, attach your new script.
cctnt
30th September 2006 20:36 UTC
that fixed it thank you
but now the uninstaller isn´t going into the uninstall section again.
can i force him somehow to go into the section?
cctnt
1st October 2006 09:41 UTC
ok fixed that but now i get a mci error that a file isn´t found and i should look if the path and filename is correct.
can i somehow prompt out which file he is refering to?
kichik
6th October 2006 16:19 UTC
MessageBox the path you send to msvfw32.dll::MCIWndCreate. According to your old script, it's $PLUGINSDIR\${SND_NAME}.
cctnt
6th October 2006 18:01 UTC
i finally fixed it
just had a typo
now the installer is fully working
thx to everyone