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]: Path[Next]: Registry
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
\->Source Code->Commands->Platform

The "Platform" Command

This command is used to supply a list of all possible platforms where any of your MSIs might be supported.

You might consider "WINDOWS XP" to be a platform or your company might define other types of boxes such as "INTERNET SERVERS" etc.

Your MSI's version file will then then define which of these platforms it is supported on. You should also see the "Enable Platform Definition Creation" section.

This command takes these parameters:

Once all platforms have been defined you must use the command "PlatformProcessing" (no parameters).

EXAMPLE

;--- WIN2000 ----------------------------------------------------------------
#define  PD_WIN2000  Windows\2000
<$Platform "WINDOWS_2000_SERVER" DESC=^Windows 2000 Server^ PLATDIR="<$PD_WIN2000>\Servers">
<$Platform "WINDOWS_2000_PRO"    DESC=^Windows 2000 PRO^    PLATDIR="<$PD_WIN2000>\PRO">
#(
   <$Platform "WINDOWS_2000"    DESC=^Windows 2000 (Server/PRO)^
               Contains="WINDOWS_2000_SERVER WINDOWS_2000_PRO"
   >
#)

;--- WINXP ------------------------------------------------------------------
#define  PD_WINXP  Windows\XP
<$Platform "WINDOWS_XP_SERVER" DESC=^Windows XP Server^ PLATDIR="<$PD_WINXP>\Servers">
<$Platform "WINDOWS_XP_PRO"    DESC=^Windows XP PRO^    PLATDIR="<$PD_WINXP>\PRO">
#(
   <$Platform "WINDOWS_XP"    DESC=^Windows XP (Server/PRO)^
               Contains="WINDOWS_XP_SERVER WINDOWS_XP_PRO"
   >
#)

;--- WIN?? (Others + internal platform names etc) ---------------------------
;...

;--- Now Do a group for all WINDOWS (group can contain groups) --------------
#(
   <$Platform "WINDOWS_ALL" DESC=^Any Windows workstations or servers^
               Contains="WINDOWS_2000 WINDOWS_XP"
   >
#)

;--- Finished ---------------------------------------------------------------
<$PlatformProcessing>


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]: Path[Next]: Registry


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.