PDA

View Full Version : Setup log not being generated


gott
09-13-2007, 02:26 PM
I have the option selected during the installation process under Settings > Log Files to have a setup log automatically created. However, the log is not being created. I have attempted to change the path of the setup file to numerous locations, but it is still not generated by the installer. What could be the problem to this?

jassing
09-13-2007, 07:43 PM
I have the option selected during the installation process under Settings > Log Files to have a setup log automatically created. However, the log is not being created. I have attempted to change the path of the setup file to numerous locations, but it is still not generated by the installer. What could be the problem to this?

What is the log file name you've entered?

gott
09-14-2007, 08:17 AM
It is just the default name, along with the destination. For example, %ProgramHome%\%ProductName% Set Up Log.txt. I have the same path associated with the uninstall log, and that works fine.

csd214
09-14-2007, 08:52 AM
The setup log path/file name has to be known immediately when the startup.exe is opened (the first entry is “Success Setup started: <exe with full path>”. The default value is %WindowsFolder%\%ProductName%\Setup Log.txt.

You have %ProgramHome%\%ProductName%\Set Up Log.txt. Is %ProgramHome% a value defined in the Session Variables screen or is the name depending on a user choice later on in the setup process?

Usually I have the log file like “%UninstallPath%\Setup Log.txt” with %UninstallPath% = %WindowsFolder%\IR_Setup\%CompanyName%\%ProductNam e%.

I have never had any problems with the log files and I love to use them extensively with SetupData.WriteToLogFile().
:yes

gott
09-14-2007, 09:24 AM
I actually have the variable that I am using to install the setup log as an action that is set on startup. This is where the variable is defined. I would like to know if there would be another way, possible as an item in Action > On Startup to define where this log file will reside. The folder does exist upon startup of the application, so I don't believe this to be an issue.

gott
09-14-2007, 09:55 AM
I've attempted to create the file to the application drive and that seems to work. Then, during an Action > On Post Install I've attempted to use the File>move command to relocate this log to the Program home directory, but it does not appear to work. Any other suggestions?

jassing
09-14-2007, 10:13 AM
I actually have the variable that I am using to install the setup log as an action that is set on startup. This is where the variable is defined. I would like to know if there would be another way, possible as an item in Action > On Startup to define where this log file will reside. The folder does exist upon startup of the application, so I don't believe this to be an issue.

"on startup" is past the point of when logging 'starts' -- you need to define the variable in the session variable screen.

jassing
09-14-2007, 10:15 AM
I've attempted to create the file to the application drive and that seems to work. Then, during an Action > On Post Install I've attempted to use the File>move command to relocate this log to the Program home directory, but it does not appear to work. Any other suggestions?

so you assume everyone installing will have full rights to the root application drive. You make a lot of assusptions.

Write the log file to the temp directory & then use
File.MoveOnReboot()

The reason you can't move it is because the file is in use until the installer is closed. Check your error messages and you'd find out more information on the "whys" of your questions...

gott
09-14-2007, 10:24 AM
so you assume everyone installing will have full rights to the root application drive. You make a lot of assusptions.


I don't recall making any sorts of assumptions based on this installation. The installer will not execute unless the user had Administrative privileges, if this is what you are after. Also, the installer does not require a reboot after completing, so File.MoveOnReboot() will most likely not be the option I need.

jassing
09-14-2007, 10:46 AM
I don't recall making any sorts of assumptions based on this installation. The installer will not execute unless the user had


Forgive me, I assumed the installer in This Thread (http://www.indigorose.com/forums/showthread.php?t=21187&highlight=c%3A%5Cprogram+files) was the same one here, since you appear to be so new to building installers -- in that thread you assume everyone installs to c:\program files

Also, the installer does not require a reboot after completing, so File.MoveOnReboot() will most likely not be the option I need.

Well; I'm out of ideas short of writing another exe that you launch "on shutdown" have it sleep or 30 seconds or so and then copy the file from temp to whereever.

Good luck, I'm out of ideas for you.