Details
Description
I'd like to add a feature of installing files in Windows using the Windows Setup API, see http://msdn.microsoft.com/en-us/library/cc185682(VS.85).aspx. This API is used by native Windows installers to overwrite files after reboot which are blocked by running processes during install time.
I have already an own Java-based implementation of Ant tasks for this, using a native DLL over JNI. This works quite good, it's used in professional environments delivered to customers.
The problem to use these Ant tasks in IzPack as AntActionListener is that files must be added in install.xml in a conventional way, but saved in a temporary location, and then copied over with the Win Setup API Ant tasks. This works and I use this, but there's lost different funtionality of IzPack as the usage of automatically generated uninstallers.
Can some project member give me a more detailed guideline how and where to place this, before I start with some local patches?
I imagine to integrate this directly into install.xml as some special element as a complement of the already existing tags <fileset>, <singlefile> and <file>, which is packed into the installer jar but handled different during installation.
Thanks
Issue Links
- is superceded by
-
IZPACK-520
Implement basic upgrade handling
-
- relates to
-
IZPACK-405
Add -console-auto option to read options from system properties
-
Hi René,
From the MSDN link that you gave, I read that this API should not be used anymore:
I guess that indeed you need to complement the existing tags as you suggested.
You can manipulate the uninstaller (see how the registry listeners work).
I have one further question: how would your change work on other systems than Windows? I guess such files are somehow OS-specific, but sometimes they may not. What do you think?
Cheers