简体   繁体   中英

Use HTTP Request in auto update feature of Install4j

I managed to use the auto update feature of Intsall4J by setting URL of updates.xml. For testing I used server (to host Installer.exe and updates.xml) with anonymous access. It worked fine.

But now requirement is that server needs HTTP request with Authorization header.

Is it possible to use HTTP request with Authorization header in auto update feature?

HTTP authentication is supported by downloads, the updater will ask the user for user name and password.

If you want to hard-code the login in the installer, you can add a "Run script" action to the startup node and execute

System.getProperty("serverAuthUser", "user name");
System.getProperty("serverAuthPassword", "password");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM