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
Uninstaller doesn´t do anything
14 posts
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.
As for Steam, there's a script on the Wiki.
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!
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!
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.
The error you see when compiling is from !packhdr because it can't find upx in the path you specified.
do i have to use IfFileExists for every file or can i just look if there are files in the folder i wanna delete?
One file is enough. It's for debugging the script just for the sake of this problem.
uninstaller works now but now i get this error
install function ".GUIInit" not referenced - zeroing code (966-983) out
install function ".GUIInit" not referenced - zeroing code (966-983) out
It's a warning, not an error. You can ignore it or remove that function because it's not used.
the strange thing is that i use it here
!define MUI_CUSTOMFUNCTION_GUIINIT ".GUIInit"
!define MUI_CUSTOMFUNCTION_GUIINIT ".GUIInit"
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.
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?
but now the uninstaller isn´t going into the uninstall section again.
can i force him somehow to go into the section?
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?
can i somehow prompt out which file he is refering to?
MessageBox the path you send to msvfw32.dll::MCIWndCreate. According to your old script, it's $PLUGINSDIR\${SND_NAME}.
i finally fixed it
just had a typo
now the installer is fully working
thx to everyone
just had a typo
now the installer is fully working
thx to everyone