Changeset 8996
- Timestamp:
- 08/05/11 17:59:32 (23 months ago)
- Location:
- branches/Orange-Branch/install-windows
- Files:
-
- 2 modified
-
OrangeFS-Client.ism (modified) (previous)
-
OrangeFS-Client/Script Files/Setup.Rul (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/Orange-Branch/install-windows/OrangeFS-Client/Script Files/Setup.Rul
r8992 r8996 23 23 /* export prototype MyFunction(HWND); */ 24 24 25 prototype InstallServices(); 25 prototype InstallServices(); 26 prototype InstallDriver(); 27 28 // global variables 29 30 // 64-bit flag 31 BOOL bIs64Bit; 32 // Program Files and System directories for appropriate architecture 33 STRING szProgramFilesDir, szSystemDir; 26 34 27 35 //--------------------------------------------------------------------------- … … 33 41 function OnBegin() 34 42 begin 35 // TO DO: you may change default non-UI setting, for example 36 // 37 // You may also perform your custom initialization steps, check requirements, etc. 43 // Set directory locations based on architecture (32/64-bit) 44 bIs64Bit = SYSINFO.bIsWow64; 45 if (bIs64Bit) then 46 szProgramFilesDir = PROGRAMFILES64; 47 szSystemDir = WINSYSDIR64; 48 else 49 szProgramFilesDir = PROGRAMFILES; 50 szSystemDir = WINSYSDIR; 51 endif; 38 52 end; 39 53 //--------------------------------------------------------------------------- … … 136 150 return 0; 137 151 end; 138 152 153 function InstallDriver() 154 STRING svExePath; 155 begin 156 svExePath = szProgramFilesDir ^ "\\Dokan\\DokanLibrary\\dokanctl.exe"; 157 158 LaunchAppAndWait(svExePath, "/i d", LAAW_OPTION_WAIT); 159 end; 160 139 161 function InstallServices() 140 162 NUMBER rc, line, error; … … 145 167 "DokanMounter", 146 168 "OrangeFS/Dokan driver interface service", 147 PROGRAMFILES +"\\Dokan\\DokanLibrary\\mounter.exe",169 szProgramFilesDir ^ "\\Dokan\\DokanLibrary\\mounter.exe", 148 170 TRUE, 149 171 ""); … … 152 174 Sprintf(errText, " (%d)", error); 153 175 MessageBox("DokanMounter service installation failed:\n" + 154 FormatMessage(error) + errText, SEVERE); 176 FormatMessage(error) + errText + " " + 177 szProgramFilesDir + "\\Dokan\\DokanLibrary\\mounter.exe", SEVERE); 155 178 endif; 156 179 endif; … … 159 182 "OrangeFS Client", 160 183 "Allows transparent access to Orange file systems.", 161 INSTALLDIR +"\\orangefs-client -service",184 INSTALLDIR ^ "\\orangefs-client -service", 162 185 FALSE, 163 186 ""); … … 166 189 Sprintf(errText, " (%d)", error); 167 190 MessageBox("OrangeFS Client service installation failed:\n" + 168 FormatMessage(error) + errText, SEVERE); 191 FormatMessage(error) + errText + " " + 192 INSTALLDIR + "\\orangefs-client -service", SEVERE); 169 193 endif; 170 194 endif; … … 188 212 bOpt2 = FALSE; 189 213 190 InstallServices(); 214 InstallServices(); 215 216 InstallDriver(); 191 217 192 218 if ( BATCH_INSTALL ) then
