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
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: msi commandline parameter - error if folder for logfile doesn't exist
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
Mar 08, 2013
09:59 AM
msi commandline parameter - error if folder for logfile doesn't exist
In the MSI commandline parameter section of the setup.exe tab in releases, I provide a path (C:\Mylogfilepath\install_log.txt) where I want the log file created. If C:\Mylogfilepath doesn't exist when setup.exe is run, I get an error message. If I create C:\Mylogfilepath prior to running setup.exe, everything is good.
Is there a command line parameter that forces the creation of the folder if it doesn't exist or is there some other mechanism to verify that C:\Mylogfilepath exists at runtime so the user doesn't get an error message?
Is there a command line parameter that forces the creation of the folder if it doesn't exist or is there some other mechanism to verify that C:\Mylogfilepath exists at runtime so the user doesn't get an error message?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 08, 2013
05:34 PM
From memory I don't know of a switch to create the log directory. (You can double-check the "Setup.exe and Update.exe Command-Line Parameters" help topic.) I gather common practice for that Setup.exe setting is to use an environment variable (such as %TEMP%) that points to a directory known to exist.
