PDA

View Full Version : Basic MSI command line



burked
12-16-2004, 08:01 AM
I want to be be able to set the msi log file during the installation to a dynamic folder. That is, i want the log file written to something like the windows directory on the users machine.

How can i put it in the CMDLINE statement of the ini file so it will be in the windows folder? I've tried %WINDIR% and [WindowsFolder], but neither work.

thanks,

Daren

RobertDickau
12-16-2004, 10:09 AM
What is the specific command you entered? It seems something like:

/L*v "%WINDIR%\everything.log"

should work...

burked
12-16-2004, 10:18 AM
I was not using the quotes around the path...
Works now!

thanks,

D

burked
12-21-2004, 09:58 AM
now that i set the destination of the logfile here, how can i query the msi for the location of the log file?

I'd like to remove the logfile on uninstall, and was planning on doing it in a custom action during uninstall.

thanks,

Daren

RobertDickau
12-21-2004, 10:28 AM
I don't think there's a built-in way to find out where the log file was created; could you just use [%windir]\everything.log or [WindowsFolder]everything.log?

burked
12-21-2004, 10:31 AM
I can use that, i was just hoping there was a more fullproof way of getting the logfile location out of the installer. If the user modifies the setup.ini file, they could change the destination and file name of the log file.

thanks for your reponse,

daren