4Misc_Start┬4Platform┬╥@ h4ROGI,,тЧтЧ╦ йЪЪy ▀▄ ·ХХХХрррр4!Ь*.`winspoolHP4MHP4MHP4M°дSОЙ od,,LetterPRIVБ0''''д\KhC²╝яоЪ h4ROGI,,тЧтЧ╦ йЪЪy ▀▄ ·ХХХХрррр4!Ь*.`winspoolHP4MHP4MHP4M°дSОЙ od,,LetterPRIVБ0''''д\KhC²╝яоЪ h4ROGI,,тЧтЧ╦ йЪЪy ▀▄ ·ХХХХрррр4!Ь*.`winspoolHP4MHP4MHP4M°дSОЙ od,,LetterPRIVБ0''''д\KhC²╝яоЪ h4 ROGI,,тЧтЧ╦ йЪЪy ▀▄ ·ХХХХрррр4!Ь*.`winspoolHP4MHP4MHP4M°дSОЙ od,,LetterPRIVБ0''''д\KhC²╝яоЪ^Graph*@@П?П?ммWDashSettings#ЗЪ  !╪┬■/uЭNormalЪЪЪЪ@ ЪArialЪЪЪЪЪЪ<ЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪHHHH$$╪┬■/uЭNormalЪЪЪЪ@ ЪArialЪЪЪЪЪЪ<ЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪHHHH$$444444╪┬ \▀ЭNormalЪЪЪЪ@ ЪArialЪЪЪЪЪЪ<ЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪHHHH$$4 4 4 4 4 4 сhome÷≈dЪЪЪЪеz╪ДC:Documents and Settings:John Weeks:My Documents:Development:XOPs:Data Acquisition:NIDAQ XOP mx 1_0:NIDAQ Tools MX 1_02:C:Documents and Settings:John Weeks:My Documents:Development:XOPs:Data Acquisition:NIDAQ XOP mx 1_0:NIDAQ Tools MX 1_02ллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллГDistPathЁ╚dЪЪЪЪеz╪ДC:Documents and Settings:John Weeks:My Documents:Development:XOPs:Data Acquisition:NIDAQ XOP mx 1_0:NIDAQ Tools MX 1_02:Igor NIDAQ Tools MX:C:Documents and Settings:John Weeks:My Documents:Development:XOPs:Data Acquisition:NIDAQ XOP mx 1_0:NIDAQ Tools MX 1_02:Igor NIDAQ Tools MXлллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллл╖AnalysisskdЪЪЪЪеz╪ДC:Program Files:WaveMetrics:Igor Pro Folder:WaveMetrics Procedures:Analysis:C:Program Files:WaveMetrics:Igor Pro Folder:WaveMetrics Procedures:Analysisлллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллл©ToolsMXPrefPath▀┐dЪЪЪЪеz╪ДC:Documents and Settings:John Weeks:Application Data:WaveMetrics:Igor Pro 6:Packages:WMNIDAQToolsMX:C:Documents and Settings:John Weeks:Application Data:WaveMetrics:Igor Pro 6:Packages:WMNIDAQToolsMXлллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллл▀NIDAQmxInstallSymPathWOdЪЪЪЪеz╪ДC:Program Files:WaveMetrics:Igor NIDAQ Tools MX:C:Program Files:WaveMetrics:Igor NIDAQ Tools MXлллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллллл╕RecentWindowsrDeleteFolder InstructionsFinish UninstallIgor Reference.ihfNIDAQToolsMXReadMe:ReadMe.ifnNo Distribution Files 4Misc_End┬╢XOPState_Start─┬Data BrowserмммммммммммммммммммGizmoммммммммммммммммммммммммммNIDAQmxммммммммммммммммммммммммHDF5мммммммммммммммммммммммммммеData Browser▒root╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ П╜╨ 4XOPState_End┬DV_FlagП?S_waveNamesллллллллллллллллллллS_pathamesлллллллллллллллллллл0C:Program Files:WaveMetrics:Igor NIDAQ Tools MX:S_fileNameллллллллллллллллллллNIDAQToolsMXv100InstallLogПd0TMW????VReadMe.ifnNIDAQToolsMXReadMeNIDAQToolsMXReadMe:ReadMe.ifn+QЫ+QЫ6╡RЁ6╡RЁ$NormalЪЪЪЪт ЪНЪЪЪЪЪЪЪЪ< хBHHHH$$F X· zZЛ  """"""""4VInstalling NIDAQ Tools MX ЪЪЪЪЪЪ╩This Igor experiment file contains procedure code that will copy the NIDAQ Tools MX distribution files into a folder called "Igor NIDAQ Tools MX" in a location parallel to your Igor Pro folder. That is, if you selected the default location for Igor, this installer will create a folder at C:Program Files\WaveMetrics\Igor NIDAQ Tools MX. The installer also puts shortcuts into various folders in your Igor Pro folder. One is a shortcut pointing to the XOP (NIDAQmx.xop) that implements the functions and operations that power NIDAQ Tools MX. Other shortcuts include ones that point to the help files, and to the NIDAQ Tools MX procedure files. This last goes into the WaveMetrics Procedures folder.  HThe procedures do not know how to unpack files from a Zip file. If you have downloaded NIDAQ Tools MX in the form of a Zip file, you must use WinZip or a similar application to unpack the distribution files from the Zip file before running the installation. ┘ЪЪЪЪЪЪ┴ЪЪЪЪЪЪЪЪ╠ЪЪЪЪЪЪнЪЪЪЪЪЪЪЪ ёTo perform the installation, pull down the Macros menu and select Install NIDAQ Tools MX. This will bring up a control panel. Simply click the Install Now button.  ·$The control panel includes a checkbox: "Open Help Files on Startup". If it is checked, shortcuts are installed in the Igor Help Files folder pointing to the NIDAQ Tools MX documentation help files. They will be loaded and available when Igor is started. If the checkbox is not checked, shortcuts to the files will be installed in the Igor Extensions folder, along with a shortcut pointing to the NIDAQmx.xop file. ЪЪЪЪЪЪЪЪЪЪЪЪЪЪ СIn some cases you may not have write permission for the Igor Pro folder or C:Program Files\WaveMetrics. This will cause the installer to fail. You need these permissions; this probably means you need an administrator account on your computer.  Un-installing NIDAQ Tools MX ЪЪЪЪЪЪ ≥This installer also saves uninstall information into your WaveMetrics preferences folder. To un-install, pull down the Macros menu and select Uninstall.  STo allow the un-installer to function, you must enable the DeleteFolder operation.  NTo do that, pull down the Misc menu and select Miscellaneous Settings. In the KMiscellaneous Settings dialog, select the Miscellaneous tab and check the H"Enable DeleteFolder, CopyFolder/O and MoveFolder/O commands" checkbox.  иAlternately, simply find the Igor NIDAQ Tools MX folder at the same level as your Igor Pro folder, and delete it yourself. But first use the un-installer to remove the shortcuts in the Igor Pro folder.Z▄NV╕╝X`( 0 * 2 h p   r z н n v Normal+ЪЪт ЪeArialROGI,,тЧтЧ╦ йЪЪy ▀▄ ·ХХХХрррр4!Ь*.`winspoolHP4MHP4MHP4M°дSОЙ od,,LetterPRIVБ0''''д\KhC²╝яоЪ■ d0TMW????З NoDistFilesNotebookNoDistFilesNotebookNo Distribution Files+QЫ+QЫ  $NormalЪЪЪЪт ЪНЪЪЪЪЪЪЪЪ< хBHHHH$$─<╪Z&╪╪ фффффффф4З ZYou are most likely seeing this notebook because of an error in the installation process:  : Can't find the folder containing the distribution files. ЪЪЪЪЪЪ (This error could result from a variety of problems. The most likely is that you acquired NIDAQ Tools MX by downloading a Zip file, and you are running the installer experiment file (that you are looking at now) by double-clicking InstallUninstallNIDAQ Tools MX directly inside the WinZip window.  That will not work.  >You must unpack the files from the Zip file before proceding.    ГAnother reason for seeing that message might be that you moved the installer experiment from the folder containing the distribution files. The installer code uses the location of the experiment file to find the distribution files.  ╢A variation on that would be copying the installer experiment from the distribution CD before running it. You should run the experiment by double-clicking the file right on the CD.Z╨бJRlt╦юхп╬фeArialROGI,,тЧтЧ╦ йЪЪy ▀▄ ·ХХХХрррр4!Ь*.`winspoolHP4MHP4MHP4M°дSОЙ od,,LetterPRIVБ0''''д\KhC²╝яоЪ╒dTXET????FinishUninstall'FinishUninstallFinish UninstallIgor cannot reliably remove the folder holding the NIDAQ Tools MX files. To finish the un-install, find the folder in the Windows Explorer and delete it. You must quit Igor before deleting the folder. Do not save this experiment file. The folder is here: "dTXET????┬DeleteFolderInstructionsDeleteFolderInstructionsDeleteFolder InstructionsTo allow the uninstaller to function, you must enable the DeleteFolder operation. To do that, pull down the Misc menu and select Miscellaneous Settings. In the Miscellaneous Settings dialog, select the Miscellaneous tab and check the "Enable DeleteFolder, CopyFolder/O and MoveFolder/O commands" checkbox. Alternately, you can simply delete the folder yourself. The folder is here: И// Platform=WindowsNT, IGORVersion=6.024, architecture=Intel Silent 101 // use | as bitwise or -- not comment. NewPath/Z DistPath ":Igor NIDAQ Tools MX:" NewPath/Z Analysis ":::::::::Program Files:WaveMetrics:Igor Pro Folder:WaveMetrics Procedures:Analysis:" NewPath/Z ToolsMXPrefPath ":::::::Application Data:WaveMetrics:Igor Pro 6:Packages:WMNIDAQToolsMX:" NewPath/Z NIDAQmxInstallSymPath ":::::::::Program Files:WaveMetrics:Igor NIDAQ Tools MX:" DefaultFont "Arial" OpenNotebook/N=DeleteFolderInstructions/W=(5.25,42.5,504.75,337.25)/J=19253/V=0 "DeleteFolderInstructions" as "DeleteFolder Instructions" OpenNotebook/N=FinishUninstall/W=(5.25,42.5,504.75,337.25)/J=18827/V=0 "FinishUninstall'" as "Finish Uninstall" OpenNotebook/N=NoDistFilesNotebook/W=(5.25,42.5,504.75,337.25)/J=15855/V=0 "NoDistFilesNotebook" as "No Distribution Files" MoveWindow/P 394.5,92,1051.5,799.25 MoveWindow/C 6,148.25,629.25,302.75 OpenNotebook/N=NIDAQToolsMXReadMe/W=(5.25,42.5,504.75,337.25)/J=10999 "ReadMe.ifn" ],#pragma rtGlobals=1 // Use modern global access method. Menu "Macros" "Install NIDAQ Tools MX",/Q,InstallNIDAQToolsMXPanel() "Un-install",/Q,UninstallNIDAQToolsMX() end strconstant LogFileShortcutName = "NIDAQToolsMXInstallLog.lnk" strconstant InstallFolderShortcutName = "NIDAQToolsMXInstallFolder.lnk" Function InstallNIDAQToolsMXPanel() if (WinType("InstallNIDAQToolsMX") == 7) DoWindow/F InstallNIDAQToolsMX else NewPanel/K=2/W=(150,77,450,277) as "Install NIDAQ Tools MX" DoWindow/C InstallNIDAQToolsMX PositionInstallPanel() Button InstallNIDAQToolsMXButton,pos={90,146},size={100,20},proc=InstallButtonProc,title="Install Now" Button ShowNIDAQToolsMXReadme,pos={192,13},size={100,20},proc=ShowReadMeButtonProc,title="Show ReadMe" CheckBox NIDAQToolsMXHelpOnStartCheck,pos={66,82},size={145,14},title="Open Help Files on Startup" CheckBox NIDAQToolsMXHelpOnStartCheck,value=1 endif end Function InstallButtonProc(ctrlName) : ButtonControl String ctrlName if (WinType("NIDAQToolsMXv102InstallLog") == 5) DoWindow/K NIDAQToolsMXv102InstallLog endif NewNotebook/F=0/N=NIDAQToolsMXv102InstallLog/V=0 as "NIDAQ Tools MX v. 1.02 Installation Log" String log="NIDAQToolsMXv102InstallLog" if (CmpStr(IgorInfo(2), "Windows") != 0) Notebook $log, text="Installation failed: Windows required; attempt to install on "+IgorInfo(2)+".\r" DoAlert 0, "NIDAQ Tools MX requires Igor Pro version 5.04 or greater. You need to update your Igor before installing NIDAQ Tools MX." DoWindow/F $log return -1 endif if (NumberByKey("IGORVERS", IgorInfo(0)) < 5.04) Notebook $log, text="Installation failed: Insufficient Igor version.\r" DoAlert 0, "NIDAQ Tools MX requires Igor Pro version 5.04 or greater. You need to update your Igor before installing NIDAQ Tools MX." DoWindow/F $log return -1 endif if (NumberByKey("IGORVERS", IgorInfo(0)) == 6.02) String fileVersion = StringByKey("IGORFILEVERSION", IgorInfo(3)) Variable lastPeriodPos = strsearch(fileVersion, ".", StrLen(fileVersion), 3) if (lastPeriodPos > 0) If (CmpStr(fileVersion[0,lastPeriodPos-1], "6.0.2") == 0) if (Str2Num(fileVersion[lastPeriodPos+1, strlen(fileVersion)-1]) < 4) Notebook $log, text="Installation failed: Broken Igor: Your version of Igor has a bug that prevents it from creating the shorcut files in the Igor Pro folder. Please pull down the Help menu and select Update for Igor Pro 6.02..\r" DoAlert 0, "Broken Igor: Your version of Igor has a bug that prevents it from creating the shorcut files in the Igor Pro folder. Please pull down the Help menu and select Update for Igor Pro 6.02. Re-try the installation after updating.\r" return -1 endif endif endif endif String OSVersion = StringByKey("OSVERSION", IgorInfo(3)) Variable OSMajorVersion = Str2Num(StringFromList(0, OSVersion, ".")) // string is something like "5.1.2600" if ( OSMajorVersion <= 4 ) // Windows 2000 and XP are 5, Vista is 6. 2000 and XP are different in the minor version number Notebook $log, text="Installation failed: Wrong Windows version.\r" DoAlert 0, "NIDAQ Tools MX requires Windows 2000 or later." DoWindow/F $log return -1 endif PathInfo Igor String IgorPath = S_path PathInfo Home String DistPathStr = S_path+"Igor NIDAQ Tools MX:" NewPath/Z/O/Q DistPath, DistPathStr GetFileFolderInfo/Q/Z DistPathStr Variable error = V_flag if (error != 0) DoAlert 0, "Can't find the folder containing the distribution files. If you are running from a Zip file, be sure to unpack the files first." Notebook $log, text="Can't find distribution files in "+DistPathStr+"; error = "+num2str(error)+"\r" DoWindow/F $log DoWindow/F NoDistFilesNotebook return -4 endif Notebook $log, text="Install from "+DistPathStr+"\r" String NIDAQmxInstallPathParent = ParseFilePath(1, IgorPath, ":", 1, 0) String NIDAQmxInstallPath = NIDAQmxInstallPathParent+"Igor NIDAQ Tools MX:" Notebook $log, text="Install into "+NIDAQmxInstallPath+"\r" GetFileFolderInfo/Q/Z NIDAQmxInstallPath[0, strlen(NIDAQmxInstallPath)-2] if (V_Flag == 0) String VersionString="Unknown" Variable versionRefNum Open/R/Z=1 versionRefNum as NIDAQmxInstallPath+"NIDAQToolsMXVersion.txt" if (V_flag == 0) FReadLine versionRefNum, versionString Close versionRefNum endif DoAlert 1, "You already have a NIDAQ Tools MX installation folder for version "+versionString+". This installation will move the old files to a new folder. Procede?" if (V_flag == 2) Notebook $log, text="Installation of NIDAQ Tools MX v 1.02 cancelled.\r" return -1 endif MoveFolder/Z NIDAQmxInstallPath[0, strlen(NIDAQmxInstallPath)-2] as NIDAQmxInstallPathParent+"Igor NIDAQ Tools MX v"+versionString Variable MoveFolderError = V_flag if (MoveFolderError != 0) DoAlert 1, "Attempted to copy the existing installation but failed. You will not have a backup of your old installation. Continue?" if (V_flag != 1) Notebook $log, text="Installation of NIDAQ Tools MX v 1.02 cancelled: failed to copy old installation. Error = "+num2str(MoveFolderError)+"\r" return -2 endif endif endif ControlInfo/W=InstallNIDAQToolsMX NIDAQToolsMXHelpOnStartCheck Variable AutoLoadHelpFiles = V_value CopyFolder/Z/D DistPathStr as NIDAQmxInstallPathParent if (V_flag != 0) Notebook $log, text="Installation failed.\r" DoAlert 0, "Installation failed; perhaps you don't have write access to "+NIDAQmxInstallPath+"?" DoWindow/F $log return -3 endif NewPath/O/Z/Q NIDAQmxInstallSymPath, NIDAQmxInstallPath String NewFileName = "" if (AutoLoadHelpFiles) NewFileName = IgorPath+"Igor Help Files:NIDAQ Tools MX Help.lnk" CreateAliasShortcut NIDAQmxInstallPath+"NIDAQ Tools MX Help.ihf" as NewFileName Notebook $log, text= NewFileName+"\r" else NewFileName = IgorPath+"Igor Extensions:NIDAQ Tools MX Help.lnk" CreateAliasShortcut NIDAQmxInstallPath+"NIDAQ Tools MX Help.ihf" as NewFileName Notebook $log, text= NewFileName+"\r" endif if (AutoLoadHelpFiles) NewFileName = IgorPath+"Igor Help Files:NIDAQ Tools MX Reference.lnk" CreateAliasShortcut NIDAQmxInstallPath+"NIDAQ Tools MX Reference.ihf" as NewFileName Notebook $log, text= NewFileName+"\r" else NewFileName = IgorPath+"Igor Extensions:NIDAQ Tools MX Reference.lnk" CreateAliasShortcut NIDAQmxInstallPath+"NIDAQ Tools MX Reference.ihf" as NewFileName Notebook $log, text= NewFileName+"\r" endif NewFileName = IgorPath+"More Help Files:NIDAQToolsToNIDAQToolsMX.lnk" CreateAliasShortcut NIDAQmxInstallPath+"NIDAQToolsToNIDAQToolsMX.ihf" as NewFileName Notebook $log, text= NewFileName+"\r" NewFileName = IgorPath+"Igor Extensions:NIDAQmx.lnk" CreateAliasShortcut NIDAQmxInstallPath+"NIDAQmx.xop" as NewFileName Notebook $log, text= NewFileName+"\r" NewFileName = IgorPath+"WaveMetrics Procedures:NIDAQ Tools MX Procedures.lnk" CreateAliasShortcut NIDAQmxInstallPath+"NIDAQ Tools MX Procedures" as NewFileName Notebook $log, text= NewFileName+"\r" NewFileName = IgorPath+"NIDAQ Tools MX Manual.lnk" CreateAliasShortcut NIDAQmxInstallPath+"NIDAQ Tools MX Manual.pdf" as NewFileName Notebook $log, text= NewFileName+"\r" NewFileName = NIDAQmxInstallPath+log+".txt" Notebook $log, text= NewFileName+"\r" SaveNotebook/S=6 $log as NewFileName SaveUninstallInfo(NewFileName, NIDAQmxInstallPath) DoAlert 1, "Your installation was successful. To use it you must shut down Igor and re-start Igor. Do that now?" if (V_flag == 1) PathInfo Igor // S_path is path to Igor folder in Macintosh file format. igorPath= ParseFilePath(5, S_path, "\\", 0, 0)+"Igor.exe" // in PC format ExecuteScriptText "\"" + igorPath + "\" /I /X /Q \"DisplayHelpTopic \"NIDAQ Tools MX Overview\";Execute/P/Q \"DoWindow/K Table0\"\"" Execute/P "Quit/N" endif End Function SaveUninstallInfo(logFilePath, InstallFolderPath) String logFilePath, InstallFolderPath String tempPathStr = specialdirpath("Packages", 0, 0, 1) if (strlen(tempPathStr) == 0) return -1 endif tempPathStr += "WMNIDAQToolsMX" NewPath/O/Q/C ToolsMXPrefPath tempPathStr String NewFileName = tempPathStr+":"+LogFileShortcutName CreateAliasShortcut logFilePath as NewFileName NewFileName = tempPathStr+":"+InstallFolderShortcutName CreateAliasShortcut InstallFolderPath as NewFileName end Function ShowReadMeButtonProc(ctrlName) : ButtonControl String ctrlName DoWindow/F NIDAQToolsMXReadMe End Function PositionInstallPanel() GetWindow kwFrameInner, wsize Variable frameWidth = V_right - V_left Variable frameHeight = V_bottom - V_top GetWindow InstallNIDAQToolsMX, wsize Variable panelWidth = V_right - V_left Variable panelHeight = V_bottom - V_top Variable topC = (frameHeight - panelHeight)/2 Variable leftC = (frameWidth - panelWidth)/2 Variable bottomC = topC + panelHeight Variable rightC = leftC + panelWidth MoveWindow/W=InstallNIDAQToolsMX leftC, topC, rightC, bottomC end Function UninstallNIDAQToolsMX() DoAlert 1, "Really remove NIDAQ Tools MX?" if (V_flag != 1) return -2 endif // find the install log file. It has a list of shortcuts installed into the Igor Pro folder String tempPathStr = PathToPrefsFolder() if (strlen(tempPathStr) == 0) return -1 endif GetFileFolderInfo /Q/Z tempPathStr+":"+LogFileShortcutName if (V_flag != 0) DoAlert 0, "Could not find the install info; did you install NIDAQ Tools MX? Can't uninstall." return -1 endif if (!V_isAliasShortcut) DoAlert 0, "BUG: Found the installation log file shortcut in the preferences folder, but it appears that it is not a shortcut." return -2 endif // Now read through the install log file and remove all the shortcuts found there. Variable InstallLogRefnum Open/R InstallLogRefnum as S_aliasPath String oneLine do FReadLine InstallLogRefnum, oneLine if (strlen(oneLine) <= 1) break; endif oneLine = oneLine[0,strlen(oneLine)-2] // remove \r at end of line if ( CmpStr( ParseFilePath(4, oneLine, ":", 1, 0), "lnk") == 0 ) DeleteFile/Z oneLine endif while(1) Close InstallLogRefnum // Now delete the shortcut to the install log DeleteFile/Z tempPathStr+":"+LogFileShortcutName // Get the path to the installation folder from its shortcut GetFileFolderInfo /Q/Z tempPathStr+":"+InstallFolderShortcutName if (V_flag != 0) DoAlert 0, "Could not find the installed folder." return -1 endif if (!V_isAliasShortcut) DoAlert 0, "BUG: Found a shortcut in the preferences folder for the install folder, but it doesn't appear to be a shortcut!" return -1 endif Notebook FinishUninstall, selection={endOfFile, endOfFile}, text=S_aliasPath // delete the shortcut DeleteFile/Z tempPathStr+":"+InstallFolderShortcutName // Show the info on removing the folder DoWindow/F FinishUninstall end Function/S PathToPrefsFolder() String tempPathStr = specialdirpath("Packages", 0, 0, 1) if (strlen(tempPathStr) == 0) return "" endif tempPathStr += "WMNIDAQToolsMX" NewPath/O/Q/C ToolsMXPrefPath tempPathStr return tempPathStr end