-
Notifications
You must be signed in to change notification settings - Fork 70
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
Updater doesnt work (Path may contain an empty string or just a space.) #101
Comments
Hi, this is not quite easy to trace down as there is not enough information. What does the structure of your package look like? Especially the files you added. |
My appointment for this morning got cancelled, so I got some spare time to look into this. I recognized that one can see all arguments of nUpdateInstaller in the UAC, so my best guess was to check if those are right. I found out that startupPath was empty and that led me into UpdateManager.cs. Here I found out, that the executablePath is determined by the EntryAssembly. That path is available while debugging the app but not in a release build. I guess this is because I use a single binary build. Fortunately the UpdateManager accepts a Now nUpdateInstaller is capable of finding the correct paths and every works like a charm! |
@gerricom Ah, alright! Thanks for investigating further. I will note this because it should be documented in the README. Or would you mind opening a pull request for documenting what you found out? Also the empty path should be handled in the beginning as soon as the initialization is done and not throw a cryptic exception later. I added the option exactly for this case that the path cannot be determined automatically by any circumstances, but I was not aware of this specific case. |
I added a paragraph to the README and send you a PR.
I'll look into this next week - I guess a MessageBox will do? |
I am getting an error when my application is attempting to update.
This is the full stacktrace:
The text was updated successfully, but these errors were encountered: