-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AppSetup in dll not being called #222
Comments
@stefanolson I'm seeing some failing tests with the IAppSetup bits. Let me investigate as it's probably something that's come in as part of the renaming of things. |
@stefanolson could you also have a look in the Squirrel logs to see if (as I suspect) there's a ReflectionTypeLoadException like this:
https://github.com/squirrel/Squirrel.Windows/wiki/Diagnostics-and-Tracing |
@shiftkey Yes: Which is the EXE file which doesn't actually contain the appsetup. The app setup is contained in SetupDll.dll and it doesn't appear to try and load that DLL as it is not mentioned at all in the log. At one point I did have the appsetup in the EXE, but still had the same exceptions. No idea why because the application runs perfectly fine, so all the DLLs are there. |
Oooh, I know this one! We only scan As we really want people to not have |
@shiftkey Well that would certainly explain it! I will try putting the code in an EXE next week and see if I can get it to work in the meantime |
@shiftkey using a .exe works! Yey! A DLL would be better, so I'll change back to that when a future release checks for DLLs. But at least it works in the meantime. Thanks |
@stefanolson great! I'll leave this open as a reminder to
|
In this issue I was advised to create a dll containing an IAppSetup derived class: Squirrel/Squirrel.Windows#215.
So I have done this, but my .dll never gets called as far as I can tell because the shortcut name is not used:
In the install log, my DLL is never mentioned, but it does have lots of references to a particular DLL that can't load (one of mine - SharedServerClasses).
What can I do to tell it to load my DLL?
Stefan
The text was updated successfully, but these errors were encountered: