简体   繁体   中英

Custom updates.xml for user (Install4J)

I'm trying to implement a control of version per user, the problem is that I only know the user's ID when he runs the executable. To do that have some options but I don't know witch one is the best and if it will work:

Option 1: Modify URL for updates.xml in runtime. It may be some variables on url ( http://server.com/updates.xml?client=1 ) or change the url ( http://server.com/updates-1.xml ). It's possible? How can I set this variable on install4J context from my application and make updater installer use the same context?

Option 2: In runtime on my application I download the updates.xml manually but how can I save on installer variable named "updateDescriptor" inside install4j context? The updater installer will use the same updateDescriptor that I set or will download it again from the URL for updates.xml ?

Option 3: Same as option 2 but instead save on context variable, I could save as a file on the application's folder and pass the file as argument like that on URL for updates.xml , but how could I know witch folder is the application installed?

Thanks a lot!

Please see

install4j - file with update placed in my local directory

for how to change the URL for downloading updates.xml at runtime.

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