Changeset 388 for sans/Dev/trunk/NCNR_User_Procedures/SANS/Analysis
- Timestamp:
- Jun 19, 2008 3:10:46 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/SANS/Analysis/Models/Packages/NCNR_Install.ipf
r384 r388 10 10 // - lots more diagnostics added 11 11 12 Function InstallNCNRMacros() 12 Function InstallNCNRMacros(forceInstall) 13 Variable forceInstall // if == 1, install whatever possible, even if R/W errors from the OS 13 14 14 15 //first step, check for Igor 6!!! … … 44 45 endif 45 46 46 if(UP_err != 0 || IH_err != 0 || IE_err != 0) 47 alertStr += "You will need to install manually." 48 DoAlert 0,alertStr 49 return(0) 47 if(forceInstall == 0) 48 if(UP_err != 0 || IH_err != 0 || IE_err != 0) 49 alertStr += "You will need to install manually." 50 DoAlert 0,alertStr 51 return(0) 52 endif 50 53 endif 51 54 … … 263 266 case 2: // mouse up 264 267 // click code here 265 InstallNCNRMacros( )268 InstallNCNRMacros(0) 266 269 break 267 270 endswitch … … 553 556 return(V_flag) 554 557 end 558 559 // this will "force" an install, even if there are R/W errors 560 Macro ForceInstall() 561 562 Execute "InstallNCNRMacros(1)" 563 end
Note: See TracChangeset
for help on using the changeset viewer.