MalaKobyla
12th March 2007 15:21 UTC
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 15:28 UTC
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 17:07 UTC
Dll stays still. I ma using two dll (AccessControl.dll, GameuxInstallHelper.dll) and AccessControl.dll is removed correctly.
MK
kichik
14th March 2007 19:32 UTC
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.