Hi,
I'm needing the PAL to register and unregister a DLL on launch. I have added RegisterDLL to launcher.ini (though it was supported in v2.1) but it still does not work. Is their anyway to get it to reg/unreg dll(s)?
Thanks
[RegisterDLL]
1=%PAL:AppDir%\SmartFTP\sfFavorites.dll
Automatically registering DLLs is not supported yet. You'll need to use custom code to call
RegSvr32
.Previously known as kAlug.
Ok so added in the "source" folder. PortableApps.comLauncherCustom.nsh
Code used is, but still does not register on launch. What am I doing wrong?
${SegmentFile}
${SegmentPrePrimary}
RegDLL $AppDirectory\SmartFTP\sfFavorites.dll
!macroend
${SegmentPostPrimary}
UnRegDLL $AppDirectory\SmartFTP\sfFavorites.dll
!macroend
GothicDeath,
Try this,
It works for me in other apps.
Ok, since I still can't get the custom parameters to work right. I was wondering. How do I make the Launcher, launch a start bat file & then a close bat file.
The bat files are going to do all the registration/un-reg of the dlls needed to work.
Try this custom code for the registering:
Previously known as kAlug.
Thanks for trying to help with this kAlug. Well, I gave your code a shot and it still does not reg on launch. Also, tried changing the PrePrimary to PreExec to see if it's a problem registering after the exe launches but still no change.
This is what I have so far.
Edit:
Ok I forgot to state I did notice that the 2.1 Launcher Removes the "PortableApps.comLauncherCustom.nsh" from the Source folder to The launcher folder and its now named "Custom.nsh". Not sure if that is the problem or not.
Read the 2.1 release notes in the manual and you'll see the change of location explained.
PrePrimary is the place it should go. It should not go in PreExec.
DLL server registration is a very troublesome subject. You may need admin rights or you may not.
I am a Christian and a developer and moderator here.
“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1