MAKEMSI quickly and reliably creates MSI files in a non-programmatic way
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
[Bottom][Contents][Prev]: File[Next]: /FileComment
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
\->Source Code->Commands->FileComment

The "FileComment" Command

This command can be used to set the default comment for any file which has not already been given one and applies to these commands:

It can be used to supply default comments for file extensions. Comment searching is case insensitive. This command can be nested to any level.

The macro takes these parameters:

EXAMPLES

;--- Set up some default file comments --------------------------------------
<$FileComment ".txt"  Comment="Text file">
<$FileComment ".exe"  Comment="Executable binary file">
<$FileComment ".dll"  Comment="Dynamic Link Library">
<$FileComment ".htm"  Comment="HTML">
<$FileComment ".html" Comment="HTML">
<$FileComment ".jpg"  Comment="Graphics file">
<$FileComment ".gif"  Comment="Graphics file">
<$FileComment ".asp"  Comment="Active Server Page">

;--- Create component and add some files ------------------------------------
<$Component "Fred" Create="Y" Directory_="INSTALLDIR">
   <$File Source="A file I Installed.txt">
   <$File Source="..\X\Another.txt">
   <$File Source="D:\DBAREIS\tools\where.exe">
   <$File Source="Slides.ppt" Destination="Slides.pps"> ;;Convert powerpoint to "Power Point Show"
   #(
       ;--- This source file has read-only set! -----------------------------
       <$File
                   Source="c:\winnt\welc.exe"
                  Comment=^This file has the read-only attribute set. It should get copied to the file table attributes!^
           CopyAttributes="ReadOnly Hidden"
       >
   #)

   ;--- Add some other files (demo default comment) -------------------------
   <$FileComment Comment="File required by xyz">
         <$File Source="required.exe">
         <$FileComment Comment="">
            <$File Source="NoDefaultCommentForThisFile.txt">
         <$/FileComment>
         <$File Source="required.dll">
   <$/FileComment>
<$/Component>


Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.Please email me any feedback, additional information or corrections.
See this page online (look for updates)

[Top][Contents][Prev]: File[Next]: /FileComment


MAKEMSI© is (C)opyright Dennis Bareis 2003-2008 (All rights reserved).
Saturday May 28 2022 at 3:11pm
Visit MAKEMSI's Home Page
Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.