Skip to content

Commit a5de3fe

Browse files
committed
Fix installer because macros aren't available during bootstrapping
1 parent 373a05e commit a5de3fe

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

preload/cls/IPM/Installer.cls

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
Include %IPM.Common
2-
31
Class IPM.Installer Extends %Projection.AbstractProjection
42
{
53

@@ -11,6 +9,10 @@ Parameter VERSION;
119
/// Number of files for autoinstall release
1210
Parameter FILESCOUNT = 0;
1311

12+
/// IPM's own module name. Mirrors $$$IPMModuleName in %IPM.Common — duplicated here
13+
/// because this class is loaded during bootstrapping before that include is available.
14+
Parameter MODULENAME = "zpm";
15+
1416
/// Application Definition
1517
XData PM [ XMLNamespace = INSTALLER ]
1618
{
@@ -489,7 +491,7 @@ ClassMethod InstallScripts() As %Status
489491
}
490492
try {
491493
// The scripts are staged under ${ipmdir}bin/ by <FileCopy> in module.xml.
492-
set module = ##class(%IPM.Storage.Module).NameOpen($$$IPMModuleName, , .openSC)
494+
set module = ##class(%IPM.Storage.Module).NameOpen(..#MODULENAME, , .openSC)
493495
$$$ThrowOnError(openSC)
494496
if '$isobject(module) {
495497
write !,"Could not resolve module directory for script installation."

0 commit comments

Comments
 (0)