Skip to content

Load assembly file on button event in dialog #1673

Answered by oleg-shilo
bhagatus asked this question in Q&A
Discussion options

You must be logged in to vote

It means that the location of the assembly is wrong (and the message just incorrectly reports the error). Or indeed the permissions are not set as you expected. As you can see it's not WixSharp but CLR who throws the exception.

I suggest you do a simple experiment. Add the assembly as a new File(...) so your installer will deploy it to the target dir. Then in your click handler load the assembly from the known location and do your invoke.

I have also attached the sample project that shows you the technique:

WixSharp Setup2.zip

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bhagatus
Comment options

Answer selected by bhagatus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants