Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   GameuxInstallHelper stays in plugindir (http://forums.winamp.com/showthread.php?t=267640)

MalaKobyla 12th March 2007 13:21

GameuxInstallHelper stays in plugindir
 
I am using GameuxInstallHelper.dll:

Function .onInit
InitPluginsDir
File /oname=$PLUGINSDIR\GameuxInstallHelper.dll _res\GameuxInstallHelper.dll
FunctionEnd

Section -"aaa"
${If} ${AtLeastWinVista}
SetOutPath $PLUGINSDIR
System::Call "$PLUGINSDIR\GameuxInstallHelper::..."
System::Call "$PLUGINSDIR\GameuxInstallHelper::..."
${EndIf}
SectionEnd

and the GameuxInstallHelper.dll stays in $PLUGINSDIR and this directory is not deleted when the installer exits.

Thanks

MK

demiller9 12th March 2007 13:28

You may need to unload the dll (call it without /NOUNLOAD, or call a special ::unload entry if it has one). And definitely change the working directory away from $PLUGINSDIR before you leave the program, perhaps SetOutPath $TEMP.

Don

MalaKobyla 12th March 2007 15:07

Dll stays still. I ma using two dll (AccessControl.dll, GameuxInstallHelper.dll) and AccessControl.dll is removed correctly.
MK

kichik 14th March 2007 17:32

Add ?u to thw System::Call. That tells System to unload the DLL after it's done. /NOUNLOAD means the System plug-in itself won'r be unloaded.

In any case, all $PLUGINDIR remains are removed at reboot.


All times are GMT. The time now is 05:58.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.