Archive: GameuxInstallHelper stays in plugindir


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


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


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


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.