Hello, xml code below define a installlog and uninstalllog, but they can't be removed even after a successfule installation and unstallation. why?

 <installationLogFile>${user_home_directory}/myinstall.log</installationLogFile>
 <outputDirectory>D:/nightly_build/version</outputDirectory>
 <removeLogFile>1</removeLogFile>
 <singleInstanceCheck>1</singleInstanceCheck>
 <unattendedModeUI>minimalWithDialogs</unattendedModeUI>           <uninstallationLogFile>${user_home_directory}/myuninstall.log</uninstallationLogFile>

asked 25 Apr '12, 23:06

laiyongyong's gravatar image

laiyongyong
1131314
accept rate: 0%


Just to confirm, it is not deleted in any case, neither installation nor uninstallation? If this is the case, could you execute the installer as:

installer.exe --debugtrace debug.txt

And send us the generated file to support@bitrock.com?

link

answered 26 Apr '12, 04:04

juanjo's gravatar image

juanjo ♦♦
5.8k413
accept rate: 23%

Hello, The debug trace send to you already, the installation is OK, just the customize install log can not deleted. your reply is when using the customize install log or unstall log. it can't remove by installer, is it right? but if i don't want the install log locate in the default directory(for example "/tmp" in linux).how can i make that work? thanks in advanced.

your reply here: Hi Malingzhi,

The installer seems to exit at the beginning of the installation. Is that the case? Regarding the log not being deleted, the problem is that the setting controlling the deleting does not apply if a custom log filename is configured. If you just want the log file to be deleted, could you trying removing the <installationlogfilr> setting and checking if that solves the issue?

Best regards,

Juanjo.

link

answered 03 May '12, 03:57

laiyongyong's gravatar image

laiyongyong
1131314
accept rate: 0%

The problem is that the installation log is copied to the final location at the end of the installation so even if you configure the custom location, it wont be moved there until the installation finished. What I meant in my answer is that if the log will just be moved there at the end, and at that point you want to delete it, you could just not configure the custom location. I apologize if I'm missing something very basic in you issue.

link

answered 06 May '12, 17:42

juanjo's gravatar image

juanjo ♦♦
5.8k413
accept rate: 23%

Hi, The guide said:"You can use the <installationlogfile> and <uninstallationlogfile> project properties to specify an alternate location for the log file once the installation has completed. Of course, the initial log file is still created in the temporary directory, because the new location specified with that tag probably does not exist when the installer first runs." so what about removeLogFile? It just delete the initial log file, right?

<project>
   ...
   <removeLogFile>1</removeLogFile>
   ...
</project>
link

answered 10 May '12, 22:21

laiyongyong's gravatar image

laiyongyong
1131314
accept rate: 0%

Yes, that will just delete the original log under the temp directory, not the cutomized one (that is copied there if configuring <installationLogFile>)

(11 May '12, 09:43) juanjo ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×4

Asked: 25 Apr '12, 23:06

Seen: 1,137 times

Last updated: 11 May '12, 09:43