This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Re: hi i am having a problem with the modify text file inside an archive problem
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 19, 2007
03:56 AM
hi i am having a problem with the modify text file inside an archive problem
hi,
I have a requirement in which i need to change a configuration file inside an arcihve depending on the system (so as to make my installer system independent)
so this is what i did:
In the install task i have included the jar file say xyz.jar
and i added a task as modify text file in archive xyz.jar (yyyConfig.properties)
installed archive: $USER_INSTALL_DIR$$/$xyz.jar
archive path: $USER_INSTALL_DIR$$/$xyz.jar$/$yyyConfig.properties
in the configure button i gave search for "somestring" and replace with $USER_INSTALL_DIR$
CHECKED Substitute installanywhere variables in file
and the error i got is
Modify Text File - In Archive: xxx.jar
Status: ERROR
Additional Notes: ERROR - There was a problem editing F:\testfolder\xxx.jar: java.util.zip.ZipException: Entry: F:/testfolder/xxx.jar/yyyConfig.properties not found in zip
can anyone please suggest some solution
I have a requirement in which i need to change a configuration file inside an arcihve depending on the system (so as to make my installer system independent)
so this is what i did:
In the install task i have included the jar file say xyz.jar
and i added a task as modify text file in archive xyz.jar (yyyConfig.properties)
installed archive: $USER_INSTALL_DIR$$/$xyz.jar
archive path: $USER_INSTALL_DIR$$/$xyz.jar$/$yyyConfig.properties
in the configure button i gave search for "somestring" and replace with $USER_INSTALL_DIR$
CHECKED Substitute installanywhere variables in file
and the error i got is
Modify Text File - In Archive: xxx.jar
Status: ERROR
Additional Notes: ERROR - There was a problem editing F:\testfolder\xxx.jar: java.util.zip.ZipException: Entry: F:/testfolder/xxx.jar/yyyConfig.properties not found in zip
can anyone please suggest some solution
(13) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 19, 2007
05:23 AM
Would it be possible for you to post your project?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 19, 2007
07:54 AM
hi ,
do you want me to post the installer build iap.xml but i have already posted the steps which i am doing exactly as i did nothing did i miss but still can you tell me how to upload that project.iap_xml .
It would really be a pleasure if you can help me in cracking the "modify text file in an archive" .I did replicate the same as i had said.
do you want me to post the installer build iap.xml but i have already posted the steps which i am doing exactly as i did nothing did i miss but still can you tell me how to upload that project.iap_xml .
It would really be a pleasure if you can help me in cracking the "modify text file in an archive" .I did replicate the same as i had said.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 19, 2007
08:06 AM
Hi,
it would really be a pleasure if someone can help in cracking the jinx of modifying text file in an archive.
it would really be a pleasure if someone can help in cracking the jinx of modifying text file in an archive.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 19, 2007
10:24 AM
It looks like you have the Archive Path set wrong. This is the path inside the archive. So, remove the $USER_INSTALL_DIR$$/$xyz.jar$/$ so that you only have yyyConfig.properties. Also, make sure that that xyz.jar is installed before you try to modify it.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 20, 2007
01:18 AM
hi,
as you said in the install task i added the file saying that xxx.jar and in the post install task i added "modify text file in archive "
installed archive----$USER_INSTALL_DIR$$/$xxx.jar
Archive path -----yyyconfig.properties
i tried your option but it did not work.
Even i think that my archive path is wrong but can you help me in setting it right.
i got the exception in the installer log as
Modify Text File - In Archive: xxx.jar
Status: ERROR
Additional Notes: ERROR - There was a problem editing F:\temp\xxx.jar: java.util.zip.ZipException: invalid entry compressed size (expected 2644 but got 2630 bytes)
as you said in the install task i added the file saying that xxx.jar and in the post install task i added "modify text file in archive "
installed archive----$USER_INSTALL_DIR$$/$xxx.jar
Archive path -----yyyconfig.properties
i tried your option but it did not work.
Even i think that my archive path is wrong but can you help me in setting it right.
i got the exception in the installer log as
Modify Text File - In Archive: xxx.jar
Status: ERROR
Additional Notes: ERROR - There was a problem editing F:\temp\xxx.jar: java.util.zip.ZipException: invalid entry compressed size (expected 2644 but got 2630 bytes)
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 20, 2007
03:49 AM
This was precisely why I was asking for you your .iap_xml file. We might be easier and faster for us to help you if we get a chance to look at your project. And as this forum's software has a limitation on type of files to be uploaded I suggest you zip your project first.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 20, 2007
04:54 AM
hi,
i tried to do what you said but still it is showing an error in the install log saying that
Status: ERROR
Additional Notes: ERROR - There was a problem editing F:\temp\temp2\xxx.jar: java.util.zip.ZipException: Entry: ./yyyConfig.properties not found in zip
i tried to do what you said but still it is showing an error in the install log saying that
Status: ERROR
Additional Notes: ERROR - There was a problem editing F:\temp\temp2\xxx.jar: java.util.zip.ZipException: Entry: ./yyyConfig.properties not found in zip
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 20, 2007
09:25 AM
Ok. What pv7721 said about posting your project will probably help faster. If you can't post your project, post a sample project that does just what you are having problems with.
How was your original jar file created? The compression size entry error probably means the xxx.jar is corrupted somehow. Was it modified with winzip at anytime?
Also, Are we correct in assuming that you are installing to f:\temp?
How was your original jar file created? The compression size entry error probably means the xxx.jar is corrupted somehow. Was it modified with winzip at anytime?
Also, Are we correct in assuming that you are installing to f:\temp?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 21, 2007
07:09 AM
hello everyone,
I tried whatever i can but still unable to crack it can anyone help me out.
I tried whatever i can but still unable to crack it can anyone help me out.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 21, 2007
08:27 AM
We still don't see your project posted or if you are not allowed to post your project (which is perfectly understable) you should post a sample project which reproduces your issue. Thanks!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 22, 2007
01:55 AM
hello,
I have tried that option also but still its not working . can you suggest me why.
I have tried that option also but still its not working . can you suggest me why.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 22, 2007
05:05 AM
What exactly do you mean by: "I have tried that option but still its not working"? Have you tried to upload your project but you haven't succeed? If this is the case, like I've already told you, you will need to zip your .iap_xml file before attempting to attach it to your post.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 30, 2007
12:08 AM
hello,
This is what i am trying to do :
Pre install task:
I give a "Get User Input Advanced " panel and capturing user input in user input variables for a file userinput.properties and delimiter.xml both of which are contained in a jar file called dummy.jar
In the install task:
i added the dummy.jar which contains userinput.properties
and delimiter.xml.
In the post install task:
i added an action " modify text file in archive" and gave the path to "userinput.properties" and "delimiter.xml " and i added configure strings
and then search for and replace wiith but it does not happen and the action fails.
This is what i am trying to do :
Pre install task:
I give a "Get User Input Advanced " panel and capturing user input in user input variables for a file userinput.properties and delimiter.xml both of which are contained in a jar file called dummy.jar
In the install task:
i added the dummy.jar which contains userinput.properties
and delimiter.xml.
In the post install task:
i added an action " modify text file in archive" and gave the path to "userinput.properties" and "delimiter.xml " and i added configure strings
and then search for and replace wiith but it does not happen and the action fails.