WiX ManagedBootstrapper SetDownloadSource confusion

懵懂的女人 提交于 2019-12-08 04:32:08

问题


I am a bit confused by the method Engine.SetDownloadSource(). What I am trying to do is change the download URL for the bundled packages from an external website to an internal one. (If there is an easier way to do this, I am open to other suggestions).

Now for the problem. When calling this method it is asking for a user and password. I am not sure where I should get this info from.

string downloadSource = Path.Combine(WebSitePath(), "WebSetup/WebSetupData/", Path.GetFileName(args.DownloadSource));

Engine.SetDownloadSource(args.PackageOrContainerId, args.PayloadId, downloadSource, user, password);

WebSitePath() simply returns the base URL for the website. I can't find any hint about what username and password the MBA would use if I didn't change the link, and likewise I am not sure how to tell it to use the current windows user to download from the new link. Any help would be greatly appreciated.


回答1:


Username and password are optional to support basic or digest HTTP authorization. Set them to null if you don't want to provide a user/password combination.



来源:https://stackoverflow.com/questions/13346168/wix-managedbootstrapper-setdownloadsource-confusion

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!